SlideShare une entreprise Scribd logo
1  sur  70
HARDCORE HTML
A SHORT HISTORY OF   Hardcore
                     HTML
             HTML
Hypertext
 Invented in the 1940’s      A SHORT
 Metadata for text           HISTORY
                              OF HTML
Brought to the Computer
 HyperCard for Mac in 1987
The Web
 Tim Berners-Lee at CERN
 Bases HTML on SGML
Hypermedia
 Marc Andreessen creates
  Mosaic, includes img
¶ This is my paragraph. There are many like it, but this one is
mine.

¶ My paragraph is my best friend. It is my life. I must master it
as I must master my life.

¶ My paragraph, without me, is useless. Without my paragraph,
I am useless. I must word my paragraph true. I must write
straighter than my editor who is trying to kill me. I must write
before he corrects me. I will...
Hypertext
 Invented in the 1940’s      A SHORT
 Metadata for text           HISTORY
                              OF HTML
Brought to the Computer
 HyperCard for Mac in 1987
The Web
 Tim Berners-Lee at CERN
 Bases HTML on SGML
Hypermedia
 Marc Andreessen creates
  Mosaic, includes img
Hypertext
 Invented in the 1940’s      A SHORT
 Metadata for text           HISTORY
                              OF HTML
Brought to the Computer
 HyperCard for Mac in 1987
The Web
 Tim Berners-Lee at CERN
 Bases HTML on SGML
Hypermedia
 Marc Andreessen creates
  Mosaic, includes img
Becoming a Standard
 HTML2 was introduced in          A SHORT
  Geneva, May 1994                 HISTORY
                                   OF HTML
 HTML2 spec, July 1994
 IETF setup, Sept 1994
 W3C launched in Dec 1994
HTML3 was a hot mess
 Introduces tags like FONT FACE
  and BGCOLOR
 HTML no longer semantic
WAR!
 IE fucks everyone, Aug 1995     A SHORT
    Embeds ActiveX               HISTORY
                                  OF HTML
 NS invents craps, Sep 1995
    Adds frames
Browser designers start
 driving HTML standards
HTML4 was published
 But no one fully supported it
Years wasted on XML
 XHTML invented in 1999
                                       A SHORT
   No one used it                     HISTORY
 XHTML2 created in 2002               OF HTML
   No one implemented it
HTML5
 TBL basically forced W3C to
  draft HTML5 in 2006
 W3C is utterly neutered
   Largely a secretary for what the
    browser implementers want
   Not necessarily a bad thing
   Keeps implementers in sync
Changes in
        the Spec
HTML5   from
        HTML4
NEW SEMANTIC ELEMENTS

   <article>                D e fi n es a n a r t i c l e
   <aside>                  Co n te nt a s i de fro m pa g e c o n te n t
   <bdi>                    Is o la tes di re c t i o nal tex t
   < c o mmand >            Co m man d but to n t h a t a us e r c a n i nvo ke
   < d et a i l s >         D e fi n es a ddi t i o nal, to g g l eable det a i l s
   < s u m mar y >          A v i s ible h e a di n g fo r < det a i l s > e l e m ent
   < f i gu re >            Se l f - c o nt aine d c o n te n t ( l i ke di a g ra ms)
   < f i gc a pti on >      A c a pt i o n fo r a < fi g ure > e l e men t
   < fo o te r>             A fo ote r fo r a do c um e n t o r s e c t i on
   <he a d e r >            D e fi n es a h e a de r fo r a do c um e n t o r s e cti o n
   < h gro u p >            G ro ups a s et o f < h 1 > to < h 6 > e l e m ent s
   < m a rk >               D e fi n es m a rke d/ highlighte d tex t
   < m ete r >              A s c a l a r m e a s urement w i t h i n a ra n g e
   < n av >                 D e fi n es n av i gat ion l i n k s
   < p ro gre s s >         Th e pro g re s s o f a t a s k
   < ru by >                Ruby a n n ot a t io n ( E a s t As i a n t y po g ra phy )
   <rt>                     An ex pl a n a t ion/pro nun ciat ion o f c h a ra cte r s
   <rp>                     Wh a t to s h ow w h e n ruby a n n ot a t ions a re un s uppo r te d
   < s e c t i on>          A s e c t i o n i n a do c um e n t
   <time>                   A da te / t i m e
   < wb r >                 A p o s s i b l e l i n e - bre ak
OTHER NEW ELEMENTS

   < a u d i o>           D e fi n es s o un d c o n te n t
   <video>                A v i de o o r m ov i e
   <so u rc e >           D e fi n es m ul t i ple m e di a re s o urc e s
   <embed>                A c o n t a i n er fo r a n ex te rn a l a pp ( pl ug i n)
   < t r a c k>           D e fi n es t ra c k s fo r < v i de o > a n d < a udi o >
   < c a nvas >           Us e d to draw g ra ph i c s o n t h e fl y, v i a s c ri pt i ng
   < d a t al is t >      Spe c i fi es a l i s t o f o pt i o n s fo r i n put s
   < keyge n >            A key - pa i r g e n e ra tor fi e l d ( fo r fo rm s )
   < o u t put>           Co n t a ins re s ul t o f a c a l c ul a t ion
DEAD ELEMENTS (FROM HTML 4)

 <acronym>        <font>
 <applet>         <frame>
 <basefont>       <frameset>
 <big>            <noframes>
 <center>         <strike>
 <dir>            <tt>
THE BASIC BASICS   Basically
<!DOCTYPE html>
<html lang="en-US">
                             THE BASIC
 <head>                      BASICS
  <meta charset="utf-8">     Simple Page
                             L ayo ut


  <title>Duck Page</title>
 </head>
 <body>
  Text about Ducks
 </body>
</html>
USE MODERNIZR

 http://modernizr.com/downloads/modernizr-2.5.3.js
USE MODERNIZR

<html>
<head>
 <meta charset="utf-8">
 <script
  src="http://modernizr.com/downloads/modernizr-2.5.3.js">
 </script>
</head>
USE MODERNIZR

<html>
<head>
 <meta charset="utf-8">
 <script
  language="Javascript"
  src="http://modernizr.com/downloads/modernizr-2.5.3.js">
 </script>
</head>
<div>
 I'm a DIV
</div>       THE BASIC
             BASICS
             The simplest
             tags
<div>
 I'm a DIV
</div>                  THE BASIC
                        BASICS
<div>                   The simplest
                        tags
 I'm a DIV (new line)
</div>
<span>
 I'm a SPAN
</span>                   THE BASIC
                          BASICS
<span>                    The simplest
                          tags
 I'm a SPAN (same line)
</span>
<p
  id=main
  class=important            THE BASIC
                             BASICS
  title="Cool Information”   The simplest

  style="color:red;"         tags


  dir=ltr
  lang=en
  data-attributes="yes"
>
  I like attributes
</p>
Articles
LAYOUTS   and
          Sections
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article>
 <header>
  <hgroup>
    <h1>My Favorite Things</h1>
    <h2>Books</h2>
  </hgroup>
 </header>
 <p>
  This is my main article.
  <aside>
    By the way... this is an aside.
  </aside>
 </p>
 <footer>
  <p>Published <time datetime="2012-06-13">yesterday</time></p>
 </footer>
</article>
<article itemscope itemtype="http://schema.org/BlogPosting">
  <header>
   <hgroup>
    <h1 itemprop=headline>My Favorite Things</h1>
    <h2>Books</h2>
   </hgroup>
  </header>
  <p itemprop=articleBody>
   This is my main article.
   <aside>
    By the way... this is an aside.
   </aside>
  </p>
  <footer>
   <p>Published <time itemprop=datePublished datetime="2012-06-
13">yesterday</time></p>
  </footer>
 </article>
<article itemscope itemtype="http://schema.org/BlogPosting">
  <header>
   <hgroup>
    <h1 itemprop=headline>My Favorite Things</h1>
    <h2>Books</h2>
   </hgroup>
  </header>
  <p itemprop=articleBody>
   This is my main article.
   <aside>
    By the way... this is an aside.
   </aside>
  </p>
  <footer>
   <p>Published <time itemprop=datePublished datetime="2012-06-
13">yesterday</time></p>
  </footer>
 </article>
<section>
 <header>
  <h1>HTML</h1>
 </header>
 <p>
  HTML is so much fun.
 </p>
 <footer>
  Learn <a href="http://developers.whatwg.org/">more</a> about HTML.
 </footer>
</section>
<section>
 <header>
  <h1>HTML</h1>
 </header>
 <p>
  HTML is so much fun.
 </p>
 <footer>
  Learn <a href="http://developers.whatwg.org/">more</a> about HTML.
 </footer>
</section>
<section>
 <header>
  <h1>JavaScript</h1>
 </header>
 <p>
  JavaScript is a good language.
 </p>
 <footer>
  Learn <a href=”http://w3schools.com/js/">JS</a>.
 </footer>
</section>
<article>
 <header>
  <h1>Computer Languages</h1>
 </header>
 <section>
  <h1>HTML</h1>
  <p>HTML is so much fun.</p>
 </section>
 <section>
  <h1>JavaScript</h1>
  <p>JavaScript is a good language.</p>
 </section>
</article>
Elements
GROUPING   that group
           things
<p>
Thisisareallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyre
allyreally<wbr>reallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreallyreall
yreallyreallyreallyreallylongword
 </p>
<blockquote lang="en-GB">
 Look around and you will find, no-one's really <mark>colour</mark> blind.
</blockquote>
<figure>
 <p>This is my paragraph. There are many like it but this one is mine....</p>
 <figcaption>Paragraph’s Creed</figcaption>
</figure>
<details>
 <summary>Automated Status: Operational</summary>
 <p>Velocity: 12m/s</p>
 <p>Direction: North</p>
</details>
<dl>
 <dt lang="en-US"> <dfn>color</dfn></dt>
 <dt lang="en-GB"> <dfn>colour</dfn></dt>
 <dd>A visual sensation of different light wavelengths</dd>
 <dd>Pretty eye inputs</dd>
</dl>
<pre><code data-language=ruby>
 x="hello world!”
 puts x
</code></pre>

<p>
 The variable <var>x</var> was set a string. Press <kbd>enter</kbd> to
 make it run. It will output <samp>hello world!</samp>
</p>
NAVIGATION
<nav>
 <ol>
  <li><a href="#">Link 1</a></li>
  <li><a href="#">Link 2</a></li>
  <li><a href="#">Link 3</a></li>
 </ol>
</nav>
<menu type=toolbar label="File">
 <button type=button onclick="file_new()">New...</button>
 <button type=button onclick="file_open()">Open...</button>
 <button type=button onclick="file_save()">Save</button>
 <command type=command label="Save" onclick="file_save()">Save</command>
</menu>
TEXT-LEVEL SEMANTICS
<!-- pre HTML5 -->
<p>
 <cite title="Eats, Shoots, and Leaves: The Zero Tolerance Approach to
Punctuation">Lynne Truss</cite> said <q>Freeze or get stabbed, mate. It's your
choice.</q>
</p>

<!-- HTML5 -->
<p>
 <cite>Eats, Shoots, and Leaves: The Zero Tolerance Approach to Punctuation</cite>
by <b>Lynne Truss</b> says <q>Freeze or get stabbed, mate. It's your choice.</q>
</p>
The cite element represents the title of a work … A person’s
name is not the title of a work … and the element must
therefore not be used to mark up people’s names.




http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-
semantics.html#the-cite-element
The cite element represents the title of a work … A person’s
name is not the title of a work … and the element must
therefore not be used to mark up people’s names.




   WRONG. BAD. STUPID!

http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-
semantics.html#the-cite-element
<p>
 The <dfn id=gdo><abbr title="Garage Door Opener">GDO</abbr></dfn> is a
device that allows off-world teams to open the iris.
</p>
<p>
 Don't forget the <a href="#gdo"><abbr title="Garage Door
Opener">GDO</abbr></a>.
</p>
<p>
 There are <data value="8">bridges</data> of them.
 There will be <data value="9">nine</data> on <time datetime"2012-11-12">
Nov, 12</time>.
</p>
<p>
 My favorite color is
 <del cite="http://en.wikipedia.org/wiki/Blue">blue</del>
 <ins cite="http://en.wikipedia.org/wiki/Red">red</ins>!
</p>
<p>
 My favorite color is
 <del cite="http://en.wikipedia.org/wiki/Blue" datetime="2012-06-0123:59:59Z"
>blue</del>
 <ins cite="http://en.wikipedia.org/wiki/Red">red</ins>!
</p>
Useful bits
            and things
UTILITIES   Eric
            doesn’t
            like
<meter min=0 max=20 value=12 optimum=15 title="centimeters">
 12cm
</meter>
<progress min=0 max=100 value=56 title="download">
 56%
</progress>
<div draggable="true">
 Drag Me!
</div>

<div dropzone="move">
 Into me
</div>
<p style="display:inline" dir=ltr>
 <style scoped=true>
   p { color: red; }
 </style>
 I’m red!
</p>

<p>
 I’m not red.
</p>
FORMS
<form action="/" method=post>

 <fieldset class="fields">
  <legend>Info</legend>
  <ol>
     <li data-required="true">
        <label for=ssn>SSN<abbr title=”required”>*</abbr></label>
        <input id=ssn name=ssn placeholder="000-00-0000">
     </li>
  </ol>
 </fieldset>

 <fieldset class=”buttons">
  <legend>Buttons</legend>
  <ol>
     <li><input type=submit value="Cancel" disabled></li>
     <li><input type=submit value="Submit &#x25b6;"></li>
  </ol>
 </fieldset>

</form>
<select name="browsers">
   <optgroup label="Good Browsers">
       <option value="Chrome">Chrome</option>
       <option value="Opera">Opera</option>
       <option value="Safari">Safari</option>
   </optgroup>
   <optgroup label="Not Good Browsers">
       <option value="Internet Explorer">Internet Explorer</option>
       <option value="Firefox">Firefox</option>
   </optgroup>
</select>
<input list="browsers">
<datalist id="browsers">
   <option value="Internet Explorer">
   <option value="Firefox">
   <option value="Chrome">
   <option value="Opera">
   <option value="Safari">
</datalist>
<input list="browsers">
<datalist id="browsers">
   <option value="Internet Explorer">
   <option value="Firefox">
   <option value="Chrome">
   <option value="Opera">
   <option value="Safari">
</datalist>

<script
 src="https://raw.github.com/miketaylr/jquery.datalist.js/master/jquery.datalist.js">
</script>
<input type=text name="name" autofocus="true" tabindex="1">

<input type=range name="range" main="0" max="25”>

<input type=date name="date" placeholder="2012-12-21”>

<input type=search name="search”>

<input type=email name="required" required="true" pattern=".*@.*"
placeholder="email@address.com">

<input type=text name="read" readonly="true" value="You Can Only Read Me">

<input type=tel name="tel" placeholder="(503) 555-1212" required="true"
pattern=”^(.*d.*){10}$" >

<input type=color name="color">

<input x-webkit-speech>

<keygen name="key”>
<li>
 <input name=arg1 type=number step=any value="0"> +
 <input name=arg2 type=number step=any value="0"> =
 <output data-function="add" for="arg1 arg2" >0</output>
</li>
<table class="table table-striped">
 <caption>
  <strong>Actors and their Characters</strong>
  <details>
   This is a very short list, and is inspired by nothing more than who happened to be in my head at that
moment.
  </details>
 </caption>
 <colgroup><col class="actors"><col class="characters"></colgroup>
 <thead>
  <tr>
   <th>Name</th>
   <th>Character</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>Lou Ferrigno</td>
   <td>The Hulk</td>
  </tr>
</tbody>
<tfoot>
  <tr>
   <td>3 Actors</td>
   <td>4 Characters</td>
  </tr>
 </tfoot>
</table>
<table class="table table-striped">
 <caption>
  <strong>Actors and their Characters</strong>
  <details>
   This is a very short list, and is inspired by nothing more than who happened to be in my head at that
moment.
  </details>
 </caption>
 <colgroup><col class="actors"><col class="characters"></colgroup>
 <thead>
  <tr>
   <th>Name</th>
   <th>Character</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>Lou Ferrigno</td>
   <td>The Hulk</td>
  </tr>
</tbody>
<tfoot>
  <tr>
   <td>3 Actors</td>
   <td>4 Characters</td>
  </tr>
 </tfoot>
</table>
MEDIA
<video>
 <source src="http://html5demos.com/assets/dizzy.mp4">
</video>

<audio controls>
 <source src="demo-audio.ogg”>
 <source src="demo-audio.mp3”>
</audio>

Contenu connexe

Tendances

Newspapers Association of India February 2015
Newspapers Association of India February 2015Newspapers Association of India February 2015
Newspapers Association of India February 2015snehalcnp
 
Secret of gmail
Secret of gmailSecret of gmail
Secret of gmailchitsumyo
 
計算機概論20161205
計算機概論20161205計算機概論20161205
計算機概論20161205志宇 許
 
1-04: HTML Elements
1-04: HTML Elements1-04: HTML Elements
1-04: HTML Elementsapnwebdev
 
Ubuntu Firefox オススメ・アドオン
Ubuntu Firefox オススメ・アドオンUbuntu Firefox オススメ・アドオン
Ubuntu Firefox オススメ・アドオンubon
 
HTML5 Semantics
HTML5 SemanticsHTML5 Semantics
HTML5 SemanticsShay Howe
 
計算機概論20161212
計算機概論20161212計算機概論20161212
計算機概論20161212志宇 許
 
Try Web Components
Try Web ComponentsTry Web Components
Try Web Components拓樹 谷
 
9 feb 15 feb 2015
9 feb 15 feb 20159 feb 15 feb 2015
9 feb 15 feb 2015snehalcnp
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事Sofish Lin
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS TroubleshootingDenise Jacobs
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentEstelle Weyl
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4Amanda Case
 

Tendances (14)

Newspapers Association of India February 2015
Newspapers Association of India February 2015Newspapers Association of India February 2015
Newspapers Association of India February 2015
 
Secret of gmail
Secret of gmailSecret of gmail
Secret of gmail
 
計算機概論20161205
計算機概論20161205計算機概論20161205
計算機概論20161205
 
1-04: HTML Elements
1-04: HTML Elements1-04: HTML Elements
1-04: HTML Elements
 
Ubuntu Firefox オススメ・アドオン
Ubuntu Firefox オススメ・アドオンUbuntu Firefox オススメ・アドオン
Ubuntu Firefox オススメ・アドオン
 
HTML5 Semantics
HTML5 SemanticsHTML5 Semantics
HTML5 Semantics
 
計算機概論20161212
計算機概論20161212計算機概論20161212
計算機概論20161212
 
Try Web Components
Try Web ComponentsTry Web Components
Try Web Components
 
9 feb 15 feb 2015
9 feb 15 feb 20159 feb 15 feb 2015
9 feb 15 feb 2015
 
Budget 2015 - 2016
Budget 2015 - 2016 Budget 2015 - 2016
Budget 2015 - 2016
 
关于 Html5 那点事
关于 Html5 那点事关于 Html5 那点事
关于 Html5 那点事
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS Troubleshooting
 
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone developmentiPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
iPhone Web Applications: HTML5, CSS3 & dev tips for iPhone development
 
LIS3353 SP12 Week 4
LIS3353 SP12 Week 4LIS3353 SP12 Week 4
LIS3353 SP12 Week 4
 

Similaire à HTML History: A Short Guide to HTML Development

TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單偉格 高
 
Bangla HTML Tutorial
Bangla HTML TutorialBangla HTML Tutorial
Bangla HTML TutorialDhiman Biswas
 
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and GulpOptimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and GulpMatthew Davis
 
Basic HTML CSS Slides
Basic HTML CSS Slides Basic HTML CSS Slides
Basic HTML CSS Slides Allyson Wehrs
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and CustomizationAniket Pant
 
5 ways to embrace HTML5 today
5 ways to embrace HTML5 today5 ways to embrace HTML5 today
5 ways to embrace HTML5 todayDaniel Ryan
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System Channy Yun
 
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...Mario Heiderich
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSSdanpaquette
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developersHernan Mammana
 
HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?Carlos Ramon
 

Similaire à HTML History: A Short Guide to HTML Development (20)

Using HTML5 sensibly
Using HTML5 sensiblyUsing HTML5 sensibly
Using HTML5 sensibly
 
TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單TOSSUG HTML5 讀書會 新標籤與表單
TOSSUG HTML5 讀書會 新標籤與表單
 
Bangla HTML Tutorial
Bangla HTML TutorialBangla HTML Tutorial
Bangla HTML Tutorial
 
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and GulpOptimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
Optimising Your Front End Workflow With Symfony, Twig, Bower and Gulp
 
Basic HTML CSS Slides
Basic HTML CSS Slides Basic HTML CSS Slides
Basic HTML CSS Slides
 
HTML5 for all
HTML5 for allHTML5 for all
HTML5 for all
 
Theme Development and Customization
Theme Development and CustomizationTheme Development and Customization
Theme Development and Customization
 
Session no 1 html
Session no 1 htmlSession no 1 html
Session no 1 html
 
5 ways to embrace HTML5 today
5 ways to embrace HTML5 today5 ways to embrace HTML5 today
5 ways to embrace HTML5 today
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
 
Session no 1
Session no 1Session no 1
Session no 1
 
Zen
ZenZen
Zen
 
Zen based theming
Zen based themingZen based theming
Zen based theming
 
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...
Copy & Pest - A case-study on the clipboard, blind trust and invisible cross-...
 
Introduction to HTML and CSS
Introduction to HTML and CSSIntroduction to HTML and CSS
Introduction to HTML and CSS
 
Bangla html
Bangla htmlBangla html
Bangla html
 
Frontend for developers
Frontend for developersFrontend for developers
Frontend for developers
 
HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?HTML5 - What h#@$ is it?
HTML5 - What h#@$ is it?
 
Artdm171 Week4 Tags
Artdm171 Week4 TagsArtdm171 Week4 Tags
Artdm171 Week4 Tags
 
Juggling
JugglingJuggling
Juggling
 

Plus de PDX Web & Design

Plus de PDX Web & Design (6)

HTTP is Hard
HTTP is HardHTTP is Hard
HTTP is Hard
 
Riak Search 2: Yokozuna
Riak Search 2: YokozunaRiak Search 2: Yokozuna
Riak Search 2: Yokozuna
 
Distributed Data Structures
Distributed Data StructuresDistributed Data Structures
Distributed Data Structures
 
DDS-20m
DDS-20mDDS-20m
DDS-20m
 
Yokozuna
YokozunaYokozuna
Yokozuna
 
Hardcore CSS
Hardcore CSSHardcore CSS
Hardcore CSS
 

Dernier

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 

Dernier (20)

Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 

HTML History: A Short Guide to HTML Development

  • 2. A SHORT HISTORY OF Hardcore HTML HTML
  • 3. Hypertext Invented in the 1940’s A SHORT Metadata for text HISTORY OF HTML Brought to the Computer HyperCard for Mac in 1987 The Web Tim Berners-Lee at CERN Bases HTML on SGML Hypermedia Marc Andreessen creates Mosaic, includes img
  • 4.
  • 5. ¶ This is my paragraph. There are many like it, but this one is mine. ¶ My paragraph is my best friend. It is my life. I must master it as I must master my life. ¶ My paragraph, without me, is useless. Without my paragraph, I am useless. I must word my paragraph true. I must write straighter than my editor who is trying to kill me. I must write before he corrects me. I will...
  • 6. Hypertext Invented in the 1940’s A SHORT Metadata for text HISTORY OF HTML Brought to the Computer HyperCard for Mac in 1987 The Web Tim Berners-Lee at CERN Bases HTML on SGML Hypermedia Marc Andreessen creates Mosaic, includes img
  • 7. Hypertext Invented in the 1940’s A SHORT Metadata for text HISTORY OF HTML Brought to the Computer HyperCard for Mac in 1987 The Web Tim Berners-Lee at CERN Bases HTML on SGML Hypermedia Marc Andreessen creates Mosaic, includes img
  • 8. Becoming a Standard HTML2 was introduced in A SHORT Geneva, May 1994 HISTORY OF HTML HTML2 spec, July 1994 IETF setup, Sept 1994 W3C launched in Dec 1994 HTML3 was a hot mess Introduces tags like FONT FACE and BGCOLOR HTML no longer semantic
  • 9. WAR! IE fucks everyone, Aug 1995 A SHORT  Embeds ActiveX HISTORY OF HTML NS invents craps, Sep 1995  Adds frames Browser designers start driving HTML standards HTML4 was published But no one fully supported it
  • 10. Years wasted on XML XHTML invented in 1999 A SHORT  No one used it HISTORY XHTML2 created in 2002 OF HTML  No one implemented it HTML5 TBL basically forced W3C to draft HTML5 in 2006 W3C is utterly neutered  Largely a secretary for what the browser implementers want  Not necessarily a bad thing  Keeps implementers in sync
  • 11. Changes in the Spec HTML5 from HTML4
  • 12. NEW SEMANTIC ELEMENTS  <article>  D e fi n es a n a r t i c l e  <aside>  Co n te nt a s i de fro m pa g e c o n te n t  <bdi>  Is o la tes di re c t i o nal tex t  < c o mmand >  Co m man d but to n t h a t a us e r c a n i nvo ke  < d et a i l s >  D e fi n es a ddi t i o nal, to g g l eable det a i l s  < s u m mar y >  A v i s ible h e a di n g fo r < det a i l s > e l e m ent  < f i gu re >  Se l f - c o nt aine d c o n te n t ( l i ke di a g ra ms)  < f i gc a pti on >  A c a pt i o n fo r a < fi g ure > e l e men t  < fo o te r>  A fo ote r fo r a do c um e n t o r s e c t i on  <he a d e r >  D e fi n es a h e a de r fo r a do c um e n t o r s e cti o n  < h gro u p >  G ro ups a s et o f < h 1 > to < h 6 > e l e m ent s  < m a rk >  D e fi n es m a rke d/ highlighte d tex t  < m ete r >  A s c a l a r m e a s urement w i t h i n a ra n g e  < n av >  D e fi n es n av i gat ion l i n k s  < p ro gre s s >  Th e pro g re s s o f a t a s k  < ru by >  Ruby a n n ot a t io n ( E a s t As i a n t y po g ra phy )  <rt>  An ex pl a n a t ion/pro nun ciat ion o f c h a ra cte r s  <rp>  Wh a t to s h ow w h e n ruby a n n ot a t ions a re un s uppo r te d  < s e c t i on>  A s e c t i o n i n a do c um e n t  <time>  A da te / t i m e  < wb r >  A p o s s i b l e l i n e - bre ak
  • 13. OTHER NEW ELEMENTS  < a u d i o>  D e fi n es s o un d c o n te n t  <video>  A v i de o o r m ov i e  <so u rc e >  D e fi n es m ul t i ple m e di a re s o urc e s  <embed>  A c o n t a i n er fo r a n ex te rn a l a pp ( pl ug i n)  < t r a c k>  D e fi n es t ra c k s fo r < v i de o > a n d < a udi o >  < c a nvas >  Us e d to draw g ra ph i c s o n t h e fl y, v i a s c ri pt i ng  < d a t al is t >  Spe c i fi es a l i s t o f o pt i o n s fo r i n put s  < keyge n >  A key - pa i r g e n e ra tor fi e l d ( fo r fo rm s )  < o u t put>  Co n t a ins re s ul t o f a c a l c ul a t ion
  • 14. DEAD ELEMENTS (FROM HTML 4)  <acronym>  <font>  <applet>  <frame>  <basefont>  <frameset>  <big>  <noframes>  <center>  <strike>  <dir>  <tt>
  • 15. THE BASIC BASICS Basically
  • 16. <!DOCTYPE html> <html lang="en-US"> THE BASIC <head> BASICS <meta charset="utf-8"> Simple Page L ayo ut <title>Duck Page</title> </head> <body> Text about Ducks </body> </html>
  • 18. USE MODERNIZR <html> <head> <meta charset="utf-8"> <script src="http://modernizr.com/downloads/modernizr-2.5.3.js"> </script> </head>
  • 19. USE MODERNIZR <html> <head> <meta charset="utf-8"> <script language="Javascript" src="http://modernizr.com/downloads/modernizr-2.5.3.js"> </script> </head>
  • 20. <div> I'm a DIV </div> THE BASIC BASICS The simplest tags
  • 21. <div> I'm a DIV </div> THE BASIC BASICS <div> The simplest tags I'm a DIV (new line) </div>
  • 22. <span> I'm a SPAN </span> THE BASIC BASICS <span> The simplest tags I'm a SPAN (same line) </span>
  • 23. <p id=main class=important THE BASIC BASICS title="Cool Information” The simplest style="color:red;" tags dir=ltr lang=en data-attributes="yes" > I like attributes </p>
  • 24. Articles LAYOUTS and Sections
  • 25. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 26. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 27. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 28. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 29. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 30. <article> <header> <hgroup> <h1>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time datetime="2012-06-13">yesterday</time></p> </footer> </article>
  • 31. <article itemscope itemtype="http://schema.org/BlogPosting"> <header> <hgroup> <h1 itemprop=headline>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p itemprop=articleBody> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time itemprop=datePublished datetime="2012-06- 13">yesterday</time></p> </footer> </article>
  • 32. <article itemscope itemtype="http://schema.org/BlogPosting"> <header> <hgroup> <h1 itemprop=headline>My Favorite Things</h1> <h2>Books</h2> </hgroup> </header> <p itemprop=articleBody> This is my main article. <aside> By the way... this is an aside. </aside> </p> <footer> <p>Published <time itemprop=datePublished datetime="2012-06- 13">yesterday</time></p> </footer> </article>
  • 33. <section> <header> <h1>HTML</h1> </header> <p> HTML is so much fun. </p> <footer> Learn <a href="http://developers.whatwg.org/">more</a> about HTML. </footer> </section>
  • 34. <section> <header> <h1>HTML</h1> </header> <p> HTML is so much fun. </p> <footer> Learn <a href="http://developers.whatwg.org/">more</a> about HTML. </footer> </section> <section> <header> <h1>JavaScript</h1> </header> <p> JavaScript is a good language. </p> <footer> Learn <a href=”http://w3schools.com/js/">JS</a>. </footer> </section>
  • 35. <article> <header> <h1>Computer Languages</h1> </header> <section> <h1>HTML</h1> <p>HTML is so much fun.</p> </section> <section> <h1>JavaScript</h1> <p>JavaScript is a good language.</p> </section> </article>
  • 36. Elements GROUPING that group things
  • 38. <blockquote lang="en-GB"> Look around and you will find, no-one's really <mark>colour</mark> blind. </blockquote>
  • 39. <figure> <p>This is my paragraph. There are many like it but this one is mine....</p> <figcaption>Paragraph’s Creed</figcaption> </figure>
  • 40. <details> <summary>Automated Status: Operational</summary> <p>Velocity: 12m/s</p> <p>Direction: North</p> </details>
  • 41. <dl> <dt lang="en-US"> <dfn>color</dfn></dt> <dt lang="en-GB"> <dfn>colour</dfn></dt> <dd>A visual sensation of different light wavelengths</dd> <dd>Pretty eye inputs</dd> </dl>
  • 42. <pre><code data-language=ruby> x="hello world!” puts x </code></pre> <p> The variable <var>x</var> was set a string. Press <kbd>enter</kbd> to make it run. It will output <samp>hello world!</samp> </p>
  • 44. <nav> <ol> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> </ol> </nav>
  • 45. <menu type=toolbar label="File"> <button type=button onclick="file_new()">New...</button> <button type=button onclick="file_open()">Open...</button> <button type=button onclick="file_save()">Save</button> <command type=command label="Save" onclick="file_save()">Save</command> </menu>
  • 47. <!-- pre HTML5 --> <p> <cite title="Eats, Shoots, and Leaves: The Zero Tolerance Approach to Punctuation">Lynne Truss</cite> said <q>Freeze or get stabbed, mate. It's your choice.</q> </p> <!-- HTML5 --> <p> <cite>Eats, Shoots, and Leaves: The Zero Tolerance Approach to Punctuation</cite> by <b>Lynne Truss</b> says <q>Freeze or get stabbed, mate. It's your choice.</q> </p>
  • 48. The cite element represents the title of a work … A person’s name is not the title of a work … and the element must therefore not be used to mark up people’s names. http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level- semantics.html#the-cite-element
  • 49. The cite element represents the title of a work … A person’s name is not the title of a work … and the element must therefore not be used to mark up people’s names. WRONG. BAD. STUPID! http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level- semantics.html#the-cite-element
  • 50. <p> The <dfn id=gdo><abbr title="Garage Door Opener">GDO</abbr></dfn> is a device that allows off-world teams to open the iris. </p> <p> Don't forget the <a href="#gdo"><abbr title="Garage Door Opener">GDO</abbr></a>. </p>
  • 51. <p> There are <data value="8">bridges</data> of them. There will be <data value="9">nine</data> on <time datetime"2012-11-12"> Nov, 12</time>. </p>
  • 52. <p> My favorite color is <del cite="http://en.wikipedia.org/wiki/Blue">blue</del> <ins cite="http://en.wikipedia.org/wiki/Red">red</ins>! </p>
  • 53. <p> My favorite color is <del cite="http://en.wikipedia.org/wiki/Blue" datetime="2012-06-0123:59:59Z" >blue</del> <ins cite="http://en.wikipedia.org/wiki/Red">red</ins>! </p>
  • 54. Useful bits and things UTILITIES Eric doesn’t like
  • 55. <meter min=0 max=20 value=12 optimum=15 title="centimeters"> 12cm </meter>
  • 56. <progress min=0 max=100 value=56 title="download"> 56% </progress>
  • 57. <div draggable="true"> Drag Me! </div> <div dropzone="move"> Into me </div>
  • 58. <p style="display:inline" dir=ltr> <style scoped=true> p { color: red; } </style> I’m red! </p> <p> I’m not red. </p>
  • 59. FORMS
  • 60. <form action="/" method=post> <fieldset class="fields"> <legend>Info</legend> <ol> <li data-required="true"> <label for=ssn>SSN<abbr title=”required”>*</abbr></label> <input id=ssn name=ssn placeholder="000-00-0000"> </li> </ol> </fieldset> <fieldset class=”buttons"> <legend>Buttons</legend> <ol> <li><input type=submit value="Cancel" disabled></li> <li><input type=submit value="Submit &#x25b6;"></li> </ol> </fieldset> </form>
  • 61. <select name="browsers"> <optgroup label="Good Browsers"> <option value="Chrome">Chrome</option> <option value="Opera">Opera</option> <option value="Safari">Safari</option> </optgroup> <optgroup label="Not Good Browsers"> <option value="Internet Explorer">Internet Explorer</option> <option value="Firefox">Firefox</option> </optgroup> </select>
  • 62. <input list="browsers"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chrome"> <option value="Opera"> <option value="Safari"> </datalist>
  • 63. <input list="browsers"> <datalist id="browsers"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chrome"> <option value="Opera"> <option value="Safari"> </datalist> <script src="https://raw.github.com/miketaylr/jquery.datalist.js/master/jquery.datalist.js"> </script>
  • 64. <input type=text name="name" autofocus="true" tabindex="1"> <input type=range name="range" main="0" max="25”> <input type=date name="date" placeholder="2012-12-21”> <input type=search name="search”> <input type=email name="required" required="true" pattern=".*@.*" placeholder="email@address.com"> <input type=text name="read" readonly="true" value="You Can Only Read Me"> <input type=tel name="tel" placeholder="(503) 555-1212" required="true" pattern=”^(.*d.*){10}$" > <input type=color name="color"> <input x-webkit-speech> <keygen name="key”>
  • 65.
  • 66. <li> <input name=arg1 type=number step=any value="0"> + <input name=arg2 type=number step=any value="0"> = <output data-function="add" for="arg1 arg2" >0</output> </li>
  • 67. <table class="table table-striped"> <caption> <strong>Actors and their Characters</strong> <details> This is a very short list, and is inspired by nothing more than who happened to be in my head at that moment. </details> </caption> <colgroup><col class="actors"><col class="characters"></colgroup> <thead> <tr> <th>Name</th> <th>Character</th> </tr> </thead> <tbody> <tr> <td>Lou Ferrigno</td> <td>The Hulk</td> </tr> </tbody> <tfoot> <tr> <td>3 Actors</td> <td>4 Characters</td> </tr> </tfoot> </table>
  • 68. <table class="table table-striped"> <caption> <strong>Actors and their Characters</strong> <details> This is a very short list, and is inspired by nothing more than who happened to be in my head at that moment. </details> </caption> <colgroup><col class="actors"><col class="characters"></colgroup> <thead> <tr> <th>Name</th> <th>Character</th> </tr> </thead> <tbody> <tr> <td>Lou Ferrigno</td> <td>The Hulk</td> </tr> </tbody> <tfoot> <tr> <td>3 Actors</td> <td>4 Characters</td> </tr> </tfoot> </table>
  • 69. MEDIA
  • 70. <video> <source src="http://html5demos.com/assets/dizzy.mp4"> </video> <audio controls> <source src="demo-audio.ogg”> <source src="demo-audio.mp3”> </audio>

Notes de l'éditeur

  1. It’s generally considered to be invented in the 40’s, but the idea of marking up text is way older than that. Anyone know what this is?
  2. This mark is called a PILCROW.
  3. It is hypertext that denotes a paragraph.
  4. What this tells you is that the web existed for 5 years before any sort of standards body started taking over. This is part of the reason why it’s taken so many years to get all of these browser manufactures to agree on any sort of standards at all. Although the W3C started publishing standards, the manufactures all had their own ideas.
  5. Time Berners Lee
  6. Older versions of IE will not display elements they don’t recognize.
  7. So add this script to the top of all of your HTML files, and you can start using HTML5. It might not be styled at all, but at least it’ll display. You can always use CSS and javascript to get the behavior you want.
  8. No more using language Javascript. The language tag is deprecated, and javascript is the only supported spec language. So you can just write “script” and optionally “src”
  9. A section is a block of text. It’s much more structured than a div, but not as structured as an article.
  10. You can often have multiple sections in a single page, but won’t as often have more than one article.
  11. You can embed sections inside articles. Though you can also embed articles inside sections, it’s kind of a design smell. It’s allowed, but the general rule for articles is that they should could make sense as stand alone pages.
  12. Mark is for reference purposes
  13. definition list, definition term, definition description
  14. Along with article and section, one of the biggest layout changes has been more semantically meaningful navigation.Nav is like div. It has no style of it’s own, but it’s semantically meaningful, which is enough.
  15. Menu are different from nav. Where nav is meant to manage navigation between pages on a single site, menus are meant to group actions that can be taken on a page. Like saving a form.Where you can use buttons, there’s a new element called command. It’s just like a button, but somehow more semantic.But before you decide to run out and start using them, you should know that NO BROWSERS currently support this tag.Of course, this doesn’t mean you can’t use it, you’ll just have to do a bit of extra JavaScript and CSS work to make the elements function.In short:nav: the navigation for the site.menu: the menu for a web application
  16. Cite is a weird little tag. It’s been around since HTML2, originally for citing scientific works, specifically, the AUTHOR of the work.But it’s changed in the HTML5 spec to instead
  17. Their justification is that, because browsers italicize the cite tag, and you generally don’t italicize people’s names in citation, then cite should be used for the work rather than the person.To quote Jeremy Keith:The tail is wagging the dog here.The spec wants you to trade semantically meaningful markup for non meaningful one just because browsers have weird default output.
  18. These elements will not display. Again, just giving meaning so computers can understand your page. If you want SEO, if you want really detailed, maintainable and fancy CSS, use them. Give your text meaning.
  19. If you really want to be a good citizen, use the datetime attribute to track WHEN the text was deleted.
  20. If you really want to be a good citizen, use the datetime attribute to track WHEN the text was deleted.
  21. I don’t like this element. It adds no semantic meaning to the document, but instead, just says what a block can do… which isn’t any different to me than elements and attributes that dictate how a document is displayed (like the “font“ tag). I begrudgingly use it, because the related DOM actions are useful. But I dislike it on principle, and prefer to use javascript to inject these attributes when necessary and leave this crap out of the markup entirely.
  22. Scoped styles. I have mixed feelings on this one. On one hand, I like the idea of scoping extractable sections of the DOM to have their own visuals without polluting the whole namespace with special classes and ids. On the other hand, it promotes inlining styles, which I really don’t like. We’ll just have to see how it shakes out.That said, no browsers actually support this yet, except in a s uper secret development mode in Chrome. It was just introduced, so it may die in the boardroom. But I’m all for experimentation, so let me know if you like it.
  23. Not supported in all browsers. However, there’s a jquery plugin to make a work in them.
  24. Not supported in all browsers. However, there’s a jquery plugin to make a work in them.
  25. Generates a secure cryptography on the browser, and sends it as part of a form.
  26. Number input typ
  27. Audio or video: multiple codecs. The browser will play the one it recognizes