Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

h2

Description

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

Syntax

HTML

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

Attributes

Global

CSS

h2
{
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin: .83em 0 .83em 0;
}

Examples

1 · CSS

h1

h3

h4

h5

h6

!doctype

a

abbr

address

area

article

aside

audio

b

base

bdi

bdo

blockquote

body

br

button

canvas

caption

cite

code

col

colgroup

data

datalist

dd

del

details

dfn

dialog

div

dl

dt

em

embed

fieldset

figcaption

figure

footer

form

h1

h3

h4

h5

h6

head

header

hgroup

hr

html

i

iframe

img

input

ins

kbd

label

legend

li

link

main

map

mark

menu

meta

meter

nav

noscript

object

ol

optgroup

option

output

p

param

picture

pre

progress

q

rb

rp

rt

rtc

ruby

s

samp

script

search

section

select

slot

small

source

span

strong

style

sub

summary

sup

table

tbody

td

template

textarea

tfoot

th

thead

time

title

tr

track

u

ul

var

video

wbr

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu