HTML TAGS
Basic HTML Tags
Tag Description
<HTML>
|
Defines an HTML document |
<BODY> |
Defines the document's body |
<H1> to <H6> |
Defines header 1 to header 6 |
<P> |
Defines a paragraph |
<BR> |
Inserts a single line break |
<HR> |
Defines a horizontal rule |
<!--> |
Defines a comment |
Headings
Headings are defined with the <h1> to <h6> tags. <h1>
defines the largest heading. <h6> defines the smallest heading.
HTML automatically adds an extra blank line before and after a heading.
Paragraphs
Paragraphs are defined with the <p> tag.
HTML automatically adds an extra blank line before and after a paragraph.
Line Breaks
The <br> tag is used when you want to end a line, but don't want
to start a new paragraph. The <br> tag forces a line break wherever
you place it.
The <br> tag is an empty tag. It has no closing
tag.
Comments in HTML
The comment tag is used to insert a comment in the HTML
source code. A comment will be ignored by the browser. You can use comments
to explain your code, which can help you when you edit the source code
at a later date.Note that you need an exclamation point after the opening
bracket, but not before the closing bracket
|