Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ won't Validate correctly

Posted by: JasonMichaels Jan 25 2019, 04:38 PM

Hello, I am new to coding web sites and am having problems with w3c validator, No matter what I change it still keeps giving me a bunch of errors. Here is my code so far. I might need a lot of help

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset="utf-8"></meta>
</head>
<body>
</body>
</html>

Posted by: CharlesEF Jan 25 2019, 04:51 PM

QUOTE(JasonMichaels @ Jan 25 2019, 03:38 PM) *

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

Maybe because the above line is wrong? First, there is no closing </meta> tag, remove them. Second, the above line has an extra double quote. It should be like this:
CODE
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Posted by: pandy Jan 25 2019, 11:58 PM

That and you don't have a TITLE and BODY has no sub elements. Both are required.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)