HTML and CSS Reference
In-Depth Information
Lesson requirements
You will need the file new.html from the Lesson_06 folder, a text editor and a web browser.
You can download the code and resources for this exercise from the topic's web
page at www.wrox.com .
step-by-step
1.
Open your text editor.
2.
From the Lesson_06 folder, open new.html .
3.
Place your cursor after <body> and press Enter (Return) to make a new line.
4.
On the new line, enter the following code:
<p>Henry David Thoreau is best known for his topics and essays.</p> .
5.
Press Enter (Return) and enter the following code:
<p>However, many of his quotations resonate with us today.</p> .
6.
Save your text editor document as thoreau.html .
77 7
In your browser, open thoreau.html to review the rendered page, as shown in Figure 6-2.
FiGure 6-2
addinG HeadinGs
Headings serve to separate and introduce major divisions to a web page. Search engines pay close
attention to headings when available, especially at the top levels. A tight correlation between the
window title, the de facto page title (the first heading), and the content can really boost a page's
rankings in a search engine index.
Search WWH ::




Custom Search