Beginning HTML and CSS

Book description

Everything you need to build websites with the newest versions of HTML and CSS

If you develop websites, you know that the goal posts keep moving, especially now that your website must work on not only traditional desktops, but also on an ever-changing range of smartphones and tablets. This step-by-step book efficiently guides you through the thicket. Teaching you the very latest best practices and techniques, this practical reference walks you through how to use HTML5 and CSS3 to develop attractive, modern websites for today's multiple devices. From handling text, forms, and video, to implementing powerful JavaScript functionality, this book covers it all.

  • Serves as the ultimate beginners guide for anyone who wants to build websites with HTML5 and CSS3, whether as a hobbyist or aspiring professional developer

  • Covers the basics, including the different versions of HTML and CSS and how modern websites use structure and semantics to describe their contents

  • Explains core processes, such as marking up text, images, lists, tables, forms, audio, and video

  • Delves into CSS3, teaching you how to control or change the way your pages look and offer tips on how to create attractive designs

  • Explores the jQuery library and how to implement powerful JavaScript features, such as tabbed content, image carousels, and more

Get up to speed on HTML5, CSS3, and today's website design with this practical guide. Then, keep it on your desk as a reference!

Table of contents

  1. Cover
  2. Table of Contents
  3. Chapter 1: Structuring Documents for the Web
    1. A Web of Structured Documents
    2. Introducing HTML5
    3. Attribute Groups
    4. Core Elements
    5. Basic Text Formatting
    6. Understanding Block and Inline Elements
    7. Grouping Content
    8. Working with Lists
    9. Summary
  4. Chapter 2: Fine-tuning Your Text
    1. Elements That Describe Text-Level Semantics
    2. Editing Text
    3. Using Character Entities for Special Characters
    4. Comments
    5. Summary
  5. Chapter 3: Links and Navigation
    1. Basic Links
    2. Understanding Directories and Directory Structures
    3. Understanding URLs
    4. Creating In-Page Links with the <a> Element
    5. Advanced E-mail Links
    6. Summary
  6. Chapter 4: Images, Audio, and Video
    1. Adding Images Using the <img> Element
    2. Using Images as Links
    3. Choosing the Right Image Format
    4. Adding Flash, Video, and Audio to Your Web Pages
    5. Summary
  7. Chapter 5: Tables
    1. Introducing Tables
    2. Basic Table Elements and Attributes
    3. Adding a Caption to a Table
    4. Grouping Sections of a Table
    5. Nested Tables
    6. Accessible Tables
    7. Summary
  8. Chapter 6: Forms
    1. Introducing Forms
    2. Creating a Form with the <form> Element
    3. Form Controls
    4. Creating a Contact Form
    5. Creating Labels for Controls and the <label> Element
    6. Structuring Your Forms with <fieldset> and <legend> Elements
    7. Focus
    8. Disabled and Read-Only Controls
    9. Sending Form Data to the Server
    10. Creating More Usable Form Fields
    11. Summary
  9. Chapter 7: Cascading Style Sheets
    1. Introducing CSS
    2. Where You Can Add CSS Rules
    3. CSS Properties
    4. Controlling Text
    5. Text Formatting
    6. Text Pseudo-Classes
    7. Styling Text
    8. Selectors
    9. Lengths
    10. Introducing the Box Model
    11. Creating a Style Sheet for Code
    12. Summary
  10. Chapter 8: More Cascading Style Sheets
    1. Links
    2. Backgrounds
    3. Lists
    4. Tables
    5. Outlines
    6. The :focus and :active Pseudo-Classes
    7. Generated Content
    8. Miscellaneous Properties
    9. Additional Rules
    10. Positioning and Layout with CSS
    11. Summary
  11. Chapter 9: Rounded Corners, Animations, Custom Fonts, and More with CSS3
    1. The Modular Approach of CSS3
    2. Mature CSS3 Modules
    3. New and In-Development Modules
    4. Summary
  12. Chapter 10: Learning JavaScript
    1. What Is Programming About?
    2. How to Add a Script to Your Pages
    3. Create an External JavaScript
    4. The Document Object Model
    5. Starting to Program with JavaScript
    6. Variables
    7. Operators
    8. Functions
    9. Conditional Statements
    10. Looping
    11. Events
    12. Built-in Objects
    13. Writing JavaScript
    14. Summary
  13. Chapter 11: Working with jQuery
    1. Why jQuery?
    2. Adding jQuery to Your Page
    3. jQuery Basics
    4. jQuery and the DOM
    5. Managing Events with jQuery
    6. Summary
  14. Chapter 12: jQuery: Beyond the Basics
    1. Ajax with jQuery
    2. jQuery UI
    3. Summary
  15. Chapter 13: Checklists
    1. Search Engine Optimization Checklist
    2. Accessibility Checklist
  16. Appendix A: Answers to Exercises
    1. Chapter 1
    2. Chapter 2
    3. Chapter 3
    4. Chapter 4
    5. Chapter 5
    6. Chapter 6
    7. Chapter 7
    8. Chapter 8
    9. Chapter 9
    10. Chapter 10
    11. Chapter 11
    12. Chapter 12
    13. Chapter 13
  17. Appendix B: HTML Element Reference
  18. Appendix C: CSS Properties
    1. Font Properties
    2. Text Properties
    3. Color and Background Properties
    4. Border Properties
    5. Dimensions
    6. Margin Properties
    7. Padding Properties
    8. List Properties
    9. Positioning Properties
    10. Outline Properties
    11. Table Properties
    12. Classification Properties
    13. Internationalization Properties
    14. Selected CSS3 Properties
    15. Lengths
  19. Appendix D: Color Names and Values
    1. Using Hex Codes to Specify Colors
    2. Understanding Hex Codes
    3. Using Color Names to Specify Colors
    4. Color Name and Number Reference
  20. Appendix E: Character Encodings
  21. Appendix F: Special Characters
    1. Character Entity References for ISO 8859-1 Characters
    2. Character Entity References for Symbols, Mathematical Symbols, and Greek Letters
    3. Character Entity References for Markup-Significant and Internationalization Characters
  22. Appendix G: Language Codes
  23. Appendix H: MIME Media Types
    1. Text
    2. Image
    3. Multipart
    4. Audio
    5. Video
    6. Message
    7. Model
    8. Application
  24. Appendix I: Changes between HTML4 and HTML5
    1. New Elements
    2. New <input> Element Types
    3. New Attributes
    4. Global Attributes
    5. Changed Attributes
    6. Obsolete Elements
    7. Obsolete Attributes
    8. At-Risk Elements
  25. About the Author
  26. Credits
  27. Acknowledgments
  28. Introduction

Product information

  • Title: Beginning HTML and CSS
  • Author(s):
  • Release date: March 2013
  • Publisher(s): Wrox
  • ISBN: 9781118340189