Step by Step HTML5 - 7

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Contents   vii

Hyperlinking to an E-Mail Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71


Creating and Hyperlinking to Anchors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Hyperlinking to Other Content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

Part 2 Style Sheets and Graphics


6 Introduction to Style Sheets 85
Understanding Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Constructing Style Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Creating Styles for Nested Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Creating Classes and IDs for Applying Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Applying Styles to Hyperlinks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Creating and Linking to External Style Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100

7 Formatting Text by Using Style Sheets 103


Specifying a Font Family . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Specifying a Font Size and Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Applying Bold and Italics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Applying Strikethrough and Underlining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Creating Inline Spans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Adjusting Spacing Between Letters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

8 Formatting Paragraphs by Using Style Sheets 125


Indenting Paragraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Applying a Border to a Paragraph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Specifying a Border Style . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Setting Border Padding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Specifying Border Width and Color . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Formatting Border Sides Individually . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Setting All Border Attributes at Once . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Specifying the Horizontal Alignment of a Paragraph . . . . . . . . . . . . . . . . . . . . . . . . 135
Specifying Vertical Space within a Paragraph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Key Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

You might also like