Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index
XHTML Tutorial - Closing <meta> Tags
(Continued from previous topic...)
What Is Wrong with My <meta> Tags?
If you are converting existing HTML documents to XHTML format,
you may find some <meta> tags are written as:
<meta name="Author" content="FYICenter.com">
<meta name="Description"
content="Tutorials, FAQs and Tips on XHTML Documents.">
<meta name="Keywords"
content="XHTML Tutorials, FAQs, Tips">
But all those <meta> tags are invalid in a XHTML document.
They must be closed as:
<meta name="Author" content="FYICenter.com"/>
<meta name="Description"
content="Tutorials, FAQs and Tips on XHTML Documents."/>
<meta name="Keywords"
content="XHTML Tutorials, FAQs, Tips"/>
Note to HTML document authors: <meta> tag syntax in XHTML is the opposite
to <meta> tag syntax in HTML. In XHTML, meta tag must be closed.
But in HTML, meta tag can not be closed.
(Continued on next topic...)
- What Is an XHTML Element?
- How To Enter Comments into XHTML Documents?
- How To Write the Opening Tag of an XHTML Element?
- How To Close an XHTML Element?
- What Is Wrong with My <br> Tags?
- What Is Wrong with My <meta> Tags?
- How To Enter Element Content?
- Is XHTML Element Name Case Sensitive?
- What Is an XHTML Element Attribute?
- How To Write Element Attributes Properly?
- Is Attribute Name Case Sensitive?
- How To Quote Element Attribute Values Properly?
- How To Write Ampersand Sign in Attribute Values?
- What Is a Required Attribute?
- What Are Predefined Attribute Values?
- What Is Wrong with My "checked" Attribute Values?
|