• Register
0 votes

Problem :

I am beginner to html. I have recently started learning html. When I tried to process my web page in a W3C validator it started showing me below error

“Start tag head seen but an element of the same type was already open”.

But when I try to remove the start tag of <head>,it passes. If I re add a start tag then the error comes back again. How can I fix this issue? Can anybody help me in fixing this issue?

8 4 2
2,300 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have gone through your question. I found it interesting so I am trying to help you.

Your error "Start tag head seen but an element of the same type was already open." Usually occurs as a start tag for a head element is the optional.

As any style element can only exist within a head tag so usually a parser will know to open a head element when it sees a <style> tag, as inserting the invisible <head> start tag.
No error or warning will be thrown there  as I already told you that your <head> start tag is the optional.
But if a parser sees your <head> start tag then it will certainly throw the error as your head was already in open state.

5 2 1
4,980 points

Related questions

0 votes
1 answer 493 views
Problem : I was hoping that someone may know how to resolve the below HTML5 validation error. When I try to validate my page it gives me a below error : Error Line 90, Column 63: An body start tag seen but an element of the same type was already open. <body class=" ... only find the one <body> (the one referenced by above error) and one </body>. Can anyone please tell me how to fix above error?
asked Jan 25, 2020 jwilliam 3.9k points
0 votes
1 answer 27 views
Problem: Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not? When coding an audio element, the code placed before the closing audio tag is considered to be: Question options: invalid fallback content only available to browsers that support HTML5 required
asked Feb 21, 2020 maddi86 5.4k points
1 vote
1 answer 374 views
Problem : I am learning HTML . Now I want to send the email but my email provider is not allowing me send my email if my body is not the well formatted html provider. Please find below the error: The error is Element head is missing a required instance of child element title. ... -size: 13.0px;background-color: rgb(238,238,238);"> </div> </html> I am looking for the expert help on this error.
asked Apr 13, 2020 morrisBson 3.2k points
0 votes
1 answer 187 views
Problem: I am new and learning, I need help, can anyone help by filling in the blanks? When CSS is coded in the body of the web page as an attribute of an HTML tag it is called _____?
asked Feb 21, 2020 maddi86 5.4k points
0 votes
2 answers 66 views
Problem: What organization formed in 1988 to lobby for an open UNIX after AT&T formed a partnership with Sun Microsystems to develop a single proprietary UNIX?
asked Apr 6, 2020 ArifulIslam 5.6k points
0 votes
2 answers 1K views
Problem : I have some objects in the following configuration: · A has the many-to-many relationship with B. (B has inverse="true") · B has the many-to-one relationship with C. (I have cascade set to "save-update") · C is the kind of type or ... that for architectural reasons beyond my control each read or write needs to be done in a separate session. Does anybody has any solution on my issue?
asked Nov 27, 2019 alecxe 7.5k points
0 votes
2 answers 87 views
Problem : I want to know why I keep facing below error while I try to check my page on http://validator.w3.org/check The error is as below : Line 300, Column 90: The for attribute of the label element must refer to a form control. <label for="myname" style ... ;&nbsp;  <input class="css_form_namefield TooltipIstok " type="text" name="myname" value="" style="width: 600px;" maxlength="60" > </div>
asked Jan 3, 2020 alecxe 7.5k points
0 votes
2 answers 292 views
Problem : Facing following strange error the value of the for attribute of the label element must be the id of a non-hidden form control.
asked Nov 12, 2019 peterlaw 6.9k points
0 votes
2 answers 331 views
Problem : I have below problem. Chrome continues to return below error &ldquo;Resource interpreted as stylesheet but transferred with MIME type text/html&rdquo; My files affected by above error are just a Style, chosen and jquery-gentleselect (other CSS files that are imported in a ... without error). I have already checked the MIME type and text/css is already on a CSS. How to resolve my error?
asked Jan 22, 2020 jwilliam 3.9k points
0 votes
1 answer 11 views
I need to do the following page layout and I do not know how to do it right. I need to divide page into header left pane and right pane. The right pane in its turn, I need to divide into 2 sections. Something like that: Header Pane 1 Pane2 ... my understanding this is not a best practice to use tables for page layout. Just one more detail: I am targeting modern browsers, especially chrome.
asked Nov 26, 2020 alexh 2.2k points