Book description
Learn the HTML5 and CSS3 you need to help you design responsive and future-proof websites that meet the demands of modern web users
About This Book
- Learn and explore how to harness the latest features of HTML5 in the context of responsive web design
- Learn to wield the new Flexbox layout mechanism, code responsive images, and understand how to implement SVGs in a responsive project
- Make your pages interactive by using CSS animations, transformations, and transitions
Who This Book Is For
Are you writing two websites - one for mobile and one for larger displays? Or perhaps you've already implemented your first 'RWD' but are struggling bring it all together? If so, Responsive Web Design with HTML5 and CSS3, Second Edition gives you everything you need to take your web sites to the next level.
You'll need some HTML and CSS knowledge to follow along, but everything you need to know about Responsive Design and making great websites is included in the book!
What You Will Learn
- Understand what responsive design is, and why it's vital for modern web development
- HTML5 markup is cleaner, faster, and more semantically rich than anything that has come before - learn how to use it and its latest features
- Integrate CSS3 media queries into your designs to use different styles for different media. You'll also learn about future media queries which are evolving in CSS4.
- Responsive images allow different images to be presented in different scenarios. We'll cover how to load different sets of images depending upon screen size or resolution and how to display different images in different contexts.
- Conquer forms! Add validation and useful interface elements like date pickers and range sliders with HTML5 markup alone.
- Implement SVGs into your responsive designs to provide resolution independent images, and learn how to adapt and animate them
- Learn how to use the latest features of CSS including custom fonts, nth-child selectors (and some CSS4 selectors), CSS custom properties (variables), and CSS calc
In Detail
Desktop-only websites just aren't good enough anymore. With mobile internet usage still rising, and tablets changing internet consumption habits, you need to know how to build websites that will just 'work', regardless of the devices used to access them. This second edition of Responsive Web Design with HTML5 and CSS3 explains all the key approaches necessary to create and maintain a modern responsive design.
The changing way in which we access the web means that there has never been a greater range of screen sizes and associated user experiences to consider. With these recent trends driving changes in design, typical desktop-only websites fail to meet even minimum expectations when it comes to style and usability, which can be vital when your website is central to yours or your client's brand. Responsive Web Design with HTML5 and CSS3, Second Edition is an updated and improved guide that responds to the latest challenges and trends in web design, giving you access to the most effective approaches to modern responsive design.
Learn how to build websites with a 'responsive and mobile first' methodology, allowing a website to display effortlessly on every device that accesses it. Packed with examples, and a thorough explanation of modern techniques and syntax, Responsive Web Design with HTML5 and CSS3, Second Edition provides a comprehensive resource for all things 'responsive'.
This updated new edition covers all the most up-to-date techniques and tools needed to build great responsive designs, ensuring that your projects won't just be built 'right' for today, but in the future too.
Chapter example code is all hosted on rwd.education, a dedicated site for the book, built by the author, using the approaches and techniques championed throughout.
Style and approach
This book should be useful in two ways: as a 'read from the beginning and learn as you go' resource but also as a reference you can come back to in the months to come - when trying to remember this or that syntax or look up a link that may help you out of a development hell-hole.
To this end, rather than follow a single design through from chapter one and build on it incrementally until the end of the book, each chapter exists in relative isolation.
This means that code and examples are particular to each chapter and don't need to be considered along with what has gone before or after.
That doesn't mean that each chapter's techniques won't work in unison; the reference site for this book, rwd.education is an example of them all working in harmony.
However, by limiting the chapter examples to the topic at hand, it should be simpler for you to understand and reference the essence of each example and topic in the future.
Table of contents
-
Responsive Web Design with HTML5 and CSS3 Second Edition
- Table of Contents
- Responsive Web Design with HTML5 and CSS3 Second Edition
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. The Essentials of Responsive Web Design
- 2. Media Queries – Supporting Differing Viewports
-
3. Fluid Layouts and Responsive Images
- Converting a fixed pixel design to a fluid proportional layout
- Introducing Flexbox
- Getting Flexy
- Responsive images
- Summary
-
4. HTML5 for Responsive Web Designs
- HTML5 markup – understood by all modern browsers
- Starting an HTML5 page the right way
- Easy-going HTML5
- New semantic elements in HTML5
- HTML5 text-level semantics
- Obsolete HTML features
- Putting HTML5 elements to use
- WCAG and WAI-ARIA for more accessible web applications
- Embedding media in HTML5
- Responsive HTML5 video and iFrames
- A note about 'offline first'
- Summary
-
5. CSS3 – Selectors, Typography, Color Modes, and New Features
- No one knows it all
- Anatomy of a CSS rule
- Quick and useful CSS tricks
- Word wrapping
- Facilitating feature forks in CSS
- New CSS3 selectors and how to use them
- CSS3 structural pseudo-classes
- CSS custom properties and variables
- CSS calc
- CSS Level 4 selectors
- Web typography
- New CSS3 color formats and alpha transparency
- Summary
- 6. Stunning Aesthetics with CSS3
-
7. Using SVGs for Resolution Independence
- A brief history of SVG
- The graphic that is a document
- Creating SVGs with popular image editing packages and services
- Inserting SVGs into your web pages
- Inserting an SVG inline
- What you can do with each SVG insertion method (inline, object, background-image, and img)
- Extra SVG capabilities and oddities
- Animating SVG with JavaScript
- Optimising SVGs
- Using SVGs as filters
- A note on media queries inside SVGs
- Summary
- 8. Transitions, Transformations, and Animations
- 9. Conquer Forms with HTML5 and CSS3
-
10. Approaching a Responsive Web Design
- Get designs in the browser as soon as possible
- View and use the design on real devices
- Embracing progressive enhancement
- Defining a browser support matrix
- Tiering the user experience
- Linking CSS breakpoints to JavaScript
- Avoid CSS frameworks in production
- Coding pragmatic solutions
- Use the simplest code possible
- Hiding, showing, and loading content across viewports
- Validators and linting tools
- Performance
- The next big things
- Summary
- Index
Product information
- Title: Responsive Web Design with HTML5 and CSS3 - Second Edition
- Author(s):
- Release date: August 2015
- Publisher(s): Packt Publishing
- ISBN: 9781784398934
You might also like
book
Beginning Responsive Web Design with HTML5 and CSS3
Beginning Responsive Web Design with HTML5 and CSS3is your step-by-step guide to learning how to embrace …
book
Learning Responsive Web Design
Deliver an optimal user experience to all devices—including tablets, smartphones, feature phones, laptops, and large screens—by …
book
Using SVG with CSS3 and HTML5
Using Scalable Vector Graphics (SVG) for illustrations only scratches the surface of this format’s potential on …
book
HTML5 and CSS3: Building Responsive Websites
Design robust, powerful, and above all, modern websites across all manner of devices with ease using …