What is <H1> to <H6> tags? How to use properly in blog post?

Hello,

Please someone explain about header tags and blog post structure. I don’t get it with existing articles on Google. Need clarification.

Thanks.

1 Like

In the markup language - HTML, the h denotes heading which is generally supposed to be used in a serial order.

For example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>
      Using .htaccess in WordPress
    </title>
  </head>
  <body>
    <h1>
      How to edit .htaccess file of WordPress?
    </h1>
    <p>
      In the Apache web server, the .htaccess file contains set
      instruction to override the server behavior. WordPress uses .htaccess file for pretty permalink. You can find this file in your public_html directory.
    </p>
    <h2>
      Editing .htaccess using SSH
    </h2>
    <p>
      For SSH, you need Putty application. You can download it free.
    </p>
    <ol>
      <li>cd /var/www/html
      </li>
      <li>nano .htaccess
      </li>
      <li>Make changes and save.
      </li>
    </ol>
    <h2>
      Using cPanel
    </h2>
    <ol>
      <li>Login to cPanel example.com:2083
      </li>
      <li>Go to File manager menu, set display hidden files.
      </li>
      <li>Navigate to WordPress Public directory
      </li>
      <li>Right click on .htaccess file
      </li>
      <li>Edit using Code Editor
      </li>
      <li>Make your desired changed and save.
      </li>
    </ol>
    <h3>
      Alternative ways: Worth trying!
    </h3>
    <ul>
      <li>Using WP File Manager plugin
      </li>
      <li>Using FileZilla or WInSCP application
      </li>
    </ul>
    <p>
      Do share with us which methods you tried? Or, if you face any
      problem let me know the comment section. :)
    </p>
    <h4>
      Related Posts
    </h4>
    <ul>
      <li>How to block an IP address .htaccess file?
      </li>
      <li>How to disallow directory indexing in Apache?
      </li>
    </ul>
  </body>
</html>
4 Likes

Thank you Gulshan.

This is a very good example. Bullet points plays an important role.

Heading tag are most important part of an Article. But most two important tags is h1 and h2.
For Best Practices you must wrap your title in h1. means content inside your title and h1 must be same.
Then you can use rest of tags h2,h3,h4 according to post content by dividing content into section and subsection.
Use tool like V3 Validator to check your heading outline:

3 Likes

Thank you for the clarification. :slight_smile:

Thank you for better answer.

Most sites use H1 for titile and heading of the page.

H2 for main sub headings and H3 for sub sections of Each H2.

Is H4 can be used to make the sub sections of the H3 or is it not good SEO practice to add more headings?

pls suggest.

@GulshanKumar @saurav_556

I even end up using h5 in some cases.
I haven’t seen any negative impact yet.

Depends on post type.

1 Like