HTML5 and CSS3: Building Responsive Websites

Author: Thoriq Firdaus;Ben Frain;Benjamin LaGrone  

Publisher: Packt Publishing‎

Publication year: 2016

E-ISBN: 9781787120020

P-ISBN(Paperback): 9781787124813

Subject: TP312 程序语言、算法语言;TP316.8 WebOS

Keyword: 网络操作系统,自动化技术、计算机技术,程序语言、算法语言

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Description

Design robust, powerful, and above all, modern websites across all manner of devices with ease using HTML5 and CSS3 About This Book • Use Responsive Grid System, Bootstrap, and Foundation frameworks for responsive web design • 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 • Make a mobile website using jQuery mobile and mobile-first design Who This Book Is For This course is for web developers who are familiar with HTML and CSS but want to understand the essentials of responsive web design. It is for those developers who are willing to seek innovative techniques that deliver fast, intuitive interfacing with the latest mobile Internet devices. What You Will Learn • Build a semantic website structure with HTML5 elements • Use Bower to organize website dependencies • Make responsive media that is optimized for the specific device on which it’s displayed, allowing images, videos, and other elements be fully appreciated • Make typography that’s fluidly responsive, so it’s easy to read on all devices—no more hard-to-see text on a tiny mobile screen • Get to know techniques for server-side and client-side media deployment, providing platforms that are scaled for any device that requests them In Detail Responsive web design is an explosive area of growth in modern web development due to the huge volume of different device sizes and resolutions that are now commercially available. The Internet is going mobile. 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 Learning Path course explains all the key approaches necessary to create and maintain a modern responsive design using HTML5 and CSS3. Our first module is a step-by-step introduction to ease you into the responsive world, where you will learn to build engaging websites. With coverage of Responsive Grid System, Bootstrap, and Foundation, you will discover three of the most robust frameworks in responsive web design. Next, you’ll learn to create a cool blog page, a beautiful portfolio site, and a crisp professional business site and make them all totally responsive. Packed with examples and a thorough explanation of modern techniques and syntax, the second module provides a comprehensive resource for all things “responsive.” You’ll explore 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. The last and the final module is your guide to obtaining full access to next generation devices and browser technology. Create responsive applications that make snappy connections for mobile browsers and give your website the latest design and development advantages to reach mobile devices. At the end of this course, you will learn to get and use all the tools you need to build and test your responsive web project performance and take your website to the next level. This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products: • Responsive Web Design by Example: Beginner’s Guide - Second Edition by Thoriq Firdaus • Responsive Web Design with HTML5 and CSS3 - Second

Chapter

Chapter 1: Responsive Web Design

Responsive web design in a nutshell

A look into responsive frameworks

Responsive web design inspiration sources

Summary

Chapter 2: Web Development Tools

Choosing a code editor

Managing project dependency with Bower

Summary

Chapter 3: Constructing a Simple Responsive Blog with Responsive.gs

Responsive.gs components

Using HTML5 elements for semantic markups

Examining the blog's wireframe

Organizing project directories and files

The blog HTML structures

Summary

Chapter 4: Enhancing the Blog Appearance

Using CSS3

Working with Koala

Thinking mobile first

Composing the blog styles

Optimize the blog for desktop

Making Internet Explorer more capable with polyfills

Summary

Chapter 5: Developing a Portfolio Website with Bootstrap

The Bootstrap components

Digging into Bootstrap

Using font icons

Examining the portfolio website layout

Project directories, assets, and dependencies

The portfolio website HTML structure

Summary

Chapter 6: Polishing the Responsive Portfolio Website with LESS

Basic LESS syntax

External style sheet references

Working with Koala

Polishing the portfolio website with LESS

Improve and make the website functioning with JavaScript

Summary

Chapter 7: A Responsive Website for Business with Foundation

Examining the website layout

A look into Foundation

Additional required assets

The project directories, assets, and dependencies

Summary

Chapter 8: Extending Foundation

Syntactically Awesome Style Sheets

Project recap

Style sheet organizations

The website's look and feel

Fine-tuning the website

Summary

Module 2: Responsive Web Design with HTML5 and CSS3

Chapter 1: The Essentials of Responsive Web Design

Beginning our quest

Defining responsive web design

Setting browser support levels

Our first responsive example

The shortcomings of our example

Summary

Chapter 2: Media Queries – Supporting Differing Viewports

Why media queries are needed for a responsive web design

Media query syntax

Combining media queries

Using media queries to alter a design

Considerations for organizing and authoring media queries

Combine media queries or write them where it suits?

The viewport meta tag

Media Queries Level 4

Summary

Chapter 3: Fluid Layouts and Responsive Images

Converting a fixed pixel design to a fluid proportional layout

Introducing Flexbox

Getting Flexy

Responsive images

Summary

Chapter 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

Chapter 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

Chapter 6: Stunning Aesthetics with CSS3

Text shadows with CSS3

Box shadows

Background gradients

Repeating gradients

Background gradient patterns

Multiple background images

High-resolution background images

CSS filters

A warning on CSS performance

Summary

Chapter 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

Chapter 8: Transitions, Transformations, and Animations

What CSS3 transitions are and how we can use them

CSS3 2D transforms

CSS3 3D transformations

Animating with CSS3

Summary

Chapter 9: Conquer Forms with HTML5 and CSS3

HTML5 forms

Understanding the component parts of HTML5 forms

HTML5 input types

How to polyfill non-supporting browsers

Styling HTML5 forms with CSS3

Summary

Chapter 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

Module 3: HTML5 and CSS3 Responsive Web Design Cookbook

Chapter 1: Responsive Elements and Media

Introduction

Resizing an image using percent width

Responsive images using the cookie and JavaScript

Making your video respond to your screen width

Resizing an image using media queries

Changing your navigation with media queries

Making a CSS3 button glow for a loading element

Chapter 2: Responsive Typography

Introduction

Creating fluid, responsive typography

Making a text shadow with canvas

Making an inner and outer shadow with canvas

Rotating your text with canvas

Rotating your text with CSS3

Making 3D text with CSS3

Adding texture to your text with text masking

Styling alternating rows with the nth positional pseudo class

Adding characters before and after pseudo elements

Making a button with a relative font size

Adding a shadow to your font

Curving a corner with border radius

Chapter 3: Responsive Layout

Introduction

Responsive layout with the min-width and max-width properties

Controlling your layout with relative padding

Adding a media query to your CSS

Creating a responsive width layout with media queries

Changing image sizes with media queries

Hiding an element with media queries

Making a smoothly transitioning responsive layout

Chapter 4: Using Responsive Frameworks

Introduction

Using the Fluid 960 grid layout

Using the Blueprint grid layout

Fluid layout using the rule of thirds

Trying Gumby, a responsive 960 grid

The Bootstrap framework makes responsive layouts easy

Chapter 5: Making Mobile-first Web Applications

Introduction

Using the Safari Developer Tools' User Agent switcher

Masking your user agent in Chrome with a plugin

Using browser resizing plugins

Learning the viewport and its options

Adding tags for jQuery Mobile

Adding a second page in jQuery Mobile

Making a list element in jQuery Mobile

Adding a mobile, native-looking button with jQuery Mobile

Adding a mobile stylesheet for mobile browsers only using the media query

Adding JavaScript for mobile browsers only

Chapter 6: Optimizing Responsive Content

Introduction

Responsive testing using IE's Developer Tools

Browser testing – using plugins

Development environments – getting a free IDE

Virtualization – downloading VirtualBox

Getting a browser resizer for Chrome

Chapter 7: Unobtrusive JavaScript

Introduction

Writing "Hello World" unobtrusively

Creating a glowing "submit" button with the event listener

Making a button stand out when you hover over it

Resizing an element with unobtrusive jQuery

Masking a password with unobtrusive JavaScript

Using an event listener to animate an image shadow

Bibliography

HTML5 and CSS3_Building Responsive Websites_Preface_SZ.pdf

The users who browse this book also browse


No browse record.