HTML and CSS Reference
In-Depth Information
Try iT
In this Try It you learn how to separate text with headings.
Lesson requirements
You will need your previously created web page, thoreau.html , a text editor, and a web browser.
step-by-step
1.
Open your text editor.
2.
Open the previously saved thoreau.html .
3.
Place your cursor before the first <p> tag and press Enter (Return) to make a new line above
the paragraph tag.
4.
On the new line, enter the following code:
<h1>Famous Quotes of Henry David Thoreau</h1>.
5.
After the last closing </p> tag press Enter (Return) to create a new line.
6.
On the new line, enter the following code: <h2>On Living</h2>.
7.
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>.
8.
Save your document.
9.
In your browser, open thoreau.html to view the rendered page, as shown in Figure 6-4.
FiGure 6-4
Search WWH ::




Custom Search