Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error: Bad value text/html for attribute content on element meta: The legacy encoding declaration did not start with text/html;.
From line 5, column 2; to line 5, column 55
utf-8"/>↩
<meta http-equiv="content-type" content="text/html" />↩ <met>
Syntax of legacy character encoding declaration:
The string text/html;, optionally followed by whitespace, followed by charset=, followed by a preferred encoding name according to the Encoding Standard. Example: text/html; charset=utf-8




when i check my website for html5 errors by using that

http://validator.nu/

the above error appeared any suggestions ?


the is

<meta http-equiv="content-type" content="text/html" />
Posted

1 solution

You have to read errors carefully...

Syntax of legacy character encoding declaration:
  The string text/html;, optionally followed by whitespace, 
  followed by charset=, 
  followed by a preferred encoding name according to the Encoding Standard. 
  Example: text/html; charset=utf-8


What the validation want is add charset=utf-8 (or other encoding) to your meta, like this:
HTML
<meta http-equiv="content-type" content="text/html; charset=utf-8" />


You also should check this validation service: http://validator.w3.org/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900