XHTML bases

Mario Laflamme March 15th, 2006

Here is a list of different valid XHTML bases which can be used. The first one is the one that I use most of the time, but the others can be useful in certain cases.

Please note that the file “/scripts/links.js” used in the XHTML bases contains the function which allows to open links in a new window as explains it the article “XHTML: Open a link in a new window“.

XHTML 1.0 Strict with ISO-8859-1 encoding

<!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”>
    <head>
        <title></title>
        <meta http-equiv=”content-type”
         content=”text/html; charset=iso-8859-1″ />
        <script type=”text/javascript”
         src=”/scripts/links.js”> </script>
        <link rel=”stylesheet” href=”/styles/styles.css” />
    </head>
    <body>
        
    </body>
</html>

XHTML 1.0 Transitional with ISO-8859-1 encoding

<!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Transitional//EN”
 ”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>
    <head>
        <title></title>
        <meta http-equiv=”content-type”
         content=”text/html; charset=iso-8859-1″ />
        <script type=”text/javascript”
         src=”/scripts/links.js”> </script>
        <link rel=”stylesheet” href=”/styles/styles.css” />
    </head>
    <body>
        
    </body>
</html>

XHTML 1.0 Frameset with ISO-8859-1 encoding

<!DOCTYPE html PUBLIC ”-//W3C//DTD XHTML 1.0 Frameset//EN”
 ”http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en”>
    <head>
        <title></title>
        <meta http-equiv=”content-type”
         content=”text/html; charset=iso-8859-1″ />
    </head>
    <frameset rows=”100,*”>
        <frame src=”header.html” />
        <frame src=”content.html” />
        <noframes>
            <body>
                <p>Warning! Your navigator doesn’t
                support frames.</p>
            </body>
        </noframes>
    </frameset>
</html>

Entry Filed under: XHTML

Leave a Comment

Required

Required, hidden

Some HTML allowed

Trackback this post  |  Subscribe to the comments via RSS Feed

Schedule

March 2006
M T W T F S S
    Apr »
 12345
6789101112
13141516171819
20212223242526
2728293031