SlideShare a Scribd company logo
Wilfred Nas
Front end developer

anwb, ing, agis, vst-pn, essent, Min. VWS..

wnas.nl
@wnas
HTML5
Praktisch vandaag.
Html5 intro
What is it all about?
Html5 intro
Eerst een korte geschiedenisles...
HTML tags


1991
HTML 2.0


1995
HTML 3.2


januari 1997
HTML 4.0


december 1997
XHTML 1.0


januari 2000
Mime types anyone?
xhtml-1.0 == html-4.0
maar dan met een xml-syntax
XHTML 1.1


march 2001
XHTML 2.0


....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en">
<head>

 <title></title>

 <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8"/>
</head>
<body>

</body>
</html>
Html5 intro
hetzelfde als HTML 4
Maar met meer:
bling
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
1.0 Strict//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en">
<head>

 <title></title>

 <meta http-equiv="Content-Type"
content="text/html;charset=UTF-8"/>
</head>
<body>

</body>
</html>
<!DOCTYPE HTML>
<html lang="en">
<head>

 <meta charset="UTF-8">

 <title>HTML 5</title>
</head>
<body>

 <p>foo</p>
</body>
</html>
<!DOCTYPE HTML>
<html lang="en">
<head>

 <meta charset="UTF-8">

 <title>HTML 5</title>
</head>
<body>

 <p>foo</p>
</body>
</html>
Structuur
Layout elementen
Oud
div
span
p
(body)
<div id=header>

 <div id=nav>

 
 <ul>

 
 
 <li><a href=foo.html>foo</a></li>

 
 
 ...

 
 </ul>

 </div>

 <div class=headers>

 
 <h1>header</h1>

 
 <p>tagline</p>

 </div>
</div>
<header>

 <nav>

 
 <ul>

 
 
 <li><a href=foo.html>foo</a></li>

 
 
 ...

 
 </ul>

 </nav>

 <hgroup>

 
 <h1>header</h1>

 
 <h2>tagline</h2>

 </hgroup>
</header>
New
article      meter
aside        nav
audio        output
canvas       progress
details      section
figcaption   summary
figure       time
footer       video
header
hgroup
mark
En...
waarom zou ik?
Semantiek
Hoe duidelijker, hoe beter je te begrijpen bent.
<div>
Betekent niets.
<header>
beter
“seo”
<header>

 <hgroup>

 
 <h1>header</h1>

 
 <h2>tagline</h2>

 </hgroup>
</header>
<section>

 <article>

 
 <hgroup>

 
 
 <h1>header</h1>

 
 
 <h2><time>2011-06-08</time></h2>

 
 </hgroup>

 
 <p>fooooo</p>

 
 <section>

 
 
 <h1>header</h1>

 
 
 <p>baaaaaar</p>

 
 
 <footer>copy</footer>

 
 </section>

 
 <aside>

 
 
 <time>22.00</time>

 
 </aside>

 </article>
</section>
<article>
“Like an article of clothing, not a newspaper article.” (@brucel)
<article>
Iets wat op zich zelf staat.
<article>
ook makkelijk voor cms makers.
<article>
ook makkelijk voor cms makers.
Maar wat doen we met
oudere browsers? ( kuch IE )
<!--[if lt IE 9]>

 <script

 
 src="http://html5shim.googlecode.com/
svn/trunk/html5.js"></script>
<![endif]-->
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section
{ display:block; }
“wel of geen aanhalingstekens?”
Pragmatisch



Gebruik wat mensen al doen.
class=foo

class=foo bar
class=”foo bar”
UPPERCASE vs lowercase
<INPUT type=”TEXT” Class=‘foo bar’ />
use “quotes” and lowercase.
Form elementen
Dingen die je al lang wilde...
<input>
<input
  type=”text”>
<input

 type=”text”

 class=”search placeholder:uw_zoekterm” >
Html5 intro
<input

 type=”search”

 placeholder=”uw zoekopdracht”>
Html5 intro
// build an input to test for html5 attr.
var i = document.createElement('input');
// see if placeholder is supported
if ( !('placeholder' in i) ) {

 //provide placeholder support
}
search
tel        time
url        datetime-
email      local
datetime   number
date       range
month      color
week
autocomplete      height and
novalidate        width
autofocus         list
form              min
form overrides    max

 formaction,     step

 formenctype,    multiple

 formmethod,     pattern

                 (regexp)
formnovalidate,   placeholder

 formtarget      required
<input

 type=”email”>
<input

 type=”email”

 required>

(alle browsers)
<input

 type=”email”

 required>

(indien niet ondersteund)
<input

 type=”email”

 required>

(alle browsers, met javascript)
<input
  type=”email”>
<input
 type=”url”>
<input

 type=”date”

 value=”2011-06-07”>
Html5 intro
Html5 intro
Html5 intro
<input

 pattern=”[1-9][0-9]{3}s?[a-zA-Z]{2}”

 required>

(http://html5pattern.com/)
<input type=email required>
(stolen slides following)
Html5 intro
<input

 type=email

 title=”So you tried to skip me?”

 required>
Html5 intro
<input

 type="text"

 pattern="d{2}-d{5}"

 x-moz-errormessage="PLEASE, just do it
right!">
Html5 intro
elm.setCustomValidity("No, that's wrong!");
Html5 intro
input::-webkit-validation-bubble-message {
    color: #f00;
    background: #000;
    border: 10px solid #f00;
    -webkit-box-shadow: 0 0 0 0;
}
input::-webkit-validation-bubble-arrow {
    background: #ff3456;
    border-color: orange;
    -webkit-box-shadow: 0 0 0 0;
}
Html5 intro
(End of stolen slides. Thanks to @robertnyman)
http://wnas.nl/html5-safe-usage-2
<video>
made easy...
Html5 intro
<object

 width="357"

 height="294">

 
 <param name="movie"

 
 
 value="http://www.youtube.com/p/69D055611E14B822?
hl=nl_NL&amp;fs=1">

 
 <param name="allowFullScreen" value="true"><param
name="allowscriptaccess" value="always">

 
 <embed src="http://www.youtube.com/p/69D055611E14B822?
hl=nl_NL&amp;fs=1" type="application/x-shockwave-flash"
width="357" height="294" allowscriptaccess="always"
allowfullscreen="true">
</object>
Ipad, Iphone
look ma, no flash!
<video

 width="320"

 height="240"

 controls>
  <source

 
 src="movie.mp4"

 
 type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</video>
<video

 width="320"

 height="240"

 controls>
  <source

 
 src="movie.mp4"

 
 type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
  <source

 
 src="movie.webm"

 
 type='video/webm; codecs="vp8, vorbis"'>
  <source

 
 src="movie.ogv"

 
 type='video/ogg; codecs="theora, vorbis"'>
</video>
http://diveintohtml5.info/video.html
Meer
Cookies
Local storage
session storage
<html manifest=”cache.manifest”>
CACHE MANIFEST

style.css
script.js
logo.png
@Fontface
Typografie op het web.
@font-face {
    font-family: 'stoppoliceRegular';
    src: url('fonts/stop_police-webfont.eot');
    src: url('fonts/stop_police-webfont.eot?#iefix')
format('embedded-opentype'),
         url('fonts/stop_police-webfont.woff') format('woff'),
         url('fonts/stop_police-webfont.ttf')
format('truetype'),
         url('fonts/stop_police-webfont.svg#stoppoliceRegular')
format('svg');
    font-weight: normal;
    font-style: normal;

}
Media queries
CSS3
Media queries
CSS3
Geolocation
http://isgeolocationpartofhtml5.com/
Html5 intro
Maar wel leuk.
navigator.geolocation.getCurrentPosition();
Canvas
geen plaatjes
Nadelen.
<div
  class="demo"
  id="canvaspie"
  width="600"
  height="200"></div>
Html5 intro
svg
Html5 intro
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480" height="480" width="640">
    <!-- 
  -->
    <!-- Created with SVG::Graph
  -->
    <!-- Sean Russell
  -->
    <!-- Based on SVG::TT::Graph for Perl by Leo Lapworth & Stephan Morgan
  -->
    <!-- //////////////////////////////////////////////////////////////////
  -->
  <defs>
    <filter id="dropshadow" height="1.2" width="1.2">
       <feGaussianBlur result="blur" stdDeviation="4"/>
    </filter>
  </defs>
    <!--SVG Background
  -->
  <rect x="0" class="svgBackground" y="0" height="480" style="fill:#ffffff;" width="640"/>
  <text x="320" class="mainTitle" y="16" style="text-anchor: middle; fill: #000000; font-size: 16px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Question 7
</text>
  <g transform="translate(543.0 46)">
    <rect x="0" class="key1" y="0" height="12" style="fill: #ff0000; fill-opacity: 0.7; stroke: none; stroke-width: 1px;" width="12"/>
    <text x="17" class="keyText" y="12" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Internet [3]</text>
    <rect x="0" class="key2" y="17" height="12" style="fill: #0000ff; fill-opacity: 0.7; stroke: none; stroke-width: 1px;" width="12"/>
    <text x="17" class="keyText" y="29" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">TV [3]</text>
    <rect x="0" class="key3" y="34" height="12" style="fill-opacity: 0.7; fill: #00ff00; stroke: none; stroke-width: 1px;" width="12"/>
    <text x="17" class="keyText" y="46" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Newspaper [0]</text>
    <rect x="0" class="key4" y="51" height="12" style="fill-opacity: 0.7; fill: #ffcc00; stroke: none; stroke-width: 1px;" width="12"/>
    <text x="17" class="keyText" y="63" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Magazine [6]</text>
    <rect x="0" class="key5" y="68" height="12" style="fill-opacity: 0.7; fill: #00ccff; stroke: none; stroke-width: 1px;" width="12"/>
    <text x="17" class="keyText" y="80" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Radio
 [1]</text>
  </g>
  <g transform="translate( 112 48 )">
    <g>
       <path transform="translate( 10 10 )" d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/>
       <path transform="translate( 10 10 )" d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/>
       <path transform="translate( 10 10 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/>
       <path transform="translate( 0.649837573145852 13.5460488704254 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" filter="url(#dropshadow)" style="fill:
#ccc; stroke: none;"/>
       <path transform="translate( 10 10 )" d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/>
    </g>
    <g>
       <path d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" style="fill: #fff; stroke: none;"/>
       <path d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #fff; stroke: none;"/>
       <path d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #fff; stroke: none;"/>
       <path transform="translate( -9.35016242685415 3.54604887042536 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" style="fill: #fff; stroke: none;"/>
       <path d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" style="fill: #fff; stroke: none;"/>
    </g>
    <g>
       <path class="fill1" d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" style="fill: #ff0000; fill-opacity: 0.7; stroke: none; stroke-width: 1px;"/>
       <text x="345.097951584965" class="dataPointLabel" y="52.1840197544965" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Internet 23%</text>
       <text x="345.097951584965" class="dataPointLabel" y="52.1840197544965" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Internet 23%</text>
       <path class="fill2" d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #0000ff; fill-opacity: 0.7; stroke: none; stroke-width: 1px;"/>
       <text x="378.269152172934" class="dataPointLabel" y="325.373434946715" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">TV 23%</text>
       <text x="378.269152172934" class="dataPointLabel" y="325.373434946715" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">TV 23%</text>
       <path class="fill3" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill-opacity: 0.7; fill: #00ff00; stroke: none; stroke-width: 1px;"/>
       <path transform="translate( -9.35016242685415 3.54604887042536 )" class="fill4" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" style="fill-opacity: 0.7;
fill: #ffcc00; stroke: none; stroke-width: 1px;"/>
       <text x="4.1339672159223" class="dataPointLabel" y="284.626562931752" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-
anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Magazine 46%</text>
       <text x="4.1339672159223" class="dataPointLabel" y="284.626562931752" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-
anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Magazine 46%</text>
       <path class="fill5" d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" style="fill-opacity: 0.7; fill: #00ccff; stroke: none; stroke-width: 1px;"/>
       <text x="157.841999660332" class="dataPointLabel" y="6.02957288409419" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Radio
 8%</text>
       <text x="157.841999660332" class="dataPointLabel" y="6.02957288409419" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000;
text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Radio
 8%</text>
    </g>
  </g>
</svg>
<rect x="0" class="key2" y="17" height="12"
style="fill: #0000ff; fill-opacity: 0.7;
stroke: none; stroke-width: 1px;"
width="12"/>
    <text x="17" class="keyText" y="29"
style="fill: #000000; text-anchor:start;
font-size: 10px; font-family:
&quot;Arial&quot;, sans-serif; font-weight:
normal;">TV [3]</text>
    <rect x="0" class="key3" y="34"
height="12" style="fill-opacity: 0.7; fill:
#00ff00; stroke: none; stroke-width: 1px;"
width="12"/>
    <text x="17" class="keyText" y="46"
http://www.drawastickman.com/
http://html5demos.com/
Html5 intro
Html5 intro
microformats
Vragen

More Related Content

PDF
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
PDF
モダンなCSS設計パターンを考える
PDF
モダンなCSS設計パターンを考える
PDF
Beyond CSS Architecture
PPTX
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
PPTX
Presentation1
PDF
CSSプリプロセッサの取扱説明書
PDF
Rapid HTML Prototyping with Bootstrap - Chris Griffith
HTML5 and CSS3 – exploring mobile possibilities - Frontend Conference Zürich
モダンなCSS設計パターンを考える
モダンなCSS設計パターンを考える
Beyond CSS Architecture
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
Presentation1
CSSプリプロセッサの取扱説明書
Rapid HTML Prototyping with Bootstrap - Chris Griffith

What's hot (20)

TXT
Private slideshow
PDF
Você precisa aprender Web
PDF
Try Web Components
PDF
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
PDF
jQuery UI and Plugins
PDF
High-Quality JavaScript
PDF
Web UI performance tuning
PPTX
фабрика Blockly
PDF
Smashing the stats for fun (and profit)
PDF
6주 javaScript 시작하며
PDF
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
PDF
High Performance Webdesign
PDF
CSS3 ...in 3D!
PDF
The Thinking behind BEM
PDF
How to Think Inside the Box: Programming Fixed Layout for E-Books
PDF
Prototyping w/HTML5 and CSS3
PPTX
ZeroNights 2018 | I <"3 XSS
PDF
Presentation html5 css3 by thibaut
PPT
WordPress and Ajax
PDF
HTML5: friend or foe (to Flash)?
Private slideshow
Você precisa aprender Web
Try Web Components
FrontInBahia 2014: 10 dicas de desempenho para apps mobile híbridas
jQuery UI and Plugins
High-Quality JavaScript
Web UI performance tuning
фабрика Blockly
Smashing the stats for fun (and profit)
6주 javaScript 시작하며
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
High Performance Webdesign
CSS3 ...in 3D!
The Thinking behind BEM
How to Think Inside the Box: Programming Fixed Layout for E-Books
Prototyping w/HTML5 and CSS3
ZeroNights 2018 | I <"3 XSS
Presentation html5 css3 by thibaut
WordPress and Ajax
HTML5: friend or foe (to Flash)?
Ad

Viewers also liked (7)

PDF
What has responsive web design done for us, so far.
KEY
Html5 nl
ZIP
front end workshop v3
KEY
Fronteers iprofs
PPT
Javascript is evil - fronteers 2013 jam sessions
KEY
Bestpractices nl
PDF
CSS naming | ceci n'est pas un pipe
What has responsive web design done for us, so far.
Html5 nl
front end workshop v3
Fronteers iprofs
Javascript is evil - fronteers 2013 jam sessions
Bestpractices nl
CSS naming | ceci n'est pas un pipe
Ad

Similar to Html5 intro (20)

PPTX
PDF
PDF
Introduccion a HTML5
KEY
网站无障碍阅读知识
KEY
网站无障碍阅读知识
PDF
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
PDF
Implementing Awesome: An HTML5/CSS3 Workshop
KEY
The Devil and HTML5
DOC
shoubox script
KEY
Slow kinda sucks
KEY
HTML5 for Mobile
PDF
HTML5, the new buzzword
TXT
Blog skins396734
PDF
HTML 5 - Overview
PDF
Introduction to web development
KEY
CSS3 Takes on the World
TXT
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
TXT
Yeşilyurt antika kol saati 0531 9810190 eski kurmalı saat
TXT
Fetih mah. antika kol saati 0531 9810190 eski kurmalı saat
TXT
Fatih,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat
Introduccion a HTML5
网站无障碍阅读知识
网站无障碍阅读知识
HTML5 and CSS3: Exploring Mobile Possibilities - London Ajax Mobile Event
Implementing Awesome: An HTML5/CSS3 Workshop
The Devil and HTML5
shoubox script
Slow kinda sucks
HTML5 for Mobile
HTML5, the new buzzword
Blog skins396734
HTML 5 - Overview
Introduction to web development
CSS3 Takes on the World
Ataköy,Bakırköy antika kol saati 0531 9810190 eski kurmalı
Yeşilyurt antika kol saati 0531 9810190 eski kurmalı saat
Fetih mah. antika kol saati 0531 9810190 eski kurmalı saat
Fatih,Bağcılar antika kol saati 0531 9810190 eski kurmalı saat

Recently uploaded (20)

PDF
The Power of Pausing Before You React by Meenakshi Khakat
PPTX
Understanding the Self power point presentation
PDF
Red Light Wali Muskurahat – A Heart-touching Hindi Story
PPT
proper hygiene for teenagers for secondary students .ppt
PPTX
Learn how to prevent Workplace Incidents?
PDF
The Zeigarnik Effect by Meenakshi Khakat.pdf
PPTX
Learn about numerology and do tarot reading
PPTX
show1- motivational ispiring positive thinking
PPT
cypt-cht-healthy-relationships-part1-presentation-v1.1en.ppt
PPTX
Pradeep Kumar Roll no.30 Paper I.pptx....
PPTX
Self -Management and Self Awareness.pptx
PPTX
How to Deal with Imposter Syndrome for Personality Development?
PDF
Top 10 Visionary Entrepreneurs to Watch in 2025
PPTX
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
PPTX
diasspresentationndkcnskndncelklkfndc.pptx
PPTX
cấu trúc sử dụng mẫu Cause - Effects.pptx
PPTX
Chapter-7-The-Spiritual-Self-.pptx-First
PDF
My 'novel' Account of Human Possibility pdf.pdf
PDF
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
PPTX
Travel mania in india needs to change the world
The Power of Pausing Before You React by Meenakshi Khakat
Understanding the Self power point presentation
Red Light Wali Muskurahat – A Heart-touching Hindi Story
proper hygiene for teenagers for secondary students .ppt
Learn how to prevent Workplace Incidents?
The Zeigarnik Effect by Meenakshi Khakat.pdf
Learn about numerology and do tarot reading
show1- motivational ispiring positive thinking
cypt-cht-healthy-relationships-part1-presentation-v1.1en.ppt
Pradeep Kumar Roll no.30 Paper I.pptx....
Self -Management and Self Awareness.pptx
How to Deal with Imposter Syndrome for Personality Development?
Top 10 Visionary Entrepreneurs to Watch in 2025
SELF ASSESSMENT -SNAPSHOT.pptx an index of yourself by Dr NIKITA SHARMA
diasspresentationndkcnskndncelklkfndc.pptx
cấu trúc sử dụng mẫu Cause - Effects.pptx
Chapter-7-The-Spiritual-Self-.pptx-First
My 'novel' Account of Human Possibility pdf.pdf
The Spotlight Effect No One Is Thinking About You as Much as You Think - by M...
Travel mania in india needs to change the world

Html5 intro

  • 1. Wilfred Nas Front end developer anwb, ing, agis, vst-pn, essent, Min. VWS.. wnas.nl @wnas
  • 4. What is it all about?
  • 6. Eerst een korte geschiedenisles...
  • 14. maar dan met een xml-syntax
  • 17. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/ xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> </head> <body> </body> </html>
  • 21. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/ xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> </head> <body> </body> </html>
  • 22. <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="UTF-8"> <title>HTML 5</title> </head> <body> <p>foo</p> </body> </html>
  • 23. <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="UTF-8"> <title>HTML 5</title> </head> <body> <p>foo</p> </body> </html>
  • 26. <div id=header> <div id=nav> <ul> <li><a href=foo.html>foo</a></li> ... </ul> </div> <div class=headers> <h1>header</h1> <p>tagline</p> </div> </div>
  • 27. <header> <nav> <ul> <li><a href=foo.html>foo</a></li> ... </ul> </nav> <hgroup> <h1>header</h1> <h2>tagline</h2> </hgroup> </header>
  • 28. New article meter aside nav audio output canvas progress details section figcaption summary figure time footer video header hgroup mark
  • 30. Semantiek Hoe duidelijker, hoe beter je te begrijpen bent.
  • 34. <header> <hgroup> <h1>header</h1> <h2>tagline</h2> </hgroup> </header> <section> <article> <hgroup> <h1>header</h1> <h2><time>2011-06-08</time></h2> </hgroup> <p>fooooo</p> <section> <h1>header</h1> <p>baaaaaar</p> <footer>copy</footer> </section> <aside> <time>22.00</time> </aside> </article> </section>
  • 35. <article> “Like an article of clothing, not a newspaper article.” (@brucel)
  • 36. <article> Iets wat op zich zelf staat.
  • 39. Maar wat doen we met oudere browsers? ( kuch IE )
  • 40. <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/ svn/trunk/html5.js"></script> <![endif]-->
  • 42. “wel of geen aanhalingstekens?”
  • 47. use “quotes” and lowercase.
  • 48. Form elementen Dingen die je al lang wilde...
  • 51. <input type=”text” class=”search placeholder:uw_zoekterm” >
  • 55. // build an input to test for html5 attr. var i = document.createElement('input'); // see if placeholder is supported if ( !('placeholder' in i) ) { //provide placeholder support }
  • 56. search tel time url datetime- email local datetime number date range month color week
  • 57. autocomplete height and novalidate width autofocus list form min form overrides max formaction, step formenctype, multiple formmethod, pattern (regexp) formnovalidate, placeholder formtarget required
  • 61. <input type=”email” required> (alle browsers, met javascript)
  • 71. <input type=email title=”So you tried to skip me?” required>
  • 73. <input type="text" pattern="d{2}-d{5}" x-moz-errormessage="PLEASE, just do it right!">
  • 77. input::-webkit-validation-bubble-message { color: #f00; background: #000; border: 10px solid #f00; -webkit-box-shadow: 0 0 0 0; } input::-webkit-validation-bubble-arrow { background: #ff3456; border-color: orange; -webkit-box-shadow: 0 0 0 0; }
  • 79. (End of stolen slides. Thanks to @robertnyman)
  • 83. <object width="357" height="294"> <param name="movie" value="http://www.youtube.com/p/69D055611E14B822? hl=nl_NL&amp;fs=1"> <param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"> <embed src="http://www.youtube.com/p/69D055611E14B822? hl=nl_NL&amp;fs=1" type="application/x-shockwave-flash" width="357" height="294" allowscriptaccess="always" allowfullscreen="true"> </object>
  • 85. look ma, no flash!
  • 86. <video width="320" height="240" controls> <source src="movie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> </video>
  • 87. <video width="320" height="240" controls> <source src="movie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <source src="movie.webm" type='video/webm; codecs="vp8, vorbis"'> <source src="movie.ogv" type='video/ogg; codecs="theora, vorbis"'> </video>
  • 89. Meer
  • 95. @font-face { font-family: 'stoppoliceRegular'; src: url('fonts/stop_police-webfont.eot'); src: url('fonts/stop_police-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/stop_police-webfont.woff') format('woff'), url('fonts/stop_police-webfont.ttf') format('truetype'), url('fonts/stop_police-webfont.svg#stoppoliceRegular') format('svg'); font-weight: normal; font-style: normal; }
  • 103. Canvas
  • 106. <div class="demo" id="canvaspie" width="600" height="200"></div>
  • 108. svg
  • 110. <svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 480" height="480" width="640"> <!-- --> <!-- Created with SVG::Graph --> <!-- Sean Russell --> <!-- Based on SVG::TT::Graph for Perl by Leo Lapworth & Stephan Morgan --> <!-- ////////////////////////////////////////////////////////////////// --> <defs> <filter id="dropshadow" height="1.2" width="1.2"> <feGaussianBlur result="blur" stdDeviation="4"/> </filter> </defs> <!--SVG Background --> <rect x="0" class="svgBackground" y="0" height="480" style="fill:#ffffff;" width="640"/> <text x="320" class="mainTitle" y="16" style="text-anchor: middle; fill: #000000; font-size: 16px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Question 7 </text> <g transform="translate(543.0 46)"> <rect x="0" class="key1" y="0" height="12" style="fill: #ff0000; fill-opacity: 0.7; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="12" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Internet [3]</text> <rect x="0" class="key2" y="17" height="12" style="fill: #0000ff; fill-opacity: 0.7; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="29" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">TV [3]</text> <rect x="0" class="key3" y="34" height="12" style="fill-opacity: 0.7; fill: #00ff00; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="46" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Newspaper [0]</text> <rect x="0" class="key4" y="51" height="12" style="fill-opacity: 0.7; fill: #ffcc00; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="63" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Magazine [6]</text> <rect x="0" class="key5" y="68" height="12" style="fill-opacity: 0.7; fill: #00ccff; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="80" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Radio [1]</text> </g> <g transform="translate( 112 48 )"> <g> <path transform="translate( 10 10 )" d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/> <path transform="translate( 10 10 )" d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/> <path transform="translate( 10 10 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/> <path transform="translate( 0.649837573145852 13.5460488704254 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/> <path transform="translate( 10 10 )" d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" filter="url(#dropshadow)" style="fill: #ccc; stroke: none;"/> </g> <g> <path d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" style="fill: #fff; stroke: none;"/> <path d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #fff; stroke: none;"/> <path d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #fff; stroke: none;"/> <path transform="translate( -9.35016242685415 3.54604887042536 )" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" style="fill: #fff; stroke: none;"/> <path d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" style="fill: #fff; stroke: none;"/> </g> <g> <path class="fill1" d="M207.5,207.5 L207.5,0.0 A207.5,207.5 0, 0,1, 413.487091375346 182.48863884702 Z" style="fill: #ff0000; fill-opacity: 0.7; stroke: none; stroke-width: 1px;"/> <text x="345.097951584965" class="dataPointLabel" y="52.1840197544965" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Internet 23%</text> <text x="345.097951584965" class="dataPointLabel" y="52.1840197544965" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Internet 23%</text> <path class="fill2" d="M207.5,207.5 L413.487091375346,182.48863884702 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill: #0000ff; fill-opacity: 0.7; stroke: none; stroke-width: 1px;"/> <text x="378.269152172934" class="dataPointLabel" y="325.373434946715" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">TV 23%</text> <text x="378.269152172934" class="dataPointLabel" y="325.373434946715" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">TV 23%</text> <path class="fill3" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 257.158000339668 408.970427115906 Z" style="fill-opacity: 0.7; fill: #00ff00; stroke: none; stroke-width: 1px;"/> <path transform="translate( -9.35016242685415 3.54604887042536 )" class="fill4" d="M207.5,207.5 L257.158000339668,408.970427115906 A207.5,207.5 0, 0,1, 111.069941800918 23.7678746769589 Z" style="fill-opacity: 0.7; fill: #ffcc00; stroke: none; stroke-width: 1px;"/> <text x="4.1339672159223" class="dataPointLabel" y="284.626562931752" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text- anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Magazine 46%</text> <text x="4.1339672159223" class="dataPointLabel" y="284.626562931752" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text- anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Magazine 46%</text> <path class="fill5" d="M207.5,207.5 L111.069941800918,23.7678746769589 A207.5,207.5 0, 0,1, 207.5 0.0 Z" style="fill-opacity: 0.7; fill: #00ccff; stroke: none; stroke-width: 1px;"/> <text x="157.841999660332" class="dataPointLabel" y="6.02957288409419" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;stroke: #fff; stroke-width: 2;">Radio 8%</text> <text x="157.841999660332" class="dataPointLabel" y="6.02957288409419" style="fill: #000000; text-anchor:middle; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;; fill: #000000; text-anchor:middle; font-size: 12px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">Radio 8%</text> </g> </g> </svg>
  • 111. <rect x="0" class="key2" y="17" height="12" style="fill: #0000ff; fill-opacity: 0.7; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="29" style="fill: #000000; text-anchor:start; font-size: 10px; font-family: &quot;Arial&quot;, sans-serif; font-weight: normal;">TV [3]</text> <rect x="0" class="key3" y="34" height="12" style="fill-opacity: 0.7; fill: #00ff00; stroke: none; stroke-width: 1px;" width="12"/> <text x="17" class="keyText" y="46"
  • 117. Vragen

Editor's Notes