HTML: Heading and paragraph

This entry is part 2 of 34 in the series HTML

Using the template, we build our first example.

In the example, we have used two tags <h1> and <p> to format the content.

<!DOCTYPE html>
        <title>First Example</title>
<h1>First Heading</h1>

<p>The paragraph after the heading</p>
Try The HTML

The HTML standards defines 6 levels of headings, <h1> through <h6>, each one progressively smaller in font size.

Here we are using <h1>, you can try modifying <h1> into <h2> in Try The HTML page.  This will reduce the font size of the heading.

Series Navigation<< HTML: A standard HTML5 page
HTML: Applying bold and italic formatting >>

Leave a comment

Leave a Reply