This section covers the basic tags used for headings and paragraphs. Almost all text in an HTML document will be enclosed within these tags. For formatting the text, see the appropriate section.
Note: Any space between the headings and the text around them is the formatting of the heading itself; I have not added any spaces between the text and the heading.
This tag's use indicates that the text between it and its closing tag is to be presented as a main heading. It must be closed by typing </H1>. Attributes
This tag tells the browser that the text between it and its closing tag is to be presented as a heading slightly inferior to Heading 1. It must be closed by typing </H2>. Attributes
The text between this tag and its closing tag is presented as a heading slightly inferior to Heading 2. It must be closed by typing </H3. Attributes
This tag tells the browser that the text between it and its closing tag is to be presented as a heading slightly inferior to Heading 3. It must be closed by typing </H4>. Attributes
The text between this tag and its closing tag is presented as a heading slightly inferior to Heading 4. It must be closed by typing </H5>. Attributes
The browser presents the text between this tag and its closing tag as a heading slightly inferior to Heading 5. This is the lowest heading available in HTML. It must be closed by typing </H6>. Attributes
This tag indicates paragraph text, such as what I am writing now. It is the most common type of text and is often used for links as well. It must be closed by typing </P>. However, you need not enclose every paragraph its own set. The tags must include all the text that will be presented as this type of text. The tag must be closed before a different type of text can be entered (such as a heading or a list).Attributes
Back to top
This tag allows you to insert comments and notes into an HTML file without affecting the appearance of the document. To use this tag, substitute your comment for the _ sign in my example above. A comment does not show up in the browser and can be any length.
Back to top