O'Reilly logo

Cascading Style Sheets (CSS) by Example by Steve Callihan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting the H1 Rule

In HTML, the H1 element specifies the top-level (or level-one) heading for a page. Generally, there should only be one H1 element included in a page and it should be at or near the top of the page.

Setting the Font Size

By default, browsers display the H1 element in a font size that is larger than any of the other elements, because it is the top-level heading within an HTML document (see Figure 3.1).

Figure 3.1. Prior to any style being applied, the browser determines the size of an H1 element.

HTML also allows you to change the font size of the H1 and other elements, using the FONT element. The FONT element allows the setting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required