You are currently using a web browser that does not support HTML 5 with style sheets. Please try the standard HTML 5, XHTML 1 or XHTML 1 Mobile version of this page instead.
The Authoring HTML web site is a good reference for HTML authors.
In order to allow HTML documents to be processed by HTML style sheets and other web-based applications, the HTML code must be "well-formed", regardless of whether it is considered "valid" or not. This site provides information for writing well-formed HTML code using the 1999 W3C standard version of HTML and HTML version 5.
To create a well-formed HTML web page, start with the HTML code below (this is the HTML equivalent of a "Hello World" program):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Title Goes Here</title>
</head>
<body>
<h1>Here Is Your Heading</h1>
<p>This is the first paragraph of your web page.
</p>
<!-- The rest of your HTML code for the body of the web page goes here -->
</body>
</html>
Last updated Monday August 30, 2010
Printer-friendly PDF* format:
You are currently viewing this page in HTML 5 Style Sheet* format (* see Clicklets for more infomation). This document is also available in HTML 5 XML*HTML 5 non-XML*XHTML 1 Style Sheet*XHTML 1*XML* HTML 4* 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.