Menu Home

h1

osbo.com | HTML | Elements | h1

The h1 HTML element represents a heading for the section with which it is associated.

Syntax

HTML

<h1 attribute-name="attribute-value"></h1>

Attributes

Global

CSS

h1 {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin: .67em 0 .67em 0;
}

Examples

CSS

Internal

h2

h3

h4

h5

h6

External

Web Hypertext Application Technology Working Group (WHATWG)