|
General rules:
- Space tags properly.
- Close all tags when they are no longer in use.
- Justify text as best as possible.
- Do not allow lines to exceed 80 width. If a line will be too
long, skip to the next line. This will not affect the text when
viewed on the net and will make the code easier to read in
emacs.
- Skip a line before and after adding a link.
- Comment out anything that is not to be seen by the page viewer.
- Add comments to code.
- Comment a blank line after each comment. <!-- -->
- Spell check everything.
"Ctrl-x-s" = spell checker
"Ctrl-s" = word search
Spacing is important. Spacing insures that every tag lines up with its
closing tag. This prevents formatting errors. Do not indent the first
tag in the body of the code. Each successive tag will line up one space
to the right of the previous tag. Reverse this order when closing a
tag.
example:
"center"
"table width="665" border="0" align="center"
cellpadding="0" cellspacing="0""
"/table"
"/center"
Common tags:
- <center> centers content inside table </center>
- <table> begins a table </table>
- <tr> begins a table row </tr>
- <td> begins a table column </td>
- <p> begins a paragraph </p>
- <a href> provides a link </a>
- <img src> provides an image
- <ul> begin an unordered list (bulletted) </ul>
- <li> member of a list (a main point) </li>
- <br> break in information (blank line on page)
- <!-- comment out -->
For more information about tags, check out
tags
|