
|
 |
 |

Tags
Most HTML elements consist of paired tags: a starting tag and an ending tag. The start tag is just the element name enclosed by angle brackets (the greater than and less than symbols). The closing tag is almost the same as the start tag, except you will need to include a forward slash right before the HTML element. Anything placed between the starting and ending tags will be given the HTML effect. The elements are distinguished from regular text because they are placed in-between the angle brackets.
HTML elements are usually English words such as the element for a data table: <TABLE>.
Or they can be an abbreviation of a word, such as the bold element: <B>
HTML Elements that do not enclose content, such as a break in the document, are called empty elements. Empty elements do not have ending tags. And then there are elements where the ending tag is optional, such as the paragraph tag, but to keep things simple and clean it is best to just place the ending tag even when it is optional.
Attributes
Attributes can adjust the instructions given by the HTML tag. Attributes are only located in the opening tag and must be separated by the element's name by a space. In most instances the attribute will have property values, which you will set to further define what the tag is to accomplish. And sometimes, the attribute will not need a value, because it is clear what it should achieve. The syntax looks like this:
<ELEMENT ATTRIBUTE="attribute value">
If there is no value to set then it should just be:
<ELEMENT ATTRIBUTE>
Commenting
There is a special tag for inserting comments to your html code. Comments are used for notes, reminders, or markers. It creates room in your HTML document for content that won't appear on the browser, just in the source code. It is somewhat different than the other tags in that it has no element inside the angle brackets, instead the comments are placed inside the tag that looks like this:
© Copyright 2000-2002 by Pepmint.com. All Rights Reserved |
 |
 |
|