HTML and CSS Reference
In-Depth Information
type. he strong element and the anchor (a) element on the last line are both
inline elements . hey only change the appearance of the type; they do not
change the low of the content.
Anchor elements deine the nodes of hypertext links. In the preceding
HTML, the browser highlights the phrase Our New Catalog to indicate that
clicking this text will take the reader somewhere else on the Web. he href
attribute provides the link's destination. In this case, the ile catalog.html,
which is assumed to be in the same directory as the current page, becomes the
new pageā€”if it exists. Otherwise, the server returns an error code, and the
browser displays a File Not Found error message.
Example 2.4 illustrates the use of comments, character entities, and markup
Example 2.4: A web page with a heading and two paragraphs
<!DOCTYPE html>
<title>Example 2.4</title>
<h1> The Title Of A Page </h1> <!-- Show the page title -->
<p><strong> Window Titles </strong> should have some relation
to the outside world, Level 1 Headings should introduce the
major sections of a work. </p>
<p> This is a second paragraph of text that exists only to show
how <em> paragraph elements </em> are used to separate text. It
points out the use of the &lt; strong &gt;&lt; /strong &gt; tags in
the first paragraph. </p>
Figure 2.4 shows what this example looks like in a browser. he body of this
page consists of a level 1 heading ( <h1>...</h1> ) and two paragraphs of text
enclosed by paragraph tags ( <p>...</p> ). To get the string <strong></strong> to
Search WWH ::

Custom Search