Defines the properties for a Heading 2 element.
Browser/User Agent Support
| IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|
| 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
Example
This example styles an h2 element:
h2 {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 20pt;
color: navy;
padding-top: 12px;
padding-bottom: 3px;
}
Remarks
You can specify different amounts of padding above and below a heading to group it visually with other elements.


