HTML 5 Tutorial

HTML 5 Document Structure

Converting to HTML 5

How to set the Content-Type for the HTML 5 MIME Type

If 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):

DirectoryIndex index.html
ErrorDocument 404 /error.html
AddType application/xhtml+xml;charset=UTF-8 html

Prev: HTTP Headers Next: Page 3 

Home > Tutorial > HTML 5 MIME Type

Viewing mobile website page. Switch to WML or Full HTML