1 / 6

Metadata, Doctype and Validators

Metadata, Doctype and Validators. The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag .

julio
Télécharger la présentation

Metadata, Doctype and Validators

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Metadata, Doctype and Validators

  2. The <!DOCTYPE> declaration must be the very first thing in your HTML document, before the <html> tag. The <!DOCTYPE> declaration is not an HTML tag; it is an instruction to the web browser about what version of HTML the page is written in, gives it the information it needs to know how to render the content, what rules to follow. http://www.w3schools.com/tags/tag_doctype.asp

  3. Metadata: information about the contents of your page. This is sometimes used by search engines to index your site. Metadata can be the doctype, html, head, content type, title, “favicon,” script and style (code or links to external pages), or other page metadata, but it is not page content.

  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en“ id=“jillsalahub-writingonlineatcsu-net”> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--most important metadata--> <meta name=“author" content="Jill Salahub" /> <meta name="description" content="Sample XHTML and CSS Site" /> <meta name="keywords" content="CO302, Sample Site, Small Web Project, XHTML and CSS" />

  5. Validator: a service for checking XHTML and CSS files against the rules for their use. These function as a good trouble shooting tool when checking your code, and serve as “proof” on your site of the correctness of your code. Your page has to be live on the web to validate it.

  6. You can add validators directly to your page by including these links: <a href="http://validator.w3.org/check?uri=referer" title="Validate this page's XHTML">XHTML</a> <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Validate this page's CSS">CSS</a>

More Related