Foundation HTML5 with CSS3

(Steven Felgate) #1

iv


Contents


About the Authors ...................................................................................................... xi


About the Technical Reviewer.................................................................................. xii


Acknowledgments .................................................................................................... xiii


Introduction ............................................................................................................... xiv


Chapter 1: Getting Started .......................................................................................... 1
Introducing the Internet and the World Wide Web ....................................................................1
What Is HTML?..........................................................................................................................2
The Evolution of HTML.......................................................................................................... 3
What’s in HTML5? .....................................................................................................................6
Separating Content from Presentation ......................................................................................7
The Next Level of CSS .......................................................................................................... 8
Working with HTML and CSS....................................................................................................9
Choosing an Editor ................................................................................................................9
Choosing a Web Browser....................................................................................................10
Validating Your Documents .................................................................................................10
Hosting Your Web Site ........................................................................................................12
Introducing the URL ................................................................................................................12
The Components of a URL..................................................................................................12
Absolute and Relative URLs ...............................................................................................14
Summary .................................................................................................................................14


Chapter 2: HTML and CSS Basics............................................................................ 17
The Parts of Markup: Tags, Elements, and Attributes ............................................................17
Attributes .............................................................................................................................19
Content Models ...................................................................................................................20
Nesting Elements ................................................................................................................22
Global Attributes ..................................................................................................................22
White Space ........................................................................................................................25
Adding Comments ...............................................................................................................2 6
CSS Fundamentals .................................................................................................................27
Anatomy of a CSS Rule.......................................................................................................27
CSS Selectors .....................................................................................................................28
Combining Selectors ...........................................................................................................3 1
Grouping Selectors..............................................................................................................31
Advanced Selectors............................................................................................................. 31
Specificity and the Cascade .................................................................................................... 32

Free download pdf