| HTML Code | Sub-Commands | Function |
|---|
<html>
</html> | begins/ends html |
<head>
</head> | begins/ends the heading of the page |
<meta> | provides general information about the page |
<script>
</script> | begins/ends scripting language |
<title>
</title> | begins/ends the title of the page |
<body>
</body> | begins/ends the body of the page |
| bgcolor="..." | sets the background color for the page (default is white). For color table, click here. |
| background="..." | sets an image as the background (enter url of image) |
| text="..." | sets the color of non-linked text for the page (default is black) |
| link="..." | sets the color of linked text for the page (default is blue) |
| alink="..." | sets the color of active links for the page (default is green) |
| vlink="..." | sets the color of visited links for the page (default is pink) |
<h1>
<h1> | begins/ends a heading (also h2, h3, h4, h5, and h6) |
<basefont> | sets the default font for the page |
| size="..." | sets the basefont size: 1-7 |
| color="..." | sets the basefont color |
<img> | inserts an image |
| src="..." | URL of image to be inserted (as with all links, you must include the full address unless it is linking to another page withing your site, in which case you need only what would follow your main page URL. For example, to link to my own color table, http://www.geocities.com/kdoggs_outhouse/colors.html, I would only need to put colors.html) |
| alt="..." | contains an alternate text string for browsers that do not support images |
| align="..." | sets the alignment of the image: top, bottom, center, left, or right |
| height"..." | sets the height in pixels of the image (this is not necessary, it only allows you to resize if the image appears too large or too small) |
| width="..." | sets the width of the image in pixels |
| vspace="..." | defines the amount of space between the image and the text above and below it |
| hspace="..." | defines the amount of space between the image and the text to the right and left of it |
<font>
</font> | begins/ends font for a section of the page |
| size="..." | sets the font size (1-7) for a section of the page (default is 4) |
| color="..." | sets the font color for a section of the page (default is black) |
<em>
</em> | puts emphasis on the enclosed text, usually italics |
<strong>
</strong> | puts stronger emphasis on the enclosed text, usually bold type |
<cite>
</cite> | encloses a citation |
<b>
</b> | makes the enclosed text bold type |
<i>
</i> | makes the enclosed text italic |
<tt>
</tt> | makes the enclosed text in typewriter font |
<p>
</p> | begins/ends a paragraph or section of the page |
| align="..." | aligns the paragraph or section: right, left, center, or justify |
<a>
</a> | begins/ends a link or anchor |
| href="..." | contains the url of the link or anchor; for an anchor, begin with # (visible text or image for link must be placed between <a href"..."> and </a>) |
| name="#..." | names an anchor point to link to from within the page (e.g. name="#top", then href="#top" to link back to the top of the page) |
| target="..." | identifies the window or location to open a link in; without this the link will open a new window or change the current depending on browser type |
<hr> | inserts a horizontal rule line |
<br> | inserts a line break |
<table>
</table> | begins/ends a table |
| border="..." | sets the border width for the table in pixels (default is 0 [no border]) |
| cellspacing="..." | sets the width of the space between cells in pixels (default is 2) |
| width="..." | sets the width of the table in pixels or by percentage of page width (to write as percentage, follow number value with %) |
| bgcolor="..." | sets the background color of the table |
<caption>
</caption> | begins/ends a caption for a table |
| align="..." | determines where the caption will be placed in relation to the table: top or bottom (for Internet Explorer use valign="...") |
<div>
</div> | used primarily to align a block of text, it affects all tags and text it encloses and can be used to align anything |
| align="..." | used in <div> following <caption>, it aligns the text of the caption: left, right, center, or justify (for Internet Explorer, use align="..."
inside <caption>) |
<tr>
</tr> | begins/ends a table row |
| align="..." | sets the horizontal alignment for the text in the entire row: right, left, center, or justify |
| valign="..." | sets the vertical alignment for the text in the entire row: top, bottom, or center |
| bgcolor="..." | sets the background color for the entire row |
<td>
</td> | begins/ends a table cell (<th> is the same and uses the same sub-commands, but is used for headings and is in bold type) |
| align="..." | sets the horizontal alignment for the text in the cell |
| valign="..." | sets the vertical alignment for the text in the cell: top, bottom, or center |
| bgcolor="..." | sets the background color for the cell |
<tbody>
</tbody> | begins/ends a table body |
<thead>
</thead> | begins/ends a table header |
<tfoot>
</tfoot> | begins/ends a table footer |