| All Types of Code |
| Tag |
Attribute |
What used for |
| < head > head > |
No attributes |
Where you put the title of the webpage |
| < title > title > |
No attributes |
Indicates title to appear on the title car on the Web page |
| < body > body > |
|
Specifies what appears on the Web page; all Web page content is inserted within the start and end of the body tag |
|
| alink=color |
Defines the color of an active link |
|
| background=url |
Identifies the image to be used as a background |
|
| bgcolor=color |
Sets the document's background color |
|
| link=color |
Defines the color of links not yet visited |
|
| vlink=color |
Defines the color of visited links |
| < p > p> |
|
Inserts a blank line before paragraph text |
|
| align=position |
Aligns text within the paragraph (left, center, right) |
| < br /> |
| Inserts a line break before next element (no blank line) |
|
| clear=margin |
Sets the next line to start in a spot where the requested margin is clear (left, right, all, none): used to stop text wrap |
| < hr /> |
| Procide graphical elements to break up Web page content |
|
| align=type |
Specifies the alignment of the horizontal rule (left, center, right) |
|
| noshade |
Specifies to not use 3D shading and to round the ends of the rule |
|
| size=value |
Sets the thickness of the rule to a value in pixels |
|
| width=value or % |
Sets the width of the rule to a value in pixels or a percentage of the page width; percentage is preferred |
| < li > |
| Indicates that item that follows the tag is an item within a list | |
|
| value=value1 |
Inserts or restarts counting with value1 |
| < h1 > |
| Heading |
| < ul > |
| Indicates the start and end of an unordered (bulleted) list |
| < html > |
| Indicates the start and end of an HTML document |
|
| version=data |
Indicates the HTML version used; not usually used |
| < !DOCTYPE > |
| Indicates the version and typ eof HTMl used; includes a URL reference to a DTD |
| < hn > |
| The start and end of the text section called a heading |
|
| align=position |
Specifies the header alignment (left, center, right) |
| < ol > |
| ordered or numbered list |
|
| type=option |
Sets or resets the numbering format for the list; Options include: A, a, I, i, 1 |
| < dl > |
| starts and ends list |
| < dt > |
| indcates a term |
| < dd > |
| identifies the defintion of that term by offsetting the defition from the term |
| align |
| controls alignment, can be set to bottom, middle, top, left, or right |
| alt |
| Alternative text to display when an image is being loaded |
| border |
| Defines the border wdith |
| height |
| Defines the height of the image, improves loading time |
| hspace |
| Defines the horizontal space that separates the image from the text |
| src |
| Defines the URL of the image to be loaded |
| vspace |
| Defines the vertical space that separates the image from the text |
| width |
| Defines the width of the image, improves loading time |
| href |
| Specifies the URL of the linked page or file |
| name |
| Defines a name for the current anchor so it may be the target or destination of another link.
Each anchor in a Web page must use a unique name. |
| rel |
| Indicates a forward relationship from the current dcoument to the linked document. THe value of the rel attribute is a link type,
such as prev, next, index, or copyright. Ex. |
| rev |
| Indicates a reverse (backward) relationship from the current document to the linked document. THe value of the rev attribute is a link type,
such as prev, next, index, or copyright. |
| type |
| Specifies the content type of the linked page or file to help a veowser determine if it can handle the resource type.
ex. text/html, image/jpeg, video/quicktime, application/java, text/css, and text/javascript |
|
| |