previous
home
bottom
(x)html documents
sample html document
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="content-type"
content="text/html;
charset=iso-8859-1">
<meta name="generator" content="BBEdit 8.0">
<title>html 4.01 strict example</title>
<style type="text/css">
/* your style definitions goes here */
</style>
<script type="text/javascript">
// your inline script goes here
</script>
</head>
<body>
<!-- the contents of your webpage goes here -->
<P ALIGN="center">
<A HREF="http://apache.org/">
<IMG SRC="/graphics/diverse/apache_pb.gif"
ALT="Powered by Apache"
WIDTH=259 HEIGHT="32"
>
</A>
</P>
</body>
</html>
sample xhtml document
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<meta name="generator" content="BBEdit 8.0" />
<title>xhtml 1.0 strict example</title>
<style type="text/css"><![CDATA[
/* your style definitions goes here */
]]></style>
<script type="text/javascript"><![CDATA[
// your inline script goes here
]]></script>
</head>
<body>
<!-- the contents of your webpage goes here -->
<p style="text-align: center;">
<a href="http://apache.org/">
<img src="/graphics/diverse/apache_pb.gif"
alt="Powered by Apache"
style="width: 259px; height: 32px;"
/>
</a>
</p>
</body>
</html>
comparing the two examples
going from html to xhtml
going from xhtml to html
top
home
next