CSS Portal

HTML <h3> Tag

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The <h3> tag defines a third-level heading in an HTML document. It is used to structure content hierarchically, sitting below <h1> (main heading) and <h2> (subheading), and above <h4>, <h5>, and <h6> headings. This hierarchical system helps both readers and search engines understand the organization of the content on a page.

Headings are semantic elements, meaning they carry meaning beyond just visual presentation. An <h3> typically represents a subsection within an <h2> section, helping to break down content into digestible parts. Using headings appropriately improves accessibility, as screen readers and other assistive technologies rely on them to provide an outline of the page.

Visually, <h3> text is typically rendered smaller than <h1> and <h2> headings but larger than normal paragraph text (<p>). However, the default appearance can be customized through CSS to match the design of the website.

In practice, <h3> is used for:

  • Subsections within a major topic or section.
  • Highlighting important content in a structured hierarchy.
  • Supporting content outlines and table of contents automatically generated by some tools.

Example usage:

<h2>Fruits</h2>
<h3>Citrus Fruits</h3>
<p>Examples of citrus fruits include oranges, lemons, and limes.</p>
<h3>Berries</h3>
<p>Common berries are strawberries, blueberries, and raspberries.</p>

In this example, <h3> headings organize content under the <h2> main heading “Fruits,” creating a clear structure for readers and search engines.

Properties

Permitted Parents
Any element that accepts flow content.
Content
Inline and text
Start/End Tags
Start tag: required, End tag: required

Example

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

Attributes

None

Global Attributes

The <h1> tag also supports the Global Attributes in HTML5

Event Attributes

The <h1> tag also supports the Event Attributes in HTML5

Browser Support

The following information will show you the current browser support for the HTML <h3> tag. Hover over a browser icon to see the version that first introduced support for this HTML tag.

This tag is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 26th December 2025

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!