HTML and CSS Reference
In-Depth Information
appear in the second paragraph without being interpreted as a tag, character
entities are used for the angle brackets.
Figure 2.4: An example of the use of a level-one heading
Although the HTML source code in Example 2.4 is neatly formatted, it does
not matter where the tags are placed with respect to the content. Browsers are
supposed to ignore any leading, trailing, or redundant white space. he follow-
ing HTML segments all produce the exact same heading as the one shown in
Figure 2.4:
<h1> The Title Of A Page </h1>
<h1> The Title Of A Page </h1>
<h1> <!-- show the page title -->
The Title Of A Page
HTML5 Semantics
HTML elements are divided into two classes: block elements , which change
the content low, and inline elements , which do not change the content low.
Content low describes how the document's elements appear as a page dis-
played in the browser's window. Block elements are normally separated from
each other by line breaks and an amount of vertical white space that varies
by the type of element. By default, most block elements occupy the full width
available and just enough height to accommodate the content. Within that
area, text and other inline elements are normally wrapped into lines that it
nicely inside the block element.
Search WWH ::

Custom Search