The DOC TYPE
This is what your first few lines of your XHTML page should look like.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
This is the standard 1.0 Strict doctype. For a more thorough explanation of doctypes see W3Schools.com.
The Header Section
For me personally, the header section is really about providing the browser with needed information, and for tagging your document so that both search engines and people know what the document is about. Here is my version of a standard header section.
The first meta tag tells the browser what character set you are using. Most of the time we use ISO-8859-1 or UTF-8 for unicode. I like to include the author tag, but this is not necessary. Since this is a legal page, I do not think it really requires indexing, especially, if I decide to change things, I do not want search engines keeping this page cached, therefore the robots tag is set to not index anything.
Lastly we have the standard favicon link, again this is not necessary, it is just something I personally prefer. We are specifying an external stylesheet, as this is XHTML and the idea is to separate content from layout.
For the actual content of the page, you may choose to either limit yourself to just h1 thru h5 tags along with standard paragraph tags, or perhaps use just three main divs to layout the document. Usually a header, a content, and a footer section is all the layout you need for a text based document as this.
Validate Your Code
At this point we are done, but sometimes, after writing such long text based documents, we are not so good at checking out work, and that is when you should let an online validation tool like WebDesignGroup’s Validator Tool check your page for any typos you might have let through. Once your page validates without error, it’s time to post it live, and bask in the knowledge that you just completed your first XHTML Strict 1.0 page. It may not be fancy, but it’s still XHMTL Strict.