To define a paragraph, you need to use an opening
and closing tag
. How paragraphs are rendered visually depends on the browser. Paragraphs are usually rendered with left justification. Browers will also typically render paragraphs with white space before and after the element. Rather than using line breaks and other methods to manipulate the rendering of paragraphs, it is recommended that you use Style sheets to have control over the size and style of fonts, margins, space before and after a paragraph, the first line indent, justification, and other details. Paragraph elements are placed between the body section of your HTML document. Here is an example of how to use the paragraph element. Both of the examples shown above will be rendered in the same manner. The browser will not render a line break within the paragraph because of the way the code is written. A carriage return in your code creates a single space. To apply a break within the paragraph, use the line break self-closing tag, <br />. Using a line break within a paragraph to style your document is not recommended, since your visitors will be using different browsers on computers with different resolutions. Inserting a line break within a paragraph will most likely have unexpected results since you cannot account for the user’s settings. In any case, for illustration purposes, here is an example. To be compliant with XHTML, you must add the space and forward slash to the end of any empty tag to make it self-closing.