10/8/2014
Brian May IBM i Modernization Specialist Profound Logic Software
Webmaster and Coordinator Young i Professionals
Overview ó History HTML ó What is HTML5? ó New Features ó Features Removed ó Resources
1 10/8/2014
A look back as how we got here
History of HTML ó HTML ó HyperText Markup Language ó Markup language understood universally by all web browsers to render text, images, and other media ó First draft of HTML standard in 1993
2 10/8/2014
History of HTML ó Nov. 1995 – HTML 2.o published by Internet Engineering Task Force (IETF) ó Jan. 1997 – HTML 3.2 published by World Wide Web Consortium (W3C) ó Dec. 1997 – HTML 4.0 published by W3C ó Dec. 1999 – HTML 4.01 published by W3C
History of HTML ó HTML 4.01 is still the official HTML standard ó 13 years old now ó W3C spent early 200o’s concentrating on XHTML standards ó Web technology has continued to progress even though the HTML standard did not ó Increased Javascript use ó Browser Plug-in technologies ó Nonstandard implementations of these new functionalities have led to current applications being complicated by extra code for browser compatibility
3 10/8/2014
What is HTML5? ó Latest revision to the HTML standard ó Web Hypertext Application technology Working Group (WHATWG) ó Initially rejected but later adopted by the W3C ó Supersedes HTML4.01, XHTML1 and DOM Level 2 HTML ó Currently is a W3C Candidate Recommendation ó Not finalized
4 10/8/2014
What is HTML5? ó Because of W3C’s concentration on XHTML standard, HTML5 is partially an attempt to “catch up” with techniques already widely used ó Standardization of API’s used for modern web development ó More concentration on Web Applications instead of static content ó More semantic markup
What is HTML5? ó There are many different technologies surrounding HTML5 ó Obviously the lines between these technologies are easily blurred
5 10/8/2014
What is HTML5? ó W3C Spec ó http://www.w3c.org/TR/html5/ ó WHATWG Spec ó http://www.whatwg.org/html5/
6 10/8/2014
What’s New in HTML5 ó Simplified DOCTYPE and Character Set ó In HTML5, there is only one DOCTYPE ó ó Previously DOCTYPEs were very complex ó ó HTML is no longer a subset of SGML ó Setting the Character Set ó ó
What’s New in HTML5 ó Semantic Elements ó
7 10/8/2014
What’s New in HTML5 ó Semantic Elements ó
What’s New in HTML5 ó Semantic Elements ó
8 10/8/2014
What’s New in HTML5 ó Why do we need all these new semantic tags? ó HTML4 only allowed 6 levels of headings in a page (h1 – h6). ó Semantic elements can each have their own set of 6 heading levels thus making well structured content much more flexible.
What’s New in HTML5 ó Example of Semantic Content
9 10/8/2014
What’s New in HTML5 ó Canvas ó Provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly. ó Javascript is used to draw on the canvas. ó Useful for rendering dynamic visual content such as charts
What’s New in HTML5 ó Canvas
10 10/8/2014
What’s New in HTML5 ó Video ó
What’s New in HTML5 ó Video
11 10/8/2014
What’s New in HTML5 ó Local Storage ó Until now, if you wanted to save information on the user’s local device, you would use a Cookie ó Cookies are transmitted with every HTTP request ó Limited to ~4KB of data ó In the Web Storage specification (previously a part of HTML5), local storage is simple and effective ó Implemented in Key/Value pairs ó Never transmitted back to the server ó Implemented natively in browser ó 5MB of storage allowed per origin
What’s New in HTML5 ó Local Storage ó http://www.w3schools.com/html/tryit.asp?filename=try html5_webstorage_local_clickcount
12 10/8/2014
What’s New in HTML5 ó Form Enhancements ó Support for new input types vary by browser ó Unsupported types are treated as normal input fields ó ó Allows selection of color using a “Color Picker” ó ó Renders a date/calendar control ó Validates date
What’s New in HTML5 ó Form Enhancements ó ó Textbox contents automatically validated for proper format. ó Mobile devices alter keyboard ó ó Textbox contents automatically validate for proper format. ó Mobile devices alter keyboard ó ó Desktop browsers render as “spinners” ó Mobile devices alter keyboards ó Input validated before submit
13 10/8/2014
What’s New in HTML5 ó Form Enhancements ó Required Fields ó ó Placeholder Text ó Displayed inside the input field when empty. ó Especially useful on mobile devices to save screen real estate. ó Data Lists ó New
What’s New in HTML5 ó HTML5 Form Example
14 10/8/2014
What’s New in HTML5 ó Other New Features ó Geolocation ó AppCaching (Offline web applications) ó Web Workers ó SVG
15 10/8/2014
What’s Removed in HTML5? ó Frames ó While they have been widely discouraged in modern web design, HTML5 has actually dropped support for frames/framesets ó
What’s Removed in HTML5 ó
16 10/8/2014
What is CSS? ó CSS stands for Cascading Style Sheets. Styles are rules applied to HTML
ó Standard maintained by World Wide Web Consortium (W3C)
ó CSS eases coding and maintenance by removing the formatting from the HTML code
17 10/8/2014
CSS Selectors ó Used to identify HTML elements to apply styles to.
ó By HTML tag name ó By HTML tag id ó By class name input { }
ó Style rules go inside braces
Tag name selector ó Applies to any HTML tag of given type, for example: input {
}
ó Applies to all:
18 10/8/2014
Tag id selector ó Applies to any HTML tag with given id, for example:
#main {
}
ó Applies to:
Class selector ó Applies to any HTML tag with given class, for example:
.error-message {
}
ó Applies to: