Asked 2 years ago
24 May 2022
Views 609
dilip

dilip posted

Error: Attribute http-equiv not allowed on element meta at this point.

i have this html code:


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



and getting this error at w3c validation


Error: Attribute http-equiv not allowed on element meta at this point.
From line 5, column 1; to line 5, column 69
>?<head>?<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />?<titl
css-learner

css-learner
answered May 31 '22 00:00


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

first of all , separate charset from above code and put it separate

<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html" />

 

Maybe it solves the problem.
Post Answer