Creating Paragraphs

All web pages are created by using at least a few simple tags. It is my belief that the three most natural tags to use in an HTML document are the tags for paragraphs, linking sites together, and displaying images.

Paragraphs

Paragraphs contain most of the information in any web page. The element allows for long paragraphs as well as short lines of text to be viewed as a single entity. Paragraphs are considered block-level elements, meaning that it has a "double-spaced" effect both above and below the paragraph. This extra white space cannot be changed within the paragraph tag alone, but you can use CSS to adjust line heights, padding, margins, etc.

A typical paragraph may look something like this:
<html> <head> <title>HTML for Beginners - Basic HTML</title> </head> <body> <p>Some text here</p> </body> </html>

And will produce Some text here

«...Basic HTML Adding Pictures...»

Advanced Tips

In HTML 4.01 Transitional (and earlier versions of HTML) the closing paragraph tag was not mandatory, but HTML 4.01 Strict and XHTML 1.0/1.1 require it. Most browsers will assume a closing paragraph tag and begin a new block level element when the next opening paragraph tag is seen, however this will throw the browser into quirks mode and is not good practice.