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.

Introduction to Authoring HTML

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>

Table of Contents

HTML Tutorial
HTML Tag Reference
Common HTML Attributes
CSS Styles
HTML Metatags
HTML 5 Cheat Sheet
HTML 5 Examples
HTML Definitions
Polyglot HTML Documents
You may notice that, when there is a difference between the two possible flavors of HTML syntax, rather than confusing things by presenting examples using both possible options, the syntax that is shown is one that could be used for documents that could be rendered by HTML browsers that interpreting the input in either way. These are known as Polyglot HTML Documents .
more definitions
Differences between HTML 4 and HTML 5
Things to avoid in HTML 5
HTML FAQs
FAQs about HTML along with answers
Features of HTML 5
What's New in HTML 5

Last updated Monday August 30, 2010


Printer-friendly PDF* format:

Authoring HTML

This Section

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.