Stray end tag "head"

I have the following html5 code:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="Style.css" rel="stylesheet" type="text/css"> 
    <title>Catalogo Dischi</title>
        <p class="title"> Catalogo Dischi </p>
    <a id="index">
        <p class="subtitle">Indice</p>
    </a>
    <p class="text">
        <a href="#classic">Musica Classica</a>
        <br/>
        <a href="#jazz">Musica Jazz</a>
        <br/>
        <a href="#country">Musica Country</a>
    </p>
</head>

The code is inside the html tag . I don’t understand the reason for this error, I close all tags except meta and links that cannot be closed, what is the problem?

+5
source share
7 answers

you need to understand - the element <head>defines the attributes used by the browser, but does not appear directly on the page. The attribute <title>defines the name indicated on the tab of your browser.

After closing the tag, <head>you should open the tag <body>, which should display all the content that will be displayed on the page.

. http://reference.sitepoint.com/html/page-structure .

+8
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="Style.css" rel="stylesheet" type="text/css"> 
    <title>Catalogo Dischi</title>

</head>

<body>

    <p class="title"> Catalogo Dischi </p>
    <a id="index">
        <p class="subtitle">Indice</p>
    </a>
    <p class="text">
        <a href="#classic">Musica Classica</a>
        <br/>
        <a href="#jazz">Musica Jazz</a>
        <br/>
        <a href="#country">Musica Country</a>
    </p>
</body>
+6

head body.

+2

, . ,

    <title> Foundation </title>>

Stray end tag "head",

Chrome, > Body

<body>
">"
+1

<p> <head>,

,

, </head>

0

charset=UTF-8" ".

0

I decided to do this by doing this with my code. I will show you an example tag so you can see what I did with the tags.

so with the link tag it will be:

<link href='https://fonts.googleapis.com/css?family=Aclonica%7cPlayfair+Display' rel='stylesheet'/> 

the notification at the end of the link tag ends with / ">

0
source

All Articles