HTML and CSS Reference
In this Try It you learn how to separate text with headings.
You will need your previously created web page, thoreau.html , a text editor, and a web browser.
Open your text editor.
Open the previously saved thoreau.html .
Place your cursor before the first <p> tag and press Enter (Return) to make a new line above
the paragraph tag.
On the new line, enter the following code:
<h1>Famous Quotes of Henry David Thoreau</h1>.
After the last closing </p> tag press Enter (Return) to create a new line.
On the new line, enter the following code: <h2>On Living</h2>.
Create a new line and enter the following code:
< p>Every man is the builder of a temple called his body.</p>.
<p>Our life is frittered away by detail. Simplify, simplify.</p>.
Save your document.
In your browser, open thoreau.html to view the rendered page, as shown in Figure 6-4.