Book description
Want to learn how to build Web sites fast? This best-selling
guide’s visual format and step-by-step, task-based
instructions will have you up and running with HTML5 and CSS3 in no
time. This Seventh Edition is a major revision, with approximately
125 pages added and substantial updates to (or complete rewrites
of) nearly every page from the preceding edition. Authors Elizabeth
Castro and Bruce Hyslop use clear instructions, friendly prose, and
real-world code samples to teach you HTML and CSS from the ground
up. Over the course of 21 chapters you will learn how to:
Write semantic HTML, both with elements that have been around for years and ones that are new in HTML5.
Prepare images for the Web and add them to your pages.
Use CSS to style text, add background colors and images, and implement a multicolumn layout.
Build a single site for all users—whether they are using a mobile phone, tablet, laptop, desktop computer, or other Web-enabled device—based on many of the components of responsive Web design, including CSS3 media queries.
Leverage new selectors in CSS3, add Web fonts to your pages with @font-face, and use CSS3 effects such as opacity, background alpha transparency, gradients, rounded corners, drop shadows, shadows inside elements, text shadows, and multiple background images.
Improve your site’s accessibility with ARIA landmark roles and other good coding practices.
Build forms to solicit input from your visitors.
Include media in your pages with the HTML5 audio and video elements.
Test and debug your Web pages.
Secure a domain name and publish your site.
And much more! All book code samples and more are
available on the companion web site.
Table of contents
- Title Page
- Copyright Page
- Dedication
- Acknowledgments
- Contents at a Glance
- Table of Contents
- Introduction
- 1. Web Page Building Blocks
- 2. Working with Web Page Files
-
3. Basic HTML Structure
- Starting Your Web Page
- Creating a Title
- Creating Headings
- Understanding HTML5’s Document Outline
- Grouping Headings
- Common Page Constructs
- Creating a Header
- Marking Navigation
- Creating an Article
- Defining a Section
- Specifying an Aside
- Creating a Footer
- Creating Generic Containers
- Improving Accessibility with ARIA
- Naming Elements with a Class or ID
- Adding the Title Attribute to Elements
- Adding Comments
-
4. Text
- Starting a New Paragraph
- Adding Author Contact Information
- Creating a Figure
- Specifying Time
- Marking Important and Emphasized Text
- Indicating a Citation or Reference
- Quoting Text
- Highlighting Text
- Explaining Abbreviations
- Defining a Term
- Creating Superscripts and Subscripts
- Noting Edits and Inaccurate Text
- Marking Up Code
- Using Preformatted Text
- Specifying Fine Print
- Creating a Line Break
- Creating Spans
- Other Elements
- 5. Images
- 6. Links
- 7. CSS Building Blocks
- 8. Working with Style Sheets
- 9. Defining Selectors
-
10. Formatting Text with Styles
- Choosing a Font Family
- Specifying Alternate Fonts
- Creating Italics
- Applying Bold Formatting
- Setting the Font Size
- Setting the Line Height
- Setting All Font Values at Once
- Setting the Color
- Changing the Text’s Background
- Controlling Spacing
- Adding Indents
- Setting White Space Properties
- Aligning Text
- Changing the Text Case
- Using Small Caps
- Decorating Text
-
11. Layout with Styles
- Considerations When Beginning a Layout
- Structuring Your Pages
- Styling HTML5 Elements in Older Browsers
- Resetting or Normalizing Default Styles
- The Box Model
- Changing the Background
- Setting the Height or Width for an Element
- Setting the Margins around an Element
- Adding Padding around an Element
- Making Elements Float
- Controlling Where Elements Float
- Setting the Border
- Offsetting Elements in the Natural Flow
- Positioning Elements Absolutely
- Positioning Elements in 3D
- Determining How to Treat Overflow
- Aligning Elements Vertically
- Changing the Cursor
- Displaying and Hiding Elements
- 12. Style Sheets for Mobile to Desktop
- 13. Working with Web Fonts
- 14. Enhancements with CSS3
- 15. Lists
-
16. Forms
- Creating Forms
- Processing Forms
- Sending Form Data via Email
- Organizing the Form Elements
- Creating Text Boxes
- Creating Password Boxes
- Creating Email, Telephone, and URL Boxes
- Labeling Form Parts
- Creating Radio Buttons
- Creating Select Boxes
- Creating Checkboxes
- Creating Text Areas
- Allowing Visitors to Upload Files
- Creating Hidden Fields
- Creating a Submit Button
- Using an Image to Submit a Form
- Disabling Form Elements
- New HTML5 Features and Browser Support
-
17. Video, Audio, and Other Multimedia
- Third-Party Plugins and Going Native
- Video File Formats
- Adding a Single Video to Your Web Page
- Exploring Video Attributes
- Adding Controls and Autoplay to Your Video
- Looping a Video and Specifying a Poster Image
- Preventing a Video from Preloading
- Using Video with Multiple Sources
- Multiple Media Sources and the Source Element
- Adding Video with Hyperlink Fallbacks
- Adding Video with Flash Fallbacks
- Providing Accessibility
- Adding Audio File Formats
- Adding a Single Audio File to Your Web Page
- Adding a Single Audio File with Controls to Your Web Page
- Exploring Audio Attributes
- Adding Controls and Autoplay to Audio in a Loop
- Preloading an Audio File
- Providing Multiple Audio Sources
- Adding Audio with Hyperlink Fallbacks
- Adding Audio with Flash Fallbacks
- Adding Audio with Flash and a Hyperlink Fallback
- Getting Multimedia Files
- Considering Digital Rights Management (DRM)
- Embedding Flash Animation
- Embedding YouTube Video
- Using Video with Canvas
- Coupling Video with SVG
- Further Resources
- 18. Tables
- 19. Working with Scripts
- 20. Testing & Debugging Web Pages
- 21. Publishing Your Pages on the Web
- A. HTML Reference
- B. CSS Properties and Values
- Index
Product information
- Title: HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition
- Author(s):
- Release date: December 2011
- Publisher(s): Peachpit Press
- ISBN: 9780131382022
You might also like
book
HTML5 and CSS3: Building Responsive Websites
Design robust, powerful, and above all, modern websites across all manner of devices with ease using …
book
HTML5 & CSS3 For The Real World, 2nd Edition
HTML5 and CSS3 for the Real World is your perfect introduction to the latest generation of …
book
Hello! HTML5 & CSS3: A user-friendly reference guide
Summary Hello! HTML5 & CSS3 is written for the web designer or developer who wants a …
video
HTML5 and CSS3: Video QuickStart Guide
Visual QuickStart Guides are now even more visual: building on the success of the top-selling Visual …