Paragraphs

Paragraphs allow for text, the most basic information, to be displayed a web page.

Splitting your pages content into paragraphs makes it easier for the user to read.

Key Points

Paragraphs are used to store blocks of texts.

The start by opening the <p> tag and end with a closing </p> tag.

Paragraphs can be any length, but should be kept short and easy for the user to read.

Adding a Paragraph

To add a paragraph to your page you must enclose your text between the opening <p> tag and the closing </p> tag.

<p>This is an example of a paragraph that can be shown on a web page.</p>

<p>This is another example of a paragraph. They can literally be any length.</p>

Styling a Paragraph

Internal Style Sheets / External Style Sheets

p{
    color: pink;
    background-color: black;
    font-size: 30px; 
    font-family: "Times New Roman"; 
    text-align: center;
}

Inline

<p style="color: pink; background-color: black; font-size: 30px; font-family: 'Times New Roman'; text-align: center;">This is my paragraph text.</p>

National 5 Target

You should be able to implement a paragraph into a web page and style it.