Foundation HTML5 with CSS3

(Steven Felgate) #1
Contents

v

Formatting CSS.................................................................................................................. 34
Summary................................................................................................................................ 36

Chapter 3: The Document ......................................................................................... 37


The Anatomy of an HTML Document..................................................................................... 38
The Doctype ....................................................................................................................... 38
The Root Element: html...................................................................................................... 40
head.................................................................................................................................... 41
title ...................................................................................................................................... 42
meta.................................................................................................................................... 43
link ...................................................................................................................................... 46
base .................................................................................................................................... 50
style .................................................................................................................................... 52
script ................................................................................................................................... 54
body .................................................................................................................................... 57
The Document Tree............................................................................................................... 58
Connecting CSS ..................................................................................................................... 58
Inline Styling....................................................................................................................... 59
Embedded Style Sheets ..................................................................................................... 59
External Style Sheets......................................................................................................... 60
The Cascade Order ............................................................................................................ 61
Style with Color....................................................................................................................... 62
Specifying Colors in CSS................................................................................................... 63
Summary................................................................................................................................ 67

Chapter 4: Constructing Content ............................................................................. 69


Content and Structure............................................................................................................ 69
Logical Sections..................................................................................................................... 70
section ................................................................................................................................ 71
article .................................................................................................................................. 72
header ................................................................................................................................ 73
footer................................................................................................................................... 74
aside ................................................................................................................................... 75
nav ...................................................................................................................................... 77
Headings ................................................................................................................................ 78
h1, h2, h3, h4, h5, and h6.................................................................................................. 78
hgroup ................................................................................................................................ 80
Outlines and Sectioning Roots ............................................................................................... 82
Meaningful Portions................................................................................................................ 84
p.......................................................................................................................................... 84
blockquote .......................................................................................................................... 85
Free download pdf