Alternate version
All pages must be "well formed"
Rules for Pages
- Every page has a head and a body
- The head has information about your page, such as
the title and meta tags
- The body contains your page content, the part that is seen on the web.
- Only one <html>...</html> set per page
- Only one <head>...</head> per page
- Only one <title>...</title> per page
- Only one <body>...</body> per page
- All body attributes go in one body tag
- All pages must be well-formed
Rules for Tags
- All tags must be written in lower case
- Tags must properly nested: first opened, last closed
Rules for Attributes
- All attribute values must be in quotation marks
- Attributes may be in any order
- Use a space between the tag and the first attribute
- Use a space between attributes
Rules for "&" Codes (Escape Characters)
Some characters that we commonly use when writing text are also code characters. To avoid confusion, and to validate your page, use character codes to show them on your page (in your text).
Ampersand ( & )
Use & to show an ampersand on your page
Less Than Sign (Left Angle Bracket) ( < )
Use < to show a less than sign on your page
Quotation Marks ( " )
Use " to show quotation marks on your page
W3C list of Escape Characters
- Links
-
Tips
Tools
References
Rules
HTML Help Gnubee - Newsgroup

