Html headers

Each web page has a title.

The very first document header is displayed in the browser tab

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Document's name</title>
    </head>
    <body>
 
    </body>
</html>

All other headers in html are written as follows

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Document's name</title>
    </head>
    <body>
      <h1>Document header</h1>
      <h2>Document header</h2>
      <h3>Document header</h3>
      <h4>Document header</h4>
      <h5>Document header</h5>
      <h6>Document header</h6>
    </body>
</html>

Example:

<h1>Document header</h1>

Document header

<h2>Document header</h2>

Document header

<h3>Document header</h3>

Document header

<h4>Document header</h4>

Document header

<h5>Document header</h5>

Document header

<h6>Document header</h6>

Document header

Paragraphs html < < < HTML basics > > > HTML List

This entry was posted in Html basics. Bookmark the permalink.
А так же:

Leave a Reply

Your email address will not be published. Required fields are marked *