AlbaCode
National 5 / Web Development / HTML - Paragraphs

HTML - Paragraphs

Learn to add paragraphs to a webpage.

Paragraphs

We can use the p element to add paragraphs to our page.

Again, this consists of an opening and closing tag. We add the teext for our paragraph in between these two tags.

html logo

index.html

<!DOCTYPE html>
<html>
    <head>
        <title>AlbaCode</title>
    </head>
    <body>
        <p>This is a paragraph</p>
    </body>
</html>

We can add as many paragraphs as we like to our webpage.

Another example of adding paragraphs to a webpage is shown below. This example also uses headings as shown in the previous tutorial.

html logo

index.html

<!DOCTYPE html>
<html>
    <head>
        <title>National 5 Computing Science</title>
    </head>
    <body>
        <h1>National 5 Computing Science</h1>
        <h2>Topics</h2>
        <h3>Software Design & Development</h3>
        <p>This topic focusses on the process of creating software solutions to various problems.</p>
        <h3>Web Design & Development</h3>
        <p>This topic focusses on the process of designing and bulding websites.</p>
        <h3>Database Design & Development</h3>
        <p>This topic focusses on the process of designing and building databases.</p>
        <h3>Computer Systems</h3>
        <p>This topic focusses on the hardware and software components of a computer system.</p>
    </body>
</html>