10.07.2017 Views

246996016-HTML5-Step-by-Step

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

26 Chapter 3<br />

This chapter introduces several important tags that format text according to its purpose.<br />

In Chapter 2, “Setting Up the Document Structure,” you learned about the tag for<br />

regular paragraphs, but there are many other tags that are used for headings, programming<br />

code, quotations, and more. Most of the tags discussed in this chapter are semantic<br />

tags; they describe the function of the text, rather than provide directions for formatting.<br />

For example, the heading tag specifies that the text within it should be formatted<br />

as a major heading, but it provides no specifics as to what that formatting should be.<br />

The formatting specifics for semantic tags can come from a variety of sources:<br />

●●<br />

●●<br />

●●<br />

Styles As you will learn in Part 2 of this book, you can specify the font families<br />

and sizes to use throughout your entire Web site. For example, you can select a font<br />

family that will be suggested to the browser whenever a certain tag is applied.<br />

The Web browser in use Each Web browser has defaults for the standard HTML<br />

tags. For example, in Internet Explorer (and most other browsers), is leftaligned,<br />

18-point Times New Roman. Most browsers use the same defaults for the<br />

very basic tags, but non-standard browsers, such as those on phones, often display<br />

text differently.<br />

Individual user customization A user can customize his Web browser to suit his<br />

preferences. Later in this chapter, you’ll get to play with these settings in Internet<br />

Explorer so you’ll know what your potential audience might be doing.<br />

Keep in mind as you practice using tags that their formatting is not fixed. The results you<br />

see when previewing the exercise pages in Internet Explorer represent the default settings<br />

for your version of Internet Explorer (or whatever browser you are using to preview<br />

them); the style is not intrinsic to those tags themselves. That will become important in<br />

Part 2 of the book, when you learn how to define more specific formatting for tags.<br />

See Also Do you need only a quick refresher on the topics in this chapter? See the Key Points<br />

section at the end of this chapter.<br />

Practice Files Before you can use the practice files provided for this chapter, you need<br />

to download and install them from the book’s companion content location. See “Using<br />

the Practice Files” at the beginning of this book for more information.<br />

Creating Headings<br />

Headings in Web pages function the same way as they do in printed documents—they<br />

separate text into sections. The HTML standard defines six levels of headings, <br />

through , each one progressively smaller in font size.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!