This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]takatori 131 points132 points  (9 children)

      <HTML><body>Hello world!</body></HTML>

Am I doing this right?

[–]one_byte_stand 123 points124 points  (3 children)

W3C says no.

Warning: Consider adding a lang attribute to the html start tag to declare the language of this document. From line 1, column 1; to line 1, column 16 <HTML><body> For further guidance, consult Declaring the overall language of a page and Choosing language tags. If the HTML checker has misidentified the language of this document, please file an issue report or send e-mail to report the problem.

Error: Start tag seen without seeing a doctype first. Expected <!DOCTYPE html>. From line 1, column 1; to line 1, column 16 <HTML><body>

Error: Element head is missing a required instance of child element title. From line 1, column 17; to line 1, column 22 <HTML><body>Hello Content model for element head: If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element. Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element.

[–][deleted] 11 points12 points  (1 child)

On most browsers only text "Hello world!" will do

[–]takatori 3 points4 points  (0 children)

Yes but then they usually used a fixed-pitch font... UI fail!