Responsive Web Design with HTML5 and CSS: Develop future-proof responsive websites using the latest HTML5 and CSS techniques, 3rd Edition PDF Free Download

0

 

Harness the latest capabilities of HTML5 and CSS to create a single UI that works flawlessly on mobile phones, tablets, and desktops ― plus everything in-between

Key Features

  • Understand what responsive web design is and its significance for modern web development
  • Explore the latest developments in responsive web design including variable fonts, CSS Scroll Snap, and more
  • Get to grips with the uses and benefits of the new CSS Grid layout

Book Description

Responsive Web Design with HTML5 and CSS, Third Edition is a renewed and extended version of one of the most comprehensive and bestselling books on the latest HTML5 and CSS tools and techniques for responsive web design.

Written in the author’s signature friendly and informal style, this edition covers all the newest developments and improvements in responsive web design including better user accessibility, variable fonts and font loading, CSS Scroll Snap, and much, much more. With a new chapter dedicated to CSS Grid, you will understand how it differs from the Flexbox layout mechanism and when you should use one over the other.

Furthermore, you will acquire practical knowledge of SVG, writing accessible HTML markup, creating stunning aesthetics and effects with CSS, applying transitions, transformations, and animations, integrating media queries, and more. The book concludes by exploring some exclusive tips and approaches for front-end development from the author.

By the end of this book, you will not only have a comprehensive understanding of responsive web design and what is possible with the latest HTML5 and CSS, but also the knowledge of how to best implement each technique.

What you will learn

  • Integrate CSS media queries into your designs; apply different styles to different devices
  • Load different sets of images depending upon screen size or resolution
  • Leverage the speed, semantics, and clean markup of accessible HTML patterns
  • Implement SVGs into your designs to provide resolution-independent images
  • Apply the latest features of CSS like custom properties, variable fonts, and CSS Grid
  • Add validation and interface elements like date and color pickers to HTML forms
  • Understand the multitude of ways to enhance interface elements with filters, shadows, animations, and more

Who this book is for

Are you a full-stack developer who needs to gem up on their front-end skills? Perhaps you work on the front-end and you need a definitive overview of all modern HTML and CSS has to offer? Maybe you have done a little website building but you need a deep understanding of responsive web designs and how to achieve them? This is a book for you!

All you need to take advantage of this book is a working understanding of HTML and CSS. No JavaScript knowledge is needed.

Table of Contents

  1. The Essentials of Responsive Web Design
  2. Writing HTML Markup
  3. Media Queries – Supporting Differing Viewports
  4. Fluid Layout, Flexbox, and Responsive Images
  5. Layout with CSS Grid
  6. CSS Selectors, Typography, Color Modes, and More
  7. Stunning Aesthetics with CSS
  8. Using SVGs for Resolution Independence
  9. Transitions, Transformations, and Animations
  10. Conquer Forms with HTML5 and CSS
  11. Bonus Techniques and Parting Advice

 

From the Publisher

responsive web design html5 cssresponsive web design html5 css

An interview with author Ben Frain

Why did you want to write a third edition?

The tenets of Responsive Web Design haven’t really changed, but much of the web around it has! The first version of this book was published in 2012, which is an age ago in web development terms. The second edition was published in 2015, and at the time, a lot of the most exciting new capabilities we have at our disposal were only just being specified. There’s been a lot to talk about in this new 2020 version!

Table of Contents

The Essentials of Responsive Web Design

Writing HTML Markup

Media Queries – Supporting Differing Viewports

Fluid Layout, Flexbox, and Responsive Images

Layout with CSS Grid

CSS Selectors, Typography, Color Modes, and More

Stunning Aesthetics with CSS

…and more

responsive web designresponsive web design

Okay, so what’s new in this third edition?

The biggest single addition is the chapter on CSS Grid. It’s a new and lengthy chapter that didn’t exist at all in previous editions. If you haven’t got to grips with CSS Grid yet – you need to, whether that’s with my book or another resource. Beyond that, there’s sizeable sections on variable fonts, CSS Scroll Snap, CSS Custom Properties, and lots, lots more.

responsive web designresponsive web design

When you talk about building “future-proof responsive websites”, how future-proof do you mean?

The great thing about the web is it incredibly backwards-compatible. That means if you write standards compliant HTML5/CSS and JavaScript, which is what we concentrate on in the book, you’ll be in the best possible shape. This book concentrates on building websites that will work just fine on all manner of devices in at least 5-10 years from now.

Furthermore, I’ve concentrated on pragmatism; detailing the kind of techniques and solutions I use everyday building responsive websites and applications ‘for real’.

Table of contents :

Cover
Copyright
Packt Page
Contributors
Table of Contents
Preface
Chapter 1: The Essentials of Responsive Web Design
The browser and device landscape
Defining responsive web design
Responsive web design in a nutshell
Browser support
Text editors
Tools for software development
Our first responsive example
Our basic HTML file
Taming images
A brief tangent on width/max-width for images
Enter media queries
Breakpoints
Amending the example for a larger screen
The shortcomings of our example
Summary
Chapter 2: Writing HTML Markup
Getting the start of HTML pages right
The doctype
The html tag and lang attribute
Character encoding
The forgiving nature of HTML5 markup
A sensible approach to HTML markup
All hail the mighty tag
New semantic elements in HTML5
The element
The element
The element
The element
The element
The element
The element
The HTML5 outline algorithm
A note on h1-h6 elements
The div element
The p element
The blockquote element
The and elements
and elements
The element
HTML text-level semantics
The element
The element
The element
The element
The element
Obsolete HTML features
Putting HTML elements to use
WCAG accessibility conformance and WAI-ARIA for more accessible web applications
Web Content Accessibility Guidelines (WCAG)
WAI-ARIA
Taking ARIA further
Embedding media in HTML5
Adding video and audio in HTML
Providing alternate media sources
Audio and video tags work almost identically
Responsive HTML5 video and iframes
Summary
An exercise
Chapter 3: Media Queries – Supporting Differing Viewports
The viewport meta tag
Why media queries are needed for a responsive web design
Basic conditional logic in CSS
Media query syntax
Media queries in link tags
Media query on an @import at-rule
Media queries in a CSS file
Inverting media query logic
Combining media queries
A number of different media queries
Everyday media queries
What can media queries test for?
Using media queries to alter a design
Advanced media query considerations
Organizing media queries
The practicalities of separating media queries
Nesting media queries “inline”
Combine media queries or write them where it suits?
Media Queries Level 4
Interaction media features
The pointer media feature
The hover media feature
The prefers-color-scheme media feature
Summary
Chapter 4: Fluid Layout, Flexbox, and Responsive Images
Converting a fixed pixel design to a fluid proportional layout
Why do we need Flexbox?
Inline-block and white-space
Floats
Table and table-cell
Introducing Flexbox
The bumpy path to Flexbox
Leave prefixing to someone else
Choosing your autoprefixing solution
Getting Flexy
Perfect vertically centered text
Offset items
Reverse the order of items
How about if we want them laid out vertically instead?
Column reverse
Different Flexbox layouts with media queries
Inline-flex
Flexbox alignment properties
The align-items property
The align-self property
Possible alignment values
The justify-content property
The flex property
Simple sticky footer
Changing the source order
Wrapping with flex
Wrapping up Flexbox
Responsive images
The inherent problem of responsive images
Simple resolution switching with srcset
Advanced switching with srcset and sizes
Did you say the browser “might” pick one image over another?
Art direction with the picture element
Facilitate new image formats
Summary
Chapter 5: Layout with CSS Grid
What CSS Grid is and the problems it solves
Basic Grid syntax
Grid-specific concepts and terminology
Setting up a grid
Explicit and implicit
grid-auto-rows and grid-auto-columns
grid-auto-flow
Placing and sizing grid items
gap
repeat
fr units
Placing items in the grid
span
dense
Named grid lines
grid-template-areas
Applying what you have learned so far
auto-fit and auto-fill
The minmax() function
Shorthand syntax
grid-template shorthand
grid shorthand
grid shorthand value – option one
grid shorthand value – option two
grid shorthand value – option three
Summary
Chapter 6: CSS Selectors, Typography, Color Modes, and More
Selectors, units, and capabilities
Anatomy of a CSS rule
Pseudo-elements and pseudo-classes
CSS Level 3 selectors and how to use them
CSS attribute selectors
CSS substring matching attribute selectors
Chaining attribute selectors
CSS structural pseudo-classes
The :last-child selector
The nth-child selectors
nth-based selection in responsive web designs
Combinator selectors – child, next sibling, and subsequent sibling
The negation (:not) selector
The empty (:empty) selector
Responsive viewport-percentage lengths (vmax, vmin, vh, and vw)
CSS calc
CSS custom properties
Setting a fallback value
env() environment variables
Using @supports to fork CSS
Feature queries
Combining conditionals
Web typography
System fonts
The @font-face CSS rule
Implementing web fonts with @font-face
Optimizing font loading with font-display
font-display
Variable fonts
font-face changes
Using a variable font
Font features
Exercise
CSS color formats and alpha transparency
RGB color
HSL color
Alpha channels
Summary
Chapter 7: Stunning Aesthetics with CSS
Text shadows with CSS
Omit the blur value when it’s not needed
Multiple text shadows
Box shadows
Inset shadow
Multiple shadows
Understanding spread
Background gradients
Linear-gradient notation
Specifying gradient direction
Color stops
Radial background gradients
Breakdown of radial gradient syntax
Handy “extent” keywords for responsive sizing
Repeating gradients
Background gradient patterns
Multiple background images
Background size
Background position
Background shorthand
High resolution background images
CSS filters
Available CSS filters
Combining CSS filters
A warning on CSS performance
CSS clip-path
clip-path with url
CSS basic shapes
clip-path with a circle
clip-path with ellipse
clip-path with inset
clip-path with polygon
clip-path with URL (clipping source)
Animating clip-path
mask-image
mask-image example
mix-blend-mode
Summary
Chapter 8: Using SVGs for Resolution Independence
A brief history of SVG
An image that is also a readable web document
The root SVG element
namespace
The title and desc tags
The defs tag
The g element
SVG shapes
SVG paths
Creating SVGs with popular image editing packages and services
Saving time with SVG icon services
Inserting SVGs into your web pages
Using an img tag
With an object tag
Inserting an SVG as a background image
A brief aside on data URIs
Generating image sprites
Inserting an SVG inline
Reusing graphical objects from symbols
Inline SVGs allow different colors in different contexts
Making dual-tone icons that inherit the color of their parent
Recoloring SVGs with CSS custom properties
Reusing graphical objects from external sources
What you can do with each SVG insertion method (inline, object, background-image, and img)
Browser schisms
Extra SVG capabilities and oddities
SMIL animation
Styling an SVG with an external style sheet
Styling an SVG with internal styles
SVG properties and values within CSS
Animating an SVG with CSS
Animating SVG with JavaScript
A simple example of animating an SVG with GreenSock
Optimizing SVGs
Using SVGs as filters
A note on media queries inside SVGs
SVG implementation tips
Summary
Further resources
Chapter 9: Transitions, Transformations, and Animations
What CSS transitions are and how we can use them
The properties of a transition
The transition shorthand property
Transitioning different properties over different periods of time
Understanding timing functions
CSS 2D transforms
Scale
Translate
Using translate to center absolutely positioned elements
Rotate
Skew
Matrix
Transform-origin property
CSS 3D transformations
The translate3d property
A progressive enhancement example using translate3d
Animating with CSS
The animation-fill-mode property
Exercises and training
Summary
Chapter 10: Conquer Forms with HTML5 and CSS
HTML5 forms
Understanding the component parts of HTML5 forms
The placeholder attribute
Styling the placeholder text
Styling the input caret with the caret-color property
The required attribute
The autofocus attribute
The autocomplete attribute
The list attribute and the associated datalist element
HTML5 input types
The email input type
The number input type
Using min and max to create number ranges
Changing the step increments
The url input type
The tel input type
The search input type
The pattern input attribute
The color type input
Date and time
The date input type
The month input type
The week input type
The time input type
The range input type
Styling HTML5 forms with CSS
Indicating required fields
Creating a background fill effect
Summary
Chapter 11: Bonus Techniques and Parting Advice
Breaking up long URLs
Truncating text
Creating horizontal scrolling panels
Horizontal scrolling panels with Grid
CSS Scroll Snap
The scroll-snap-type property
The scroll-snap-align property
The scroll-padding property
Smooth scrolling with CSS scroll-behavior
Linking CSS breakpoints to JavaScript
Get designs in the browser as soon as possible
Test on real devices
Embrace progressive enhancement
Define a browser support matrix
Functional parity, not visual parity
Choosing the browsers to support
Tiering the user experience
Avoid CSS frameworks in production
Hiding, showing, and loading content across viewports
Validators and linting tools
Performance
Performance tools
The next big things
Summary
Other Books You May Enjoy
Index

 

Publisher‏:‎Packt Publishing (April 30, 2020)
Language‏:‎English
Paperback‏:‎408 pages
ISBN-10‏:‎1839211563
ISBN-13‏:‎978-1839211560

Download Responsive Web Design with HTML5 and CSS Pdf Free:

You can easily download Responsive Web Design with HTML5 and CSS PDF by clicking the link given below. If the PDF link is not responding, kindly inform us through comment section. We will fixed it soon.

 NOTE: We do not own copyrights to these books. We’re sharing this material with our audience ONLY for educational purpose. We highly encourage our visitors to purchase original books from the respected publishers. If someone with copyrights wants us to remove this content, If you feel that we have violated your copyrights, then please contact us immediately. please contact us. or Email: [email protected]

 

Leave A Reply

Your email address will not be published.

nineteen − sixteen =