HTML5 & CSS3 A Practical Guide. HTML5 is more than HTML5 HTML5 Spec CSS3 Spec Web Fonts JavaScript to tie it all together.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

HTML5, OVERVIEW AND NEW FEATURES PowerPoint by Mason O’Mara.
Ideas to Layout Beginning web layout using Cascading Style Sheets (CSS). Basic ideas, practices, tools and resources for designing a tableless web site.
Week 3.  – now is the time.
SHAREPOINT PAKISTAN USER GROUP #1 SHAREPOINT COMMUNITY IN PAKISTAN AND ASIA HTML5 and SharePoint 2013.
Sculpt Framework Mobile-First with Progressive Enhancement.
Philly.NET Hands-On MVC Razor, HTML5, CSS3 Rob Keiser, Bill Wolff.
Browser Toolbars You Shouldn’t Do Without How the WAT and WDT Can Help You Design Accessible Websites.
Chapter 14 Introduction to HTML
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 13: Working with Web Fonts.
UNIT 7 MOBILE APPLICATIONS. OBJECTIVES  CO3 Create a website that is optimized for viewing on a mobile device. 2.
Week 5 HTML5 and Video + Web Fonts. Video and HTML5 Until now, there has not been a standard for showing a video/movie on a web page. In the past most.
HTML 5 New Standardization of HTML. I NTRODUCTION HTML5 is The New HTML Standard, New Elements New Attributes Full CSS3 Support Video and Audio 2D/3D.
Week 6.  Browser DOCTYPE switching What it means for you  – now is the time  CSS3 Web design for the 21 st Century.
HTML5 Accessibility Ted Drake, Yahoo! Accessibility Lab Slideshare.net/7mary4.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
IE11 Preview is here! Briefing prepared for the IE MVPs and IE userAgents communities.
Neal Stublen Font Limitations  Browsers can only display the fonts installed on the device Arial, Verdana, Times, Georgia  Custom.
PRO HTML5 PROGRAMMING POWERFUL APIS FOR RICHER INTERNET APPLICATION DEVELOPMENT.
Using Styles and Style Sheets for Design
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
Ins & Outs of. CSS3 is Modular Can we use it now?
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Class three: CSS review, backgrounds, font formatting, the box model.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: – The head content – The body Creating Head Content and Setting Page.
CSS = Cascading Style Sheet CSS consists of rules to display, style and decorate HTML elements Why CSS ? – Separate decoration from HTML markup (Ex :,,…)
Tutorial 8 Enhancing a Web Site with Advanced CSS
Congratulations! You are part of a global community of thousands of web developers who attend Web Camps to keep their web development skills up-to-date.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Building great standards based websites for the big wide world with ASP.NET 4 Tatham Oddie Senior Consultant Readify ASP.NET Damian Edwards.
HTML, CSS, and XML Tutorial 8 Enhancing a Web Site with Advanced CSS.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Web Foundations TUESDAY, OCTOBER 29, 2013 LECTURE 20: EMBEDDING WEB FONTS.
UPLOAD / DOWNLOAD april  HTML5 is just the next iteration of HTML  Previous version was technically HTML 4.01, which incorporated XHTML 1.0.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 14: Enhancements and Effects with CSS3.
How the Web Works Building a Website – Lesson 1. How People Access the Web Browsers People access websites using software called a web browser. To view.
Lesson 15: Cascading Style Sheets. Objectives Identify ways to apply Web page formatting with Cascading Style Sheets (CSS1 and CSS2) using various methods.
Is Your Site Accessible? Validating Your Web Site.
Kendo Ui Basics.
HTML 5 The Future of Web Development. What is HTML5? “HTML5 is a specification of how the web’s core language, HTML, should be formatted and utilized.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Internet Explorer 10 IE9 hardware-accelerated platform CSS 2D Transforms CSS Backgrounds & Borders CSS Color CSS Fonts CSS Media Queries CSS Namespaces.
HTML5 & CSS3 A Practical Guide To HTML5 New Elements Forms Semantics Javascript.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
10 Mobile Application Framework Must Know to Launch New App.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
The HTML5 logo was introduced by W3C in 2010
Chapter 17 The Need for HTML 5.
Chapter 4: Feature Detection & Drag and Drop
Creating Visual Effects
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Creating Visual Effects and Animation
HTML5 Level II Session II
Responsive browser-based video recording and playback
Web Design 3080 : Week 3 Introduction to Dreamweaver Lecture
What are Cascading Stylesheets (CSS)?
Presentation transcript:

HTML5 & CSS3 A Practical Guide

HTML5 is more than HTML5 HTML5 Spec CSS3 Spec Web Fonts JavaScript to tie it all together

What’s New in HTML5 Spec? Simplified and Loose Syntax New Elements and Attributes Embedded Media Canvas Offline Storage Drag and Drop Geo-Location

What’s New in CSS3 Spec? New Selector Decorations New Column Layout Transformation (Rotate, Resize…etc) Animation (Fade In/Fade Out)

IN THE REAL WORLD HTML5

Why Use HTML5 Today? Pros Better semantics Lean code Improved user experience Cons Some work is needed to accommodate older browsers

Approaches Modernizr Numerous polyfills

Modernizr A minimal JavaScript solution (5k) that detects a browser’s features

html5shiv Turns HTML5 structural elements into HTML4 elements for older browsers becomes

Using today Pros Greater compatibility Better performance Cons More complex preparation Can be tricky when embedding hosted videos (YouTube, Vimeo, etc.)

Video tag markup Video for Everybody code by Kroc Camen

VideoJS Builds on VFE Uses JavaScript for a more consistent experience Falls back gracefully if JavaScript is disabled FREE! See for details and downloads.

IN THE REAL WORLD CSS3

Why Use CSS3 Today? Pro Smaller download Less JavaScript Better user experience Cons Some work is needed to accommodate older browsers

Various Approaches CSS3 + IE Filters PIE Selectivzr Modernizr eCSStender

CSS3 + IE Filters Pure CSS solution with forks background: #1E5799; /* old browsers */ background: -moz-linear-gradient(top, #1E5799 0%, #2989D8 50%, #207cca 51%, #7db9e8 100%); /* firefox */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1E5799), color-stop(50%,#2989D8), color- stop(51%,#207cca), color-stop(100%,#7db9e8)); /* webkit */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1E5799', endColorstr='#7db9e8',GradientType=0 ); /* ie */

At a Glance SelectorDecorationFile SizeNotes CSS3 + IE FilterNoYes?

PIE A JavaScript solution that uses IE specific behavior that is applied via HTML Components (HTC). Limited feature support: border-radius box-shadow linear-gradient HTC file is 11kb.

At a Glance SelectorDecorationFile SizeNotes CSS3 + IE FilterNoYes? PIENoLimited11KIE Only

Selectivizr A JavaScript solution that emulates CSS3 pseudo-class and attribute selectors in IE 6-8

At a Glance SelectorDecorationFile SizeNotes CSS3 + IE FilterNoYes? PIENoLimited11KIE Only SelectivzrYesNo4KIE Only

Modernizr A JavaScript solution that detects user browser’s features

At a Glance SelectorDecorationFile SizeNotes CSS3 + IE FilterNoYesN/A PIENoLimited11KIE Only SelectivzrYesNo4KIE Only ModernizrNo 5K

eCSStender A JavaScript solution that dynamically writes CSS to support older browsers. Core is (20k), Extensions are additional (tiny)files to download. Only download the extensions that you want.

At a Glance SelectorDecorationFile SizeNotes CSS3 + IE FilterNoYesN/APure CSS PIENoLimited11KIE Only SelectivzrYesNo4KIE Only ModernizrNo 5K eCSStenderYesLimited20K+

Which Approach To Take? Depends… How much CSS3 are you leveraging Download size and performance Who’s your client No JS support and fall back strategies Test, Test, Test!

IN THE REAL

Web fonts Allows a page to use fonts not installed on a users first spec’d in CSS2 Resistance from font designers made it unworkable Designers and services now working together to make fonts available

When to use web fonts Great for headlines, pull quotes, etc., especially when limiting font styles to limit file size Be careful with body copy. Not all fonts are readable at body copy size Keep in mind that different browsers will render differently, so avoid line-breaks and accommodate re-flow of text

Using web fonts Pros Fewer images = lighter pages More creative typography Easier to maintain pages Cons Added page size More “creative” typography Rendering differences make testing a must

Hosted solutions Typekit, Monotype, etc. Low set up difficulty Excellent compatibility: IE4+, Firefox 3.5+, Safari 3.1+, Opera 10+, Chrome 4+ Great selection, no licensing issues Javascript file required, dependence on 3rd party Recurring payments required upper tiers

Serving locally Good selection from Font Squirrel, League of Moveable Type, etc. Moderate set up difficulty Excellent compatibility: IE4+, Firefox 3.5+, Safari 3.1+, Opera 10+, Chrome 4+, iOS No JavaScript required Using your own desktop fonts probably violates the license

How to Hosted services require a script tag and configuration via their website Local code (generated by Font { font-family: 'LeagueGothicReg'; src: url('League_Gothic-webfont.eot'); src: local('☺'), url('League_Gothic-webfont.woff') format('woff'), url('League_Gothic-webfont.ttf') format('truetype'), url('League_Gothic-webfont.svg#webfontOTINA1xY') format('svg'); font-weight: normal; font-style: normal; }

Take Away Don’t be afraid to provide the HTML5 experience today HTML5 CSS3 Web fonts JS