This document provides a summary of HTML5 features including:
1. New HTML5 elements make pages more semantic and reduce the need for plugins. Support for HTML5 is increasing across browsers.
2. HTML5 introduces new form input types like email, url, number, and date which provide better user experiences for entering that data.
3. HTML5 features like video, canvas, geolocation, and forms make content richer and pages more interactive without plugins. Tags are presented to structure page content in an outline format.
1 of 32
Downloaded 47 times
More Related Content
Take the HTML5 Tour!
1. Take the HTML5 Tour! November 15, 2011 Vincci Kwong Franklin D. Schurz Library Indiana University South Bend Indiana Library Federation Annual Conference
5. The Outline Algorithm Think of it as a table of contents Section and heading content is used to define the outline Body is established as the outline root Items are added to the outline as sectioning content is found Initial heading content is used to name sections Sectioning content contained within sections is nested in the outline
6. Current Page Structure Main Navigation Main Content Right Column Area Left Navigation CLAS Banner
7. Outline Page Structure College of Liberal Arts and Sciences Main page navigation Left navigation Discover our world CLAS News Build skills that prepare you for your career and life Right column area Student profiles Faculty profiles Donation main navigation Discover Our World Right Column Area footer Left Nav. College of Liberal Arts and Sciences
8. Structuring Page Content Structural Tags: nav aside footer section main navigation <nav> Discover Our World <section> Right Column Area <aside> Footer <footer> Left Nav. <nav> College of Liberal Arts and Sciences <section>
9. Structuring Interior Content Structural Tags: nav header footer section article main navigation <nav> Student Profiles <section> Footer <footer> Left Nav. <nav> Build Skills <article> Donation <article> CLAS News <section> College of Liberal Arts and Sciences <header> Discover Our World <section> Faculty Profiles <section>
10. Put Them All Together <body> <heading> <h1>College of Liberal Arts and Sciences</h1> </heading> <section> <h1>Discover our world</h1> <p>Links to departments</p> </section> <section> <h1>CLAS news</h1> <p>New stories</p> </section> <article> <h1>Build skills that prepare you for your career and life</h1> <p>Every undergraduate student......</p> </article> <aside> <h1>Right content area</h1> <section> <h1>Student Profiles</h1> </section> <section> <h1>Faculty Profiles</h1> </section> <article> <h1>Donation</h1> </article> </aside> </body>
11. Check with Document Outlines Google Chrome plug-in HTML5 Outliner http://gsnedders.html5.org/outliner
12. Getting Started <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> <html lang="en"> <meta charset="UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
13. Forms in HTML5 - New input types - Data placeholder - Date picker - Required fields
15. Number HTML 4 Number of User(s): <input name="nouser" size="5"> HTML5 Number of User(s): <input type="number" name="nouser" size="5" min="1" value="1" max="10">
16. Data PlaceHolder HTML 4 <input type='text' name= name' id=name onBlur="if(this.value=='') this.value='Type in your first and last name';" onClick="if(this.value=='Type in your first and last name') this.value='';" value="Type in your first and last name" /> HTML5 <INPUT type="text" NAME="Name" SIZE="30" placeholder="Type in your first and last name" >
18. Required Fields HTML 4 <FORM METHOD="POST" ACTION= conferencerm.php"name="conferenceroom" onSubmit="return (checkform())"> function checkform(){ if (document.conferenceroom.Name.value == ""){ alert("Name is required."); return false; } if (document.conferenceroom.Phone.value == ""){ alert("Phone is required."); return false; } } HTML5 Name: <INPUT type="text" NAME="Name" SIZE="30" placeholder="Type in your first and last name" required > Opera Chrome
19. Figure HTML5 <figure> <img src=/slideshow/take-the-html5-tour/10202336/"http:/library.iusb.edu/erc/Brandon.jpg" alt="Brandon" width="250" height="228"> <figcaption> Brandon Bauschke, Assistand Head of ERC </figcaption> </figure>
20. HTML5 Video eliminate 3rd party plug-in dependencies eliminate complicated deployment current specification does not declare a standard video codec H.264 (.mp4): Microsoft, Apple, Google Ogg Theora (.ogv): Firefox, Opera, Google VP8 (.webm): Google
21. Encoding Video Firefox plug-in ( http://firefogg.org ) - ogv and webm HandBrake ( http://handbrake.fr/ ) - mp4
23. Canvas <canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;"> Your browser does not support the canvas element. </canvas> <script type="text/javascript"> var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); var grd=cxt.createLinearGradient(0,0,175,50); grd.addColorStop(0,"#FF0000"); grd.addColorStop(1,"#00FF00"); cxt.fillStyle=grd; cxt.fillRect(0,0,175,50); </script> - draw graphics on a web page