Book description
Need to learn HTML and CSS fast? This best-selling reference's visual format and step-by-step, task-based instructions will have you up and running with HTML in no time. In this updated edition author Bruce Hyslop uses crystal-clear instructions and friendly prose to introduce you to all of today's HTML and CSS essentials. The book has been refreshed to feature current web design best practices. You'll learn how to design, structure, and format your website. You'll learn about the new elements and form input types in HTML5. You'll create and use images, links, styles, and forms; and you'll add video, audio, and other multimedia to your site. You'll learn how to add visual effects with CSS3. You'll understand web standards and learn from code examples that reflect today's best practices. Finally, you will test and debug your site, and publish it to the web. Throughout the book, the author covers all of HTML and offers essential coverage of HTML5 and CSS techniques.
Table of contents
- Title Page
- Copyright Page
- Dedication
- Acknowledgments
- Contents at a Glance
- Table of Contents
- Introduction
- 1. Webpage Building Blocks
- 2. Working with Webpage Files
-
3. Basic HTML Structure
- Starting Your Webpage
- Creating a Title
- Creating Headings
- Common Page Constructs
- Creating a Header
- Marking Navigation
- Marking the Main Area of a Webpage
- 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
- Adding a Paragraph
- Specifying Fine Print
- Marking Important and Emphasized Text
- Creating a Figure
- Indicating a Citation or Reference
- Quoting Text
- Specifying Time
- Explaining Abbreviations
- Defining a Term
- Creating Superscripts and Subscripts
- Adding Author Contact Information
- Noting Edits and Inaccurate Text
- Marking Up Code
- Using Preformatted Text
- Highlighting Text
- Creating a Line Break
- Creating Spans
- Other Elements
- 5. Images
- 6. Links
- 7. CSS Building Blocks
- 8. Working with Style Sheets
-
9. Defining Selectors
- Constructing Selectors
- Selecting Elements by Name
- Selecting Elements by Class or ID
- Selecting Elements by Context
- Selecting an Element That Is the First or Last Child
- Selecting the First Letter or First Line of an Element
- Selecting Links Based on Their State
- Selecting Elements Based on Attributes
- Specifying Groups of Elements
- Combining Selectors
-
10. Formatting Text with Styles
- Before and After
- 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
- Setting the Background
- Controlling Spacing
- Adding Indents
- Aligning Text
- Changing the Text Case
- Using Small Caps
- Decorating Text
- Setting Whitespace Properties
-
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
- Controlling the Display Type and Visibility of Elements
- Setting the Height or Width for an Element
- Adding Padding Around an Element
- Setting the Border
- Setting the Margins Around an Element
- Making Elements Float
- Controlling Where Elements Float
- Positioning Elements Relatively
- Positioning Elements Absolutely
- Positioning Elements in a Stack
- Determining How to Treat Overflow
- Aligning Elements Vertically
- Changing the Cursor
- 12. Building Responsive Webpages
- 13. Working with Web Fonts
-
14. Enhancements and Effects with CSS
- Browser Compatibility, Progressive Enhancement, and Polyfills
- Understanding Vendor Prefixes
- Rounding the Corners of Elements
- Adding Drop Shadows to Text
- Adding Drop Shadows to Elements
- Applying Multiple Backgrounds
- Using Gradient Backgrounds
- Setting the Opacity of Elements
- Effects with Generated Content
- Combining Images with Sprites
- 15. Lists
-
16. Forms
- Improvements to Forms in HTML5
- Creating Forms
- Processing Forms
- Organizing the Form Elements
- Creating Text Boxes
- Labeling Form Parts
- Creating Password Boxes
- Creating Email, Search, Telephone, and URL Boxes
- Creating Radio Buttons
- Creating Checkboxes
- Creating Text Areas
- Creating Select Boxes
- Allowing Visitors to Upload Files
- Creating Hidden Fields
- Creating a Submit Button
- Disabling Form Elements
- Styling Forms Based on Their State
-
17. Video, Audio, and Other Multimedia
- Third-Party Plugins and Going Native
- Video File Formats
- Adding a Video to Your Webpage
- 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 and a Text Fallback
- Providing Accessibility
- Audio File Formats
- Adding an Audio File with Controls to Your Webpage
- Autoplaying, Looping, and Preloading Audio
- Providing Multiple Audio Sources with a Fallback
- Adding Video and Audio with a Flash Fallback
- Advanced Multimedia
- Further Resources
- 18. Tables
- 19. Adding JavaScript
- 20. Testing & Debugging Webpages
- 21. Publishing Your Pages on the Web
- A. HTML Reference
- Index
Product information
- Title: HTML and CSS: Visual QuickStart Guide, Eighth Edition
- Author(s):
- Release date: August 2013
- Publisher(s): Peachpit Press
- ISBN: 9780133438932
You might also like
book
HTML and CSS: Visual QuickStart Guide, 9th Edition
Learn HTML and CSS with the Visual QuickStart Guide -- the quick and easy way! This …
video
HTML and CSS Visual QuickStart Guide, 9th Edition
Learn HTML and CSS with the Visual QuickStart Guide -- the quick and easy way! This …
book
Beginning HTML and CSS
Everything you need to build websites with the newest versions of HTML and CSS If you …
book
HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition
Want to learn how to build Web sites fast? This best-selling guide’s visual format and step-by-step, …