Tools, FAQ, Tutorials:
XHTML 'meta' Elements Not Closed
What Happens If an XHTML "meta" Element Is Not Closed?
✍: FYIcenter.com
Meta tags, link tags and base tags must be closed in XHTML documents. If you forget to close them like the HTML format, you will get validation errors. Try the following tutorial sample XHTML document on http://validator.w3.org/ to see what types of errors you will get:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>My First XHTML Document</title> <base href="http://dev.fyicenter.com/" /> <meta name="Author" content="FYIcenter.com"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="/_local.js"></script> <link rel="stylesheet" type="text/css" href="/_fyi.css" /> </head> <body> <p></p> </body> </html>
You will get this error:
Error Line 8 column 46: end tag for "meta" omitted, but OMITTAG NO was specified. <meta name="Author" content="FYIcenter.com"> You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
Note to HTML 4.0 authors, you must close meta elements in XHTML 1.0. This is the opposite of HTML 4.0, where you must not close meta elements.
⇐ Missing XHTML 'title' Element
2017-06-28, 1865🔥, 0💬
Popular Posts:
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
How to use "link" command tool to link objet files? If you have object files previously compiled by ...