Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

h1 h2 h3 h4 h5 h6

The <h1, <h2>, <h3>, <h4>, <h5> and <h6> elements are used to define headings for content sections. These elements have a semantic rank where <h1> has the highest rank and <h6> has the lowest.

Code Example

<body> <h1>Web Development Technologies</h1> <section> <h2>HTML</h2> <p>Section content...</p> </section> <section> <h2>CSS</h2> <p>Section content...</p> </section> <section> <h2>JavaScript</h2> <p>Section content...</p> <section> </body> open in code editor

Attributes

globals - the global attributes common to all elements possible values: see global attribute list

Official Documentation

http://www.w3.org/TR/html/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements

HTML

Elements

aabbraddressareaasidearticleaudiobbasebdobdiblockquotebodybrbuttoncanvascaptioncitecodecolcolgroupdatadatalistdddeldetailsdfndialogdivdldtemembedfieldsetfigcaptionfigurefooterformh1 h2 h3 h4 h5 h6headheaderhrhtmliiframeimginputinskbdkeygenlabellegendlilinkmainmapmarkmetameternavnoscriptobjectoloptgroupoptionoutputpparampreprogressqrb rp rt rtc rubyssampscriptsectionselectsmallsourcespanstrongstylesub supsummarytabletbodytdtemplatetextareatfootththeadtimetitletrtrackuulvarvideowbr