> | |||
HTML 5 Tutorial |
|||
Home | Tutorial | HTML5 Tags | Attributes | CSS Styles | Metatags | Cheat Sheet | Examples | Definitions | Differences | Avoid | HTML5 FAQs | RSS Feeds | Help |
Clarify the meaning of the acronyms on your web site. Get information on your favorite TV Shows at Printer-friendly PDF* format: |
HTML 5 Document StructureHTTP Headers for HTMLThe HTTP headers which control how an HTML 5 document is displayed might look like this:
It is highly recommended that the Converting to HTML 5We are working on converting to HTML 5. Please visit Basic HTML Structure on the HTML 5 standard version of this site. How to set the Content-Type for the HTML 5 MIME TypeIf the web documents are being created by a program, the programming language probably has an API to send the proper HTTP headers. For static web pages, it may be necessary to add the MIME Type for HTML 5 Polyglot Documents to the HTTP web server configuration to send the appropriate Content-Type header. With the Apache HTTP Server, for example, the HTML 5 MIME Type can be added to the .htaccess file(s):
The type of serialization of an HTML document refers to the syntax used when converting the HTML from an internal document model to a stream of bytes to be stored or transmitted. The XML style of serialization has a number of advantages, including:
HTML 5 has been designed to be relatively backward compatible with both the 1997-1999 HTML 4 standard and the 2000-2001 XHTML 1.x W3C recommendation of HTML. The XML serialization of HTML 5 merges these two standards, and is already understood by virtually all web browsers including XHTML-based mobile browsers. Polyglot HTML documents can be delivered either as text/html to traditional web browsers or as application/xhtml+xml to web browsers on computers as well as in cell phones and other handheld devices. If you start creating polyglot documents now your web pages will be well positioned for both current and future HTML browsers and mobile devices. The typical code for a simple HTML version 5 page would look something like the following (this is the HTML equivalent of a "Hello World" program):
Last updated Sunday September 19, 2010 |
You are currently viewing this page in HTML 4* format (* see Clicklets for more infomation). This document is also available in XHTML 1 Style Sheet*XHTML 1* XML*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.
Copyright © 2010 Accilent® Corp. Alteration of content, including addition of any function such as hypertext links or pop-up advertising, or interference with the hypertext links or other functions of this site is expressly prohibited.
DISCLAIMER: All information, links, forms, applications and other items on this site or obtained from it are provided AS IS, WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.