• 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 683 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 1 view
1 view
Problem: As I previously stated in my question, I am having difficulty learning. Could someone help assist me in completing my project?
asked Apr 1 rakib1 50.4k points
1 vote
1 answer 725 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 38 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
0 votes
1 answer 22 views
Problem: Hello! I want the answer to the question mentioned above. This question was asked in a quiz I attempted recently and it confused me. Please explain the correct answer in some detail. Thanks!
asked Mar 3 Code Learner 9.2k points
0 votes
1 answer 290 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
1 answer 10 views
Problem: I want to know about all the tags that can be used inside <head></head>. Moreover, which tags cannot be included inside the <head> tag? I am a beginner so I am facing some difficulty in creating a webpage because I am so confused about tags. Please help!
asked Mar 6 Code Learner 9.2k points
0 votes
1 answer 3 views
Problem: Hi! Can any body help me with html tag opening?
asked Mar 18 PkGuy 13.1k points
0 votes
2 answers 98 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 7.5k points
0 votes
1 answer 4 views
Problem: I am stuck with this ... Please help me that how to deal with this error? which of the following configures a 1 pixel, solid black border for an element?
asked Mar 23 Ifra 24.4k points