• Register
0 votes
48 views

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

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 350 views
350 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 jwilliam 3.9k points
0 votes
1 answer 27 views
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 maddi86 5.4k points
1 vote
1 answer 183 views
183 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 morrisBson 3.2k points
0 votes
1 answer 86 views
86 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 maddi86 5.4k points
0 votes
2 answers 36 views
36 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 ArifulIslam 5.7k points