HTML5 and CSS3 Web Coding for Designers Lesson 4: The Cool New Stuff

Similar documents
Overview. History HTML What is HTML5? New Features Features Removed Resources 10/8/2014

Building Web Applications with HTML5, CSS3, and Javascript: An Introduction to HTML5

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

HTML5 & CSS3: New Markup & Styles for the Emerging Web

HTML5 & Digital Signage

PLAYER DEVELOPER GUIDE

Abusing HTML5. DEF CON 19 Ming Chow Lecturer, Department of Computer Science TuCs University Medford, MA

Web Designing with UI Designing

Week 7 Audio and Video

Designing for the Mobile Web Lesson 3: HTML5 Web Apps

CLASSROOM WEB DESIGNING COURSE

Web Browser. Fetches/displays documents from web servers. Mosaic 1993

1. About the Denver LAMP meetup group. 2. The purpose of Denver LAMP meetups. 3. Volunteers needed for several positions

What HTML5 is, isn t, and why it matters

Mobile Web Design with HTML5, CSS3, JavaScript and JQuery Mobile Training BSP-2256 Length: 5 days Price: $ 2,895.00

HTML5 & Friends. And How They Change A Developer s Life

COMMONWEALTH OF PENNSYLVANIA DEPARTMENT S OF Human Services, INSURANCE, AND AGING

HTML5 - Key Feature of Responsive Web Design

Basics of HTML (some repetition) Cascading Style Sheets (some repetition) Web Design

Web Building Blocks. Joseph Gilbert User Experience Web Developer University of Virginia Library

THE SAS OUTPUT DELIVERY SYSTEM: BOLDLY TAKE YOUR WEB PAGES WHERE THEY HAVE NEVER GONE BEFORE! CHEVELL PARKER, SAS INSTITUTE INC.

WebCenter User experience. John

HTML CSS Basic Structure. HTML Structure [Source Code] CSS Structure [Cascading Styles] DIV or ID Tags and Classes. The BOX MODEL

Building Responsive Websites with the Bootstrap 3 Framework

Study on Parallax Scrolling Web Page Conversion Module

A set-up guide and general information to help you get the most out of your new theme.

HTML5 & CSS3. Jens Jäger Freiberuflicher Softwareentwickler JavaEE, Ruby on Rails, Webstuff Blog: Mail: mail@jensjaeger.

Using HTML5 Pack for ADOBE ILLUSTRATOR CS5

2011 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media,

Responsive Web Design Creative License

HTML5 & CSS3. ( What about SharePoint? ) presented

Coding for Desktop and Mobile with HTML5 and Java EE 7

CIS 467/602-01: Data Visualization

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Cross-Platform Tools

HTML5 the new. standard for Interactive Web

Introducing our new Editor: Creator

Web Design Technology

Visualizing a Neo4j Graph Database with KeyLines

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

Chapter 8 More on Links, Layout, and Mobile Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

RESPONSIVE TEMPLATE GUIDE

The Semantic Web. CSCI 470: Web Science Keith Vertanen

How To Develop An Html5 Based Mobile App

JW Player Quick Start Guide

Web Marketing. Website Pre-launch Checklist

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Infinity Connect Web App Customization Guide

Professional iphone and ipod touch Programming. Building Applications for Mobile Safari

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

HTML5 and CSS3. new semantic elements advanced form support CSS3 features other HTML5 features

HTTP Live Streaming as a Secure Streaming Method. Bobby Kania Luke Gusukuma Client: Keith Gilbertson VT CS 4624 Semester Project 4/29/12

HTML5 for ETDs. Virginia Polytechnic Institute and State University CS May 8 th, Sung Hee Park. Dr. Edward Fox.

ViSH User Manual. ViSH is a social network for teachers and scientist to meet and collaborate in the science teaching.

Advanced Online Media Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Choosing a Mobile Strategy for Your Business

Web Development I & II*

Adobe Connect Support Guidelines

Responsive Design: Ben Callahan

Optimal Browser Settings for Internet Explorer Running on Microsoft Windows

Interactive Data Visualization for the Web Scott Murray

Friday, February 11, Bruce

Online Multimedia Winter semester 2015/16

Quick Start Guide Mobile Entrée 4

CS3051: Digital Content Management

RSW. Responsive Fullscreen WordPress Theme

RIA DEVELOPMENT OPTIONS - AIR VS. SILVERLIGHT

GLYPHICONS for the Web

Magic Liquidizer Documentation

HTML Nolan Erck

Outline. 1.! Development Platforms for Multimedia Programming!

jquery Tutorial for Beginners: Nothing But the Goods

The Internet, the Web, and Electronic Commerce

Note: the screenshots are based on the BETA version. The final release may look slightly different.

ON24 MOBILE WEBCASTING USER GUIDE AND FAQ FEBRUARY 2015

We automatically generate the HTML for this as seen below. Provide the above components for the teaser.txt file.

Web Development 1 A4 Project Description Web Architecture

Web App Development Session 1 - Getting Started. Presented by Charles Armour and Ryan Knee for Coder Dojo Pensacola

CarTrawler AJAX Booking Engine Version: 5.10 Date: 01/10/13.

Outline of CSS: Cascading Style Sheets

Web Development. How the Web Works 3/3/2015. Clients / Server

Prepared for Northwest Flower & Garden Show.

Going Beyond SAP ITS Mobile Apps to a Responsive Design Mobile Apps. JK (JayaKumar Pedapudi) Principal Consultant NTT DATA, Inc.

Example. Represent this as XML

ISE Web Portal Customization Options. Secure Access How-to User Guide Series

HTML5 and CSS3: New Markup & Styles for the Emerging Web. Jason Clark Head of Digital Access & Web Services Montana State University Libraries

Visualizing an OrientDB Graph Database with KeyLines

Mobile Learning Basics + (Free) Mobile Learning Guide. Jason Haag and Marcus Birtwhistle

ipad, a revolutionary device - Apple

Kentico CMS, 2011 Kentico Software. Contents. Mobile Development using Kentico CMS 6 2 Exploring the Mobile Environment 1

Responsive Design for Enterprise. July 2012

Citrix StoreFront. Customizing the Receiver for Web User Interface Citrix. All rights reserved.

ONLINE COURSE TIP SHEET. HTML5 Mobile Web Development. Jake Carter

contract Between me [Joe Schaefer, Web Consultant] and you [client] Summary:

Magento 1.4 Themes Design

<Insert Picture Here>

Introduction to Adobe Dreamweaver CC

Product description version

!!!!!!!! Startup Guide. Version 2.7

SUBJECT CODE : 4074 PERIODS/WEEK : 4 PERIODS/ SEMESTER : 72 CREDIT : 4 TIME SCHEDULE UNIT TOPIC PERIODS 1. INTERNET FUNDAMENTALS & HTML Test 1

Transcription:

HTML5 and CSS3 Web Coding for Designers Lesson 4: The Cool New Stuff Michael Slater, CEO Lisa Irwin, Sr. Developer course-support@webvanta.com 888.670.6793 www.webvanta.com

Welcome! Four sessions 1: Semantic HTML 2: Styling with CSS 3: Putting it All Together 4: The Cool New Stuff CSS3 2

Questions Ask questions via chat during the live course Ask in the discussion group Email us Please use the discussion group for non-private questions Course Portal www.online-web-courses.com Michael Slater Cofounder & CEO Lisa Irwin Web Developer 3

Goals for This Lesson What you can do today with HTML5 and CSS3 Rounded corners, shadows, and gradients Transforms and transitions New structural and form elements Audio and video What's different about mobile Why you should also learn a little JavaScript 4

What Works Where Many HTML5 and CSS3 techniques work in current versions of all browsers Internet Explorer is the primary exception Many techniques work in IE9 Resources for knowing what works where http://caniuse.com/ http://html5readiness.com/ http://wufoo.com/html5/ (HTML5 forms) 5

CSS3 Rounded corners Shadows Gradients Transforms Transitions 6

Rounded Corners Rounded corners without images!.rounded-box { border-radius: 10px; } Can specify each corner separately.oddly-rounded-box { border-radius: 5px 5px 20px 20px; } 7

Vendor Prefixes Standards under development are moving targets Browser makers want to create early implementations that behave predictably Vendor prefixes allow each to act independently, while still conforming to standard when settled -moz- (Mozilla Firefox) -webkit- (Webkit, Safari and Chrome) -ms- (Microsoft Internet Explorer) -o- (Opera) http://prefixr.com make it easy to add vendor prefixes Always put standard version (no prefix) last 8

Rounded Corners with Vendor Prefixes Latest browsers support the standard syntax Even IE9! But lots of older browsers support CSS rounded corners but require vendor prefix -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; IE8 and older will get square corners 9

Shadows Text-shadow text-shadow: 2px 2px 4px #555; Horiz. offset, vert. offset, blur radius, color No IE support until IE10 Can support CSS3 text-shadow with JavaScript (csssandpaper) Box-shadow box-shadow:5px 5px 10px #333; Works in IE9! 10

Gradients CSS gradients are an alternative to those singlepixel-wide repeated background images Better performance Easy to change (in theory...) Linear, radial, multiple stops all possible Code is messy due to differing implementations IE9 doesn t support it, but you can make it work using IE-proprietary filter 11

This May Be All You Want... background-image: linear-gradient(#063053,#395873,#5c7c99); 12

... But This is What You Need.gradient-div { /* fallback */ background-color:#063053; /* chrome 2+, safari 4+; multiple color stops */ background-image:-webkit-gradient(linear,left bottom,left top,colorstop(0.32,#063053),color-stop(0.66,#395873), color-stop(0.83,#5c7c99)); /* chrome 10+, safari 5.1+ */ background-image:-webkit-linear-gradient(#063053,#395873,#5c7c99); /* firefox; multiple color stops */ background-image:-moz-linear-gradient(top,#063053,#395873,#5c7c99); /* ie 6+ */ filter: progid:dximagetransform.microsoft.gradient(startcolorstr='#063053', endcolorstr='#395873'); /* ie8 + */ -ms-filter: "progid:dximagetransform.microsoft.gradient(startcolorstr='#063053', endcolorstr='#395873')"; /* ie10 */ background-image: -ms-linear-gradient(#063053,#395873,#5c7c99); /* opera 11.1 */ background-image: -o-linear-gradient(#063053,#395873,#5c7c99); /* The "standard" */ background-image: linear-gradient(#063053,#395873,#5c7c99); } 13

Don't Try to Code It Yourself! Many online generators available http://gradients.glrzad.com/ www.colorzilla.com/gradient-editor 14

Transforms Now (with the latest browsers) you can: Tilt an element Rotate or skew an element 2D transforms: all current browsers http://westciv.com/tools/transforms/index.html 3D transforms Current Chrome, Safari, Firefox IE requires IE 10 15

Transitions Supported in current non-ie browsers and IE 10 Transitions Control the speed of change for one set of CSS rules to another set Typically used for change to hover state Most CSS properties can be transitioned Specify property, speed, timing profile, delay http://webdesignerwall.com/trends/47-amazingcss3-animation-demos 16

Animation Allows more elaborate animation than transitions Display a series of keyframes on a schedule Each "keyframe" can be a set of CSS rules See http://animatable.com/demos/ madmanimation/ 17

CSS3 or JavaScript? You can achieve all these effects with JavaScript Works in all browsers Requires more code CSS3 effects most appealing for mobile sites SmartPhones mostly have very capable browsers Use CSS3 effects for desktop sites if you want simple implementation, and are willing to write off older browsers (and many IE users) 18

HTML5 Basics Structural tags Video and audio Forms 19

Basic HTML5 Wrapper <!DOCTYPE html> <html lang="en"> <head> <title>title of the Page</title> <link href="/mystyles.css" rel="stylesheet" /> </head> <body> (HTML body goes here) </body> </html> 20

Structural Tags To use with IE8 and older, need a little JS http://code.google.com/p/html5shiv/ HTML5 Structural tags provide better semantics, but no change to rendering <section> <article> <nav> <header> <footer> <aside> 21

When to Use Which Tag? Semantic tags should not be used as generic containers "div" remains the generic container for anything Header, footer, nav, and aside are generally intuitive Sections and articles can be nested multiple times Section 1 Article 1 Section a Section b Article 2 Section 2 22

What's an Article? Text straight from the HTML5 Spec The article element represents a self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication. This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content. 23

What's a Section? Text straight from the HTML5 Spec A section, in this context, is a thematic grouping of content, typically with a heading. A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline. Authors are encouraged to use the article element instead of the section element when it would make sense to syndicate the contents of the element. 24

HTML5 Video ipad and iphone have pushed this to the forefront In theory, it could be so simple <video width="640" height="360" src="/video/videofile.mp4"></video> However... Still need Flash video for older browsers No single video encoding supported by all major browsers Apple (Safari) supports only H.264 (MPEG-4) Mozilla (Firefox) and Google (Chrome) will not support H.264 25

Multi-Format HTML5 Video <video width="640" height="360" controls> <source src="/file.mp4" type="video/mp4" /> <source src="/file.ogv" type="video/ogg" /> (Insert Flash video player code here) (or, if you re willing to write off older browsers:) <h2>your browser is inferior</h2> </video> 26

Avoiding the Craziness Put the video on YouTube or Vimeo and use their embedded player They take care of encoding into multiple formats and providing the right code for each browser Use a library or service that takes care of HTML code and providing Flash fallback You still need to encode video into multiple formats jplayer.org (jquery plugin) JWplayer (www.longtailvideo.com/players) SublimeVideo.net (hosted player) 27

New Input Types For browsers that support them, give alternatives to type=text that provide specific behaviors Useful for mobile, where touch keyboard is optimized to present only the keys you need tel (telephone number) url (web address) number Validation, autofocus, placeholder text (someday...) Not enough support yet in desktop browsers to be interesting 28

Progressive Enhancement Tools modernizr (www.modernizr.com) JavaScript library that adds classes based on browser's capabilities JS libraries HTML5 Shiv (for structural elements in IE) http://code.google.com/p/html5shiv/ PIE (makes border-radius, box-shadow, gradients work in IE) http://css3pie.com/ Selectivizr (allows use of CSS3 selectors in IE) http://selectivizr.com/ 29

JavaScript For modern sites, JavaScript has become a critical part of the complete solution Enables pages to be interactive Allows markup to be created and updated by software jquery library makes JavaScript easier and more powerful, especially for designers You can learn to use jquery plugins without becoming a programmer 30

Mobile Explosive growth of mobile devices being used for web access is creating a massive shift The end of fixed-width page design One experience can't fit all users Consider fluid and responsive techniques Sites must adapt to wide variety of devices Optimize for small screens, touch interfaces A bigger role for the web, and even more complexity 31

We Hope You Enjoyed the Course! Discussion group remains open, and your video access is good for one year Check out our jquery and mobile courses www.webvanta.com/jquery-course www.webvanta.com/mobile-course Please spread the word! Course now available in recorded version Thanks! 32