To style this heading, you will need a selector that targets the <h1> element. To make sure you don't target every <h1> on the page, you should also include a unique identifier, such as header, within the selector (see Listing 8.1). Listing 8.1. CSS Code Showing the Selector to Style the Headingh1#header {...} The HTML code used for this heading is shown in Listing 8.2. Listing 8.2. HTML Code Containing the Markup for a Heading<h1 > Page Heading </h1>
|