Asked 2 years ago
25 May 2022
Views 884
Cimb

Cimb posted

Element title not allowed as child of element head in this context. (Suppressing further errors from this subtree.)

i am testing with W3C Validator

and i am getting this error :

Error: Element title not allowed as child of element body in this context. (Suppressing further errors from this subtree.)

From line 6, column 1; to line 6, column 7

>?<head>??<title> 

Contexts in which element title may be used:
In a head element containing no other title elements.
Content model for element body:
Flow content.




and html part which sent validation is below :


<!DOCTYPE html>
??
<html >
<head>

<title>title is here  ?</title>

<meta charset="UTF-8">
<!--






sachin

sachin
answered May 25 '22 00:00

you should not put a special icon on the title tag so I would suggest you can remove ? or any another icon
so HTML could be :

<!DOCTYPE html>
 
<html >
<head>

<title>title is here  </title>

<meta charset="UTF-8">


so you should put only text in the title tag, it will solve the below error at w3c validator :
Error: Element title not allowed as child of element body in this context. (Suppressing further errors from this subtree.)


Post Answer