This is wrong:
This is correct:
Here is a list of the minimized attributes in HTML and how they should be written in XHTML:
The lang attribute applies to almost every XHTML element. It specifies the language of the content within an element.
If you use the lang attribute in an element, you must also add the xml:lang attribute, like this:
All XHTML documents must have a DOCTYPE declaration. The html, head, title, and body elements must be present.
This is an XHTML document with a minimum of required tags:
Note: The DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element. You will learn more about the XHTML DOCTYPE in the next chapter.
Note: The xmlns attribute in <html>, specifies the xml namespace for a document, and is required in XHTML documents. However, the HTML validator at w3.org does not complain when the xmlns attribute is missing. This is because the namespace "xmlns=http://www.w3.org/1999/xhtml" is default, and will be added to the <html> tag even If you do'nt include it.
Your Query was successfully sent!