SlideShare une entreprise Scribd logo
1  sur  39
Télécharger pour lire hors ligne
Practical HTML5/CSS3 for Nonprofits (or "How to Party Like it's 2011 When it's Really Still 1999")  #11NTChtml5 Tim Arnold,  Beaconfire
Session Evaluation Each entry via text or web is a chance to win great NTEN prizes throughout the day!  TEXT Text 11NTChtml5 to 69866. ONLINE Use 11NTChtml5 at  http://nten.org/ntc/eval Session Evaluations  Powered By:
HTML Just the facts
HTML + CSS + JavaScript Things get fancy.
HTML5 Evolution
Other tired oldTOTALLY AWESOME catchphrases: AJAX      Web 2.0      SEO      B2B     DHTML *
*HTML5 no longer actually exists. Damn, that was fast. “…the term is now basically being used to mean anything Web-standards-related, so it's time to move on!” - Ian Hickson, Jan 19, 2011, WHATWG blog
“…because people seem to like easy-to-pronounce acronyms and cute logos, I proposed NEWT as a tongue-in-cheek way to highlight the jargon abuse I see happening.” - Bruce Lawson, Opera
“…because people seem to like easy-to-pronounce acronyms and cute logos, I proposed NEWT as a tongue-in-cheek way to highlight the jargon abuse I see happening.” - Bruce Lawson, Opera
HTML Tags <h1></h1> <h2></h2> <p></p> <a></a> <strong></strong> <em></em> <ul> 	<li></li> 	<li></li> </ul>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html> 	<head> 		<title>Most Sites Today</title> 		<script type="text/javascript" src=“scripts.js“></script>  		<link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> 		<div id=“container”> 			<div id=“header”> 				<ul id=“nav”> 					<li>home</li> 					<li>about us</li> 				</ul> 			</div> 			<div id=“content”> 				<div class=“post”> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</div> 				<div class=“post”> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</div> 			</div> 			<div id=“footer”> 				Copyright My Organization 			</div> 		</div> 	</body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html> 	<head> 		<title>Most Sites Today</title> 		<script type="text/javascript" src=“scripts.js“></script>  		<link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> <div id=“container”> <div id=“header”> <ul id=“nav”> 					<li>home</li> 					<li>about us</li> 				</ul> 			</div> <div id=“content”> <div class=“post”> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</div> <div class=“post”> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</div> 			</div> <div id=“footer”> 				Copyright My Organization 			</div> 		</div> 	</body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html> 	<head> 		<title>Most Sites Today</title> 		<script type="text/javascript" src=“scripts.js“></script>  		<link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> <section> <header> <nav><ul> 					<li>home</li> 					<li>about us</li> 				</nav>	</ul> 			</header> <section> <article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> <article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 			</section> <footer> 				Copyright My Organization 			</footer> 		</div> 	</body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html> 	<head> 		<title>Most Sites Today</title> 		<script type="text/javascript" src=“scripts.js“></script>  		<link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> <section> 			<header> 				<nav>	<ul> 					<li>home</li> 					<li>about us</li> 				</nav>	</ul> 			</header> <section> 				<article> <h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 				<article> <h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 			</section> 			<footer> 				Copyright My Organization 			</footer> 		</section> 	</body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html> 	<head> 		<title>Most Sites Today</title> 		<script type="text/javascript"src=“scripts.js“></script>  		<link type="text/css“href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> 		<section> 			<header> 				<nav>	<ul> 					<li>home</li> 					<li>about us</li> 				</nav>	</ul> 			</header> 			<section> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 			</section> 			<footer> 				Copyright My Organization 			</footer> 		</section> 	</body> </html>
<!DOCTYPE html>  <html> 	<head> 		<title>Most Sites Today</title> 		<script src=“scripts.js“></script>  		<link href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> 		<section> 			<header> 				<nav>	<ul> 					<li>home</li> 					<li>about us</li> 				</nav>	</ul> 			</header> 			<section> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 			</section> 			<footer> 				Copyright My Organization 			</footer> 		</section> 	</body> </html>
<!DOCTYPE html>  <html> 	<head> 		<title>Most Sites Today</title> 		<script src=“scripts.js“></script>  		<link href=“styles.css” media=“all" rel="stylesheet“/>  	</head> 	<body> 		<section> 			<header> 				<nav>	<ul> 					<li>home</li> 					<li>about us</li> 				</nav>	</ul> 			</header> 			<section> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 				<article> 					<h1>Very Intersting Title</h1> 					<p>Stuff</p> 				</article> 			</section> 			<footer> 				Copyright My Organization 			</footer> 		</section> 	</body> </html>
Other “New” HTML5 Tags You’re Welcome <aside> <figure> <mark> <time> <meter> value  min  low  high  max  optimum  <progress> <canvas> <video> <audio> <b> <i>
New Form Features <input type="number"> <input type="range"> <input type="search"> <input type="text" list="mydata”> <datalistid="mydata"> <option label="Mr" value="Mister"> <option label="Mrs" value="Mistress"> <option label="Ms" value="Miss"> </datalist>
New Form Features <input type=“color”>
New Form Features <input type=“date“> <input type=“time“>
New Form Features <input type="tel“> <input type="email“ placeholder=“Your Email Address”> <input type="url"> input[type=text]:focus:valid, input[type=email]:focus:valid, input[type=number]:focus:in-range { outline: 2px #0f0 solid; } input[type=text]:focus:invalid, input[type=email]:focus:invalid, input[type=number]:focus:out-of-range { outline: 2px #f00 solid; }
When Can You Start Using HTML5? Completion Date: 	July 2014
When Can You Start Using HTML5? Completion Date: 	July 2014 Last Call: 			May 22, 2011
When Can You Start Using HTML5? Whenever your target browsers support the bits you want to use.
Internet Explorer Supporting CSS3 & HTML5 Tim
How to make it all work Progressive (or regressive) enhancement JavaScript to “teach” the bad browsers <script>document.createElement("figure");</script> Test it out: http://playground.html5rocks.com Modernizr and a script loader (YepNope)
Modernizr and YepNope <html class=“no-js”>   <script src=“modernizr.js”/> http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
Modernizr and YepNope .borderradius .box {   	-moz-border-radius: 5px;   	-webkit-border-radius: 5px;   	border-radius: 5px;   }   .no-borderradius .box { 	border-radius: 5px;  	behavior: url(PIE.htc); }   
Modernizr and YepNope if(!Modernizr.input.placeholder) 	{   	 // custom placeholder code   }  
Modernizr and YepNope yepnope({  	test : Modernizr.geolocation,  	yep  : 'normal.js', 	nope : ['polyfill.js', 'wrapper.js']   }); 
Modernizr and YepNope yepnope({     test: Modernizr.inputtypes.email &&  Modernizr.input.required &&  Modernizr.input.placeholder &&  Modernizr.input.pattern,     nope: 'h5f.min.js'  });  https://github.com/ryanseddon/H5F/blob/master/readme.md
Modernizr and YepNope
Modernizr and YepNope http://modernizr.github.com/Modernizr/2.0-beta/ Bundled together Modernizr: 3.7kb gzipped YepNope: 1.6kb
Resources	 http://html5doctor.com http://html5reset.org http://playground.html5rocks.com http://modernizr.github.com/Modernizr/2.0-beta http://yepnopejs.com Articles	 ,[object Object]
http://dev.opera.com/articles/view/custom-html5-video-player-with-css3-and-jquery

Contenu connexe

Dernier

The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 

Dernier (20)

The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.How Tech Giants Cut Corners to Harvest Data for A.I.
How Tech Giants Cut Corners to Harvest Data for A.I.
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 

Practical HTML5/CSS3 for Nonprofits

  • 1. Practical HTML5/CSS3 for Nonprofits (or "How to Party Like it's 2011 When it's Really Still 1999") #11NTChtml5 Tim Arnold, Beaconfire
  • 2. Session Evaluation Each entry via text or web is a chance to win great NTEN prizes throughout the day! TEXT Text 11NTChtml5 to 69866. ONLINE Use 11NTChtml5 at http://nten.org/ntc/eval Session Evaluations Powered By:
  • 4. HTML + CSS + JavaScript Things get fancy.
  • 6. Other tired oldTOTALLY AWESOME catchphrases: AJAX Web 2.0 SEO B2B DHTML *
  • 7. *HTML5 no longer actually exists. Damn, that was fast. “…the term is now basically being used to mean anything Web-standards-related, so it's time to move on!” - Ian Hickson, Jan 19, 2011, WHATWG blog
  • 8. “…because people seem to like easy-to-pronounce acronyms and cute logos, I proposed NEWT as a tongue-in-cheek way to highlight the jargon abuse I see happening.” - Bruce Lawson, Opera
  • 9. “…because people seem to like easy-to-pronounce acronyms and cute logos, I proposed NEWT as a tongue-in-cheek way to highlight the jargon abuse I see happening.” - Bruce Lawson, Opera
  • 10. HTML Tags <h1></h1> <h2></h2> <p></p> <a></a> <strong></strong> <em></em> <ul> <li></li> <li></li> </ul>
  • 11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Most Sites Today</title> <script type="text/javascript" src=“scripts.js“></script> <link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <div id=“container”> <div id=“header”> <ul id=“nav”> <li>home</li> <li>about us</li> </ul> </div> <div id=“content”> <div class=“post”> <h1>Very Intersting Title</h1> <p>Stuff</p> </div> <div class=“post”> <h1>Very Intersting Title</h1> <p>Stuff</p> </div> </div> <div id=“footer”> Copyright My Organization </div> </div> </body> </html>
  • 12. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Most Sites Today</title> <script type="text/javascript" src=“scripts.js“></script> <link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <div id=“container”> <div id=“header”> <ul id=“nav”> <li>home</li> <li>about us</li> </ul> </div> <div id=“content”> <div class=“post”> <h1>Very Intersting Title</h1> <p>Stuff</p> </div> <div class=“post”> <h1>Very Intersting Title</h1> <p>Stuff</p> </div> </div> <div id=“footer”> Copyright My Organization </div> </div> </body> </html>
  • 13. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Most Sites Today</title> <script type="text/javascript" src=“scripts.js“></script> <link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <section> <header> <nav><ul> <li>home</li> <li>about us</li> </nav> </ul> </header> <section> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> </section> <footer> Copyright My Organization </footer> </div> </body> </html>
  • 14. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Most Sites Today</title> <script type="text/javascript" src=“scripts.js“></script> <link type="text/css“ href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <section> <header> <nav> <ul> <li>home</li> <li>about us</li> </nav> </ul> </header> <section> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> </section> <footer> Copyright My Organization </footer> </section> </body> </html>
  • 15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Most Sites Today</title> <script type="text/javascript"src=“scripts.js“></script> <link type="text/css“href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <section> <header> <nav> <ul> <li>home</li> <li>about us</li> </nav> </ul> </header> <section> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> </section> <footer> Copyright My Organization </footer> </section> </body> </html>
  • 16. <!DOCTYPE html> <html> <head> <title>Most Sites Today</title> <script src=“scripts.js“></script> <link href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <section> <header> <nav> <ul> <li>home</li> <li>about us</li> </nav> </ul> </header> <section> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> </section> <footer> Copyright My Organization </footer> </section> </body> </html>
  • 17. <!DOCTYPE html> <html> <head> <title>Most Sites Today</title> <script src=“scripts.js“></script> <link href=“styles.css” media=“all" rel="stylesheet“/> </head> <body> <section> <header> <nav> <ul> <li>home</li> <li>about us</li> </nav> </ul> </header> <section> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> <article> <h1>Very Intersting Title</h1> <p>Stuff</p> </article> </section> <footer> Copyright My Organization </footer> </section> </body> </html>
  • 18. Other “New” HTML5 Tags You’re Welcome <aside> <figure> <mark> <time> <meter> value min low high max optimum <progress> <canvas> <video> <audio> <b> <i>
  • 19. New Form Features <input type="number"> <input type="range"> <input type="search"> <input type="text" list="mydata”> <datalistid="mydata"> <option label="Mr" value="Mister"> <option label="Mrs" value="Mistress"> <option label="Ms" value="Miss"> </datalist>
  • 20. New Form Features <input type=“color”>
  • 21. New Form Features <input type=“date“> <input type=“time“>
  • 22. New Form Features <input type="tel“> <input type="email“ placeholder=“Your Email Address”> <input type="url"> input[type=text]:focus:valid, input[type=email]:focus:valid, input[type=number]:focus:in-range { outline: 2px #0f0 solid; } input[type=text]:focus:invalid, input[type=email]:focus:invalid, input[type=number]:focus:out-of-range { outline: 2px #f00 solid; }
  • 23. When Can You Start Using HTML5? Completion Date: July 2014
  • 24. When Can You Start Using HTML5? Completion Date: July 2014 Last Call: May 22, 2011
  • 25. When Can You Start Using HTML5? Whenever your target browsers support the bits you want to use.
  • 26. Internet Explorer Supporting CSS3 & HTML5 Tim
  • 27. How to make it all work Progressive (or regressive) enhancement JavaScript to “teach” the bad browsers <script>document.createElement("figure");</script> Test it out: http://playground.html5rocks.com Modernizr and a script loader (YepNope)
  • 28. Modernizr and YepNope <html class=“no-js”>   <script src=“modernizr.js”/> http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
  • 29. Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
  • 30. Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
  • 31. Modernizr and YepNope <html class="  js flexbox canvas canvastext webgl no-touch geolocation postmessage  no-websqldatabase indexeddb hashchange draganddrop rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow  textshadow opacity no-cssanimations csscolumns cssgradients  no-cssreflections csstransforms no-csstransforms3d csstransitions  fontface video audio localstorage no-sessionstorage webworkers  applicationcache svg inlinesvg smil svgclippaths”>   http://blogs.sitepoint.com/2011/03/08/regressive-enhancement-with-modernizr-and-yepnope
  • 32. Modernizr and YepNope .borderradius .box {   -moz-border-radius: 5px;   -webkit-border-radius: 5px;   border-radius: 5px;   }   .no-borderradius .box { border-radius: 5px;  behavior: url(PIE.htc); }   
  • 33. Modernizr and YepNope if(!Modernizr.input.placeholder)  {    // custom placeholder code   }  
  • 34. Modernizr and YepNope yepnope({  test : Modernizr.geolocation,  yep  : 'normal.js', nope : ['polyfill.js', 'wrapper.js']   }); 
  • 35. Modernizr and YepNope yepnope({     test: Modernizr.inputtypes.email &&  Modernizr.input.required &&  Modernizr.input.placeholder &&  Modernizr.input.pattern,     nope: 'h5f.min.js'  });  https://github.com/ryanseddon/H5F/blob/master/readme.md
  • 37. Modernizr and YepNope http://modernizr.github.com/Modernizr/2.0-beta/ Bundled together Modernizr: 3.7kb gzipped YepNope: 1.6kb
  • 38.
  • 41. Session Evaluation Each entry via text or web is a chance to win great NTEN prizes throughout the day! TEXT Text 11NTChtml5 to 69866. ONLINE Use 11NTChtml5 at http://nten.org/ntc/eval Session Evaluations Powered By:

Notes de l'éditeur

  1. Web Hypertext Application Technology Working Group
  2. If we need an over-all term to encompass DAP, CSS 3, HTML5, Geolocation, SVG, WebGL, then let’s call it the Open Web Stack
  3. If we need an over-all term to encompass DAP, CSS 3, HTML5, Geolocation, SVG, WebGL, then let’s call it the Open Web Stack
  4. Matt Cutts of Google says it’s OK
  5. Mark: marked but not emphasizedMeter: numeric value in a specified range
  6. Javascript is for presentational purposes only
  7. CSS3 Pie http://css3pie.com/