22.06.2015 Views

Step by Step HTML5

Create successful ePaper yourself

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

vi<br />

Contents<br />

2 Setting Up the Document Structure 13<br />

Specifying the Document Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14<br />

Creating the HTML, Head, and Body Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15<br />

Creating Paragraphs and Line Breaks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br />

Specifying a Page Title and Metatags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />

Publishing a File to a Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />

3 Formatting Text <strong>by</strong> Using Tags 25<br />

Creating Headings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />

Applying Bold and Italic Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

Applying Superscript and Subscript Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

Using Monospace and Preformatted Text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

Formatting a Block Quotation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

Configuring View Settings in Internet Explorer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

4 Using Lists and Backgrounds 47<br />

Creating Bulleted and Numbered Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48<br />

Nesting Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49<br />

Changing the Bullet or Number Character . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

Specifying the Start of a Numbered List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51<br />

Creating Definition Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54<br />

Inserting Special Characters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br />

Inserting Horizontal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57<br />

Choosing Background and Foreground Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60<br />

Specifying Colors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60<br />

Applying a Background Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61<br />

Applying a Foreground Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61<br />

Specifying a Background Image File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br />

Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65<br />

5 Creating Hyperlinks and Anchors 67<br />

Hyperlinking to a Web Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />

Using Partial Paths and Filenames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />

Using Relative and Absolute Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br />

Setting a Target Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

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

Saved successfully!

Ooh no, something went wrong!