10.07.2017 Views

246996016-HTML5-Step-by-Step

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Formatting Text <strong>by</strong><br />

Using Tags<br />

In this chapter, you will learn how to<br />

4 Create headings.<br />

4 Apply bold and italic formatting.<br />

4 Apply superscript and subscript formatting.<br />

4 Use monospaced and preformatted text.<br />

4 Format a block quotation.<br />

4 Configure Internet Explorer view settings.<br />

Creating Web pages is not word processing. It’s important to keep that in mind as you<br />

learn HTML, because I’m going to ask you to be patient for a few chapters as you learn<br />

HTML the right way—that is, the standards-compliant way.<br />

When most people think of formatting text, the first thing that pops into their minds<br />

is choosing a font—a typeface, size, and color. That’s easy to do in a word-processing<br />

document, but in HTML it’s more complicated. Early versions of HTML used a <br />

tag to specify a particular typeface, size, and color. If it were ten years ago, I would be<br />

happy to teach you that tag in this chapter, but the tag has been removed from<br />

<strong>HTML5</strong>. Even though most browsers still recognize the tag, you shouldn’t use<br />

it: it’s obsolete. Therefore, rather than teach you bad habits with old tags, I’m going to<br />

teach you how to apply typefaces, sizes, and colors to text with styles—but not in this<br />

chapter. Although using styles is a superior way of applying fonts to text, it is a little more<br />

advanced than you’re ready for just yet. You’ll learn all about using fonts in HTML code in<br />

Part 2, “Style Sheets and Graphics.”<br />

25

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

Saved successfully!

Ooh no, something went wrong!