Archive for March 15th, 2006

XHTML bases

Mario Laflamme March 15th, 2006 Add comment

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>

HTML bases

Mario Laflamme March 15th, 2006 Add comment

Even if I advocate the use of the XHTML, the HTML can be useful in certain cases. Then, here is a list of valid HTML bases which can be used.

HTML 4.01 Strict with ISO-8859-1 encoding
<!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01//EN”
 ”http://www.w3.org/TR/html4/strict.dtd”> 
<html>
    <head>
        <title></title>
        <meta http-equiv=”content-type”
         content=”text/html; charset=iso-8859-1″>
        <link rel=”stylesheet” href=”/styles/styles.css”>
    </head>
    <body>
        
    </body>
</html>
HTML 4.01 Transitional with ISO-8859-1 encoding
<!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Transitional//EN”
 ”http://www.w3.org/TR/html4/loose.dtd”> 
<html>
    <head>
        <title></title>
        <meta http-equiv=”content-type”
         content=”text/html; charset=iso-8859-1″>
        <link rel=”stylesheet” href=”/styles/styles.css”>
    </head>
    <body>
        
    </body>
</html>
HTML 4.01 Frameset with ISO-8859-1 encoding
<!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Frameset//EN”
 ”http://www.w3.org/TR/html4/frameset.dtd”>
<html>
    <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>

Schedule

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