| HTML Basic Tag List, pg. 1 (all tags come in pairs unless they're marked with an asterisk; these have to be closed with a space and a backslash [ex. <br />]) | ||
|---|---|---|
|
<body> is an example of an HTML tag. The term "tag" includes the opening and closing angle brackets as well as the name between them. Names should always be written in lowercase. Tags can be nested. According to the XHTML specification, the nesting has to be done in a certain order. This: <b><i>hello</i></b> is correct; this: <b><i>hello</b></i> is not. If a tag is on the outside in the beginning, it must be on the outside at the end. Insert the tag pairs before adding text to prevent nesting errors. All tags have a closing tag unless they have an asterisk by them on page 1 or page 2 of this list. The closing tag is the same as the original tag but with a backslash added. Example: </body>. The text goes between the two tags. For tags without a closing tag, only one tag is used and a backslash is added. Example: <br />. This is also an XHTML specification. Nearly every tag has attributes, or settings that are usually optional. All attributes are written in lowercase and are written like this: attributeType="attributeName". Webpages should always be previewed with Firefox, Netscape, or Opera during development as Internet Explorer doesn't interpret web specifications like it should, especially if you are coding with Cascading StyleSheets (CSS). But don't forget to look at the webpage with IE to fix any really bad problems since majority of web users still use that browser. Unfortunately, IE fixes have been known to cause problems with every other browser. Required Page Tags
<html> <head><title>The webpage title</title></head> <body> What visitors will see in their browser </body> </html> Page Formatting Tags
|
Text Formatting Tags
<font face="Arial" size="3" color="blue"> example text </font>
<table width="500" align="center" border="0"> <tr><td>cell #1</td> <td>cell #1</td></tr> </table> |
|