HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <h1> - <h6> tags

The HTML <h1> - <h6> elements represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest.

Run code

Search engines use the headings to index the structure and content of your web pages.

Do not use lower levels to decrease heading font size: use the CSS font-size property instead.

Do not use upper levels to increase heading font size: use the CSS font-size property instead.

<h1> heading should be used for main headings, followed by <h2> headings, then the less important <h3>, and so on.

Browser compatibility

The <h1> - <h6> element is fully supported by all browsers:

Element
<h1> - <h6> yes yes yes yes yes



Standard Attributes

The <h1> - <h6> tag does not support any standard attributes. See HTML Standard Attributes Reference

Global Attributes

The <h1> - <h6> tag supports the global attributes described in HTML Global Attributes Reference

Event Attributes

The <h1> - <h6> tag supports the event attributes described in HTML Events Reference

Tags: <p>, <div>, Reference

Last updated: Sunday 23 Sep, 2018