How to Write Strict HTML 4.01 Tutorials
The current international standard approved version of HTML is version 4.01. This version marked the transition of badly formed HTML to XHTML. In XHTML, there are three versions that can be defined by the author: strict, frameset and transitional. The frameset version allows the web author to define a frameset for use on a web page in order to include multiple pages in one, whereas the strict version of XHTML does not allow you to use HTML tags and attributes that affect the style of your page. Strict XHTML requires the use of cascading style sheets in order to change the appearance and presentation of the data included in the XHTML page definition. The transitional version of XHTML allows use of style within the HTML code and is the version used by authors who are including framesets more commonly than the frameset type of XHTML.
Instructions
-
-
1
Create a new web page in a text editor or web development tool. Start the web page definition, including the DOCTYPE declaration for the strict version of XHTML Version 4.01.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> -
2
Start and begin the strict HTML document with an HTML tag.
<HTML>
</HTML> -
-
3
Define the beginning and end of the web page header with the head tag. The header normally contains amplifying information about your web page such as the title, which shows in the web browser header when the page is displayed, description and other meta information. After typing the opening and closing head tags, give your web page a title by typing an opening and closing title tag and then including your web page title in between the two tags.
<Head>
<Title>
My Strict Web Page
</Title>
</Head> -
4
Define the body of your web page by typing an opening and closing body tag after the closing header tag and prior to the closing HTML tag in the document. The body tag informs the web browser what the visible parts of the web page should be. The complete example of a strictly defined HTML 4.01 web page is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<Head>
<Title>
My Strict Web Page
</Title>
</Head>
<Body>
My Strictly Defined Web Page
</Body>
</HTML>
-
1