Basic Tags

<p></p>

The <p> and </p> tags denote a paragraph.  A line break generally appears before and after a paragraph.  Here is an example:

<p> This is a paragraph.  Many sentences can be contained within an HTML paragraph.</p>

<h1></h1>…<h6></h6>

The HTML heading tags are used to create headings of various sizes and importance within a document.  <h1> is the largest and most emphasized, while <h6> is the smallest, and least emphasized.

<h1>Heading  1</h1>
<h2>Heading  2</h2>
<h3>Heading  3</h3>
<h4>Heading  4</h4>
<h5>Heading  5</h5>
<h6>Heading  6</h6>

A line break <br /> is used to move the content which comes after it to the next line.  The /> in the <br /> tag is a requirement for XHTML to close all tags.  There are a number of tags which have to close themselves because there is no content markup to go between the tags.

The <hr /> tag creates a line across the page known as a horizontal rule.  This can be beneficial in separating sections of a web page.

Bookmark and Share

Popularity: unranked [?]