16. How to create text headings

16. How to create text headings

One way to add some more structure to your web page is by using text headings.

(X)HTML has six levels of heading tags: from largest to smallest, <h1> through <h6>. All of these are block elements.

1) Let's add an <h1> tag to the <div>, before the first paragraph.

2) Simply put the heading text inside the tags, as shown.

3) Now, let's add a smaller heading with <h3>.

4) Now, we'll save and view the page in our browser.

Here is our web page without the two headings.

And here it is with the headings. Notice... the browser has added some space above and below each heading.

This is the end of the tutorial. You now know how to use the heading tags.

  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

2. An introduction to coding web pages with XHTML

2. An introduction to coding web pages with XHTML In this series of tutorials, you will learn...

3. How is XHTML different from HTML?

3. How is XHTML different from HTML? If you watched the previous tutorial, you'll know that...

5. Some resources you should know about before you begin

5. Some resources you should know about before you begin Before we begin, you should know...

4. Choosing a text editor for web development

4. Choosing a text editor for web development In this tutorial, we will discuss the factors...

6. How to quickly open a local web page in your browser

6. How to quickly open a local web page in your browser They may seem obvious to some, but...