22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

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

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

36<br />

Part I: Getting to Know (X)<strong>HTML</strong> and <strong>CSS</strong><br />

Listing 2-1 (continued)<br />

Along the way, we will examine the principles and best practices<br />

that govern Web page design and construction, and help you<br />

understand how to make your content accessible to the broadest<br />

possible audience.<br />

<br />

By the time you work your way through this book’s contents, you<br />

should feel comfortable with creating and managing your own Web<br />

site. You should also understand what it takes to identify your<br />

audience, communicate with that audience, and keep your content<br />

fresh and interesting to keep them coming back for more.<br />

<br />

Sincerely,<br />

Jeff Noble and Ed Tittel, your humble authors<br />

<br />

<br />

The <strong>HTML</strong> markup includes a collection of markup elements and attributes<br />

that describe the letter’s contents:<br />

✓ The element defines the document as an <strong>HTML</strong> document.<br />

✓ The element creates a header section for the document.<br />

✓ The element defines a document title that is displayed in the<br />

browser’s title bar.<br />

The element is inside the element.<br />

✓ The element holds the text that appears in the browser window.<br />

The markup that follows the style=” “ attribute inside the <br />

element is <strong>CSS</strong>, otherwise known as the Cascading Style Sheet markup<br />

language. <strong>CSS</strong> says we want white text on a teal background, where the<br />

text is larger than usual, and in a sans-serif font. (You find out all about<br />

styles and attributes in Chapters 9 and 10.)<br />

✓ The element marks the Hello World text as a first-level heading.<br />

✓ The elements identify each paragraph of the document.<br />

Don’t worry about the ins and outs of how the <strong>HTML</strong> elements work. They<br />

are covered in detail in Chapters 4 and 5. Also, a Web page includes graphics,<br />

scripts, and other elements that we deliberately avoid in this contrived and<br />

simple example to keep things, well, simple! We cover all these things in profuse<br />

detail later in the book, though.

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

Saved successfully!

Ooh no, something went wrong!