ISBN-13: 9781118657201 / Angielski / Miękka / 2013 / 384 str.
ISBN-13: 9781118657201 / Angielski / Miękka / 2013 / 384 str.
Your full-color, friendly guide to getting started with HTML5 and CSS3 HTML and CSS are essential tools for creating dynamic websites and help make your websites even more effective and unique. This friendly-but-straightforward guide gets you started with the basics of the latest versions of HTML and CSS: HTML5 and CSS3. Introducing you to the syntax and structure of the languages, this helpful guide shows you how to create and view a web page, explains ideal usage of HTML5 and CSS3, walks you through the CSS3 rules and style sheets, addresses common mistakes and explains how to fix them, and explores interesting HTML5 tools.
Introduction 1
About this Book 2
Foolish Assumptions 3
Icons Used in This Book 4
Beyond the Book 4
Where to Go from Here 5
Part I: Getting Started with HTML and CSS on the Web 7
Chapter 1: An Overview of HTML and CSS on the Web 9
How and Where Web Pages Come to Life Online 10
HyperText 10
Content versus presentation 14
Web browsers 14
Getting to know Internet protocols 16
Understanding HTML and Its Versions 17
Different versions of HTML 17
Creating HTML markup 18
Building HTML documents 19
Understanding the Role of CSS 20
Different versions here, too 20
Creating CSS markup 21
Dissecting a Simple Markup Example 22
Where s the HTML? 22
Where s the CSS? 23
A partnership of equals 23
Chapter 2: Meeting the Structure and Components of HTML 25
Like Any Language: Syntax and Rules 25
Color–coding the markup 26
Breaking down the elements 27
Adding Attributes to Your HTML 29
Examining Entities in Markup 30
Non–ASCII characters 30
Character codes 31
(Special) tag characters 32
Organizing Web Pages 32
Organizing HTML text 34
Complementing and enhancing text 36
Chapter 3: Creating and Viewing a Web Page 37
Before You Get Started 37
Creating a Page from Scratch 39
Step 0: Gather your tools 39
Step 1: Planning a simple design 40
Step 2: Writing some HTML 41
Step 3: Saving your page 44
Step 4: Viewing your page 46
Editing an Existing Web Page 47
Posting Your Page Online 49
Part II: Getting the Structure and Text Right 51
Chapter 4: HTML Documents Need Good Structure 53
Establishing a Document Structure 53
HTML Document Organization Revisited 54
HTML DOCTYPE Starts Things Off 55
The Element 56
Anatomy of the 56
Meeting the himself 57
Handling metadata with 57
Redirecting users to another page 58
Naming your page with a