View the forum for updates and announcements. View my blog for the same!
Copy the code below into a new document. Save the document as template.html and use it for all assignments as you begin new documents. You should know all these tags; they are essential for a basic XHMTL document.
Note: For this class we will be using the XHTML 1.0 Strict DTD.
All of your assignments should validate under the STRICT standard!
<!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">
<!--
Author: Put your name here
Class/Section: Put your class and section here
Date Created:
Time:
Copyright © 2007
-->
<head>
<title> Your title goes here </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Language" content="en-us" />
</head>
<body>
<!--
The content the user sees, goes here between the opening and closing body tags!
Be sure to remove this comment in your assignments... it is just a reminder
to you as to where your content should go!
-->
</body>
</html>
Note: Make sure that you follow strict XHTML coding rules:
- All tags and attributes must be lower-case characters.
- All attributes MUST contain a value and that value must be quoted.
- Use proper nesting - the last tag opened must be the first tag closed.
- All tags must be closed. For single-sided tags (tags with no content) as with BR, HR, IMG, etc., use the shortcut method as in - <br />
- In the STRICT DTD, all content must be enclosed inside block-level tags - DIV, P, H, TD, LI, etc.