vadnica-logo
X

The <h*> Tags

The <h1> to <h6> tags are used to define HTML headings. <h1> defines the most important heading, and it should only be used once per page. The heading <h2> can be used twice per page. All other headings, from <h3> to <h6>, can be used as many times as needed. We always need to open and close these tags:

  1. <h1>heading</h1>
  2. <h2>heading</h2>
  3. <h3>heading</h3>
  4. <h4>heading</h4>
  5. <h5>heading</h5>
  6. <h6>heading</h6>
HTML Headings: H1 to H6
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tags h1 h2 h3 h4 h5 h6 example</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<h1>Heading H1</h1>
<h2>Heading H2</h2>
<h3>Heading H3</h3>
<h4>Heading H4</h4>
<h5>Heading H5</h5>
<h6>Heading H6</h6>
<p></p>
</body>
</html>
EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.