SlideShare une entreprise Scribd logo
1  sur  53
Télécharger pour lire hors ligne
the design
of HTML5
the design
of HTML5
the design
of HTML5
design
principles
We hold these Truths to be self-evident,
that all Men are created equal,
that they are endowed by their Creator with
certain unalienable Rights,
that among these are
Life, Liberty and the pursuit of Happiness.

—e Declaration Of Independence,
                     1776-07-04
From each according to his ability,
to each according to his need.



                                  —Karl Marx,
                                        1875
Do unto others as you would have them do unto you.




                       —Jesus of Nazareth,
                                  ~30AD
Four legs good, two legs bad.




                           —George Orwell,
                             Animal Farm
A robot may not injure a human being or, through
inaction, allow a human being to come to harm.

A robot must obey any orders given to it by human
beings, except where such orders would conflict with
the First Law.

A robot must protect its own existence as long as such
protection does not conflict with the First or Second
Law.
                               —Isaac Asimov,
                                     I, Robot
Principles such as simplicity and modularity
are the stuff of soware engineering;
decentralisation and tolerance
are the life and breath of Internet.


                       —Tim Berners-Lee,
                       Principles of Design
HTML 2.0    1995
HTML 3.2    1997
HTML 4.0    1997
HTML 4.01   1999
XHTML 1.0   2000
XHTML 1.1   2001
XHTML 2
Be conservative in what you send;
be liberal in what you accept.



                         —Jon Postel,
                e Robustness Principle
WHATWG   2004
W3C      2007

  HTML5
the design
of HTML5
is document describes the set of guiding principles
used by the HTML Working Group for the
development of HTML5. e principles offer
guidance for the design of HTML in the areas of
compatibility, utility and interoperability.


         —HTML Design Principles
   w3.org/TR/html-design-principles
avoid
needless
complexity
Simple solutions are preferred to complex ones,
when possible.
HTML 4.01
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">



XHTML 1.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">



HTML5                 <!DOCTYPE html>
HTML 4.01
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8">



XHTML 1.0
<?xml version="1.0" encoding="UTF-8"?>
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />


HTML5                    <meta charset="utf-8">
<link rel="stylesheet" type="text/css"
href="file.css">


<script type="text/javascript">
</script>


HTML5
support
existing
content
Existing content oen relies upon expected user agent
processing and behaviour to function as intended.
<img src="foo" alt="bar" />
<p class="foo">Hello world</p>

<img src="foo" alt="bar">
<p class="foo">Hello world

<IMG SRC="foo" ALT="bar">
<P CLASS="foo">Hello world</P>

<img src=foo alt=bar>
<p class=foo>Hello world</p>
Be conservative in what you send;
be liberal in what you accept.



                         —Jon Postel,
                e Robustness Principle
solve real
problems
Abstract architectures that don’t address an existing
need are less favoured than pragmatic solutions to
problems that web content faces today.
(X)HTML
<h2><a href="/path/to/resource">Headline text</a></h2>
<p><a href="/path/to/resource">Paragraph text.</a></p>



HTML5
<a href="/path/to/resource">
<h2>Headline text</h2>
<p>Paragraph text.</p>
</a>
pave the
cowpaths
section   header
article    footer
aside     details
nav        figure
<body>
<div id="header">...</div>
<div id="navigation">...</div>
<div id="main">...</div>
<div id="sidebar">...</div>
<div id="footer">...</div>
</body>
<body>
<header>...</header>
<nav>...</nav>
<div id="main">...</div>
<aside>...</aside>
<footer>...</footer>
</body>
section   header
article    footer
aside     details
nav        figure
<div class="item">
<h2>...</h2>
<div class="meta">...</div>
<div class="content">
...
</div>
<div class="links">...</div>
</div>
<section class="item">
<header><h1>...</h1></header>
<footer class="meta">...</footer>
<div class="content">
...
</div>
<nav class="links">...</nav>
</section>
<section class="item">
<header><h1>...</h1></header>
<footer class="meta">...</footer>
<div class="content">
...
</div>
<nav class="links">...</nav>
</section>
I would in fact prefer, instead of <H1>, <H2> etc
for headings to have a nestable <SECTION>..
</SECTION> element, and a generic <H>..</H>
which at any level within the sections would produce
the required level of heading.


                        —Tim Berners-Lee,
                                    1991
degrade
gracefully
HTML 5 document conformance requirements
should be designed so that Web content can
degrade gracefully in older or less capable user
agents, even when making use of new elements,
attributes, APIs and content models.
input type="number"
input type="search"
input type="range"
input type="email"
input type="date"
input type="url"
input type="number"
input type="search"
input type="search"
placeholder="e.g. salad or fish"
HTML5 Flash
video object
<video src="movie.mp4">

<!-- fallback content -->

</video>
<video src="movie.mp4">
<object data="movie.swf">
<!-- fallback content -->
</object>
</video>
<video src="movie.mp4">
<object data="movie.swf">
<a href="movie.mp4">download</a>
</object>
</video>
<video>
<source src="movie.mp4">
<source src="movie.ogv">
<object data="movie.swf">
<a href="movie.mp4">download</a>
</object>
</video>
<video>
<source src="movie.mp4">         1
<source src="movie.ogv">         2
<object data="movie.swf">        3
<a href="movie.mp4">download</a> 4
</object>
</video>
e value of a network is proportional to the square
of the number of connected users of the system (n2).



                          —Robert Metcalfe
priority of
constituencies
In case of conflict, consider
users over authors over
implementors over specifiers
over theoretical purity.
Soware, like all technologies, is inherently political.
Code inevitably reflects the choices, biases and desires
of its creators.



                               —Jamais Cascio
1. Make the most equent tasks easy and less
equent tasks achievable.

2. Design for the 80%.

3. Privilege the Content Creator.

4. Make the default settings smart.
       —Mark Boulton, Leisa Reichelt,
                            d7ux.org
Design for humans first, machines second.




                 —Microformats.org,
            e microformats principles
e effectiveness of the Internet as a public resource
depends upon interoperability (protocols, data
formats, content), innoation and decentralised
participation worldwide.

Transparent community-based processes promote
participation, accountability, and trust.

               —e Mozilla Foundation,
                 e Mozilla Manifesto
Rough consensus and running code.




                       —e Tao of IETF
@adactio
adactio.com
books.alistapart.com

Contenu connexe

Similaire à The Design of HTML5

Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
Lionel Briand
 
Wisdom Of Crowds
Wisdom Of CrowdsWisdom Of Crowds
Wisdom Of Crowds
guest5dedec
 
IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013
Stuart Myles
 

Similaire à The Design of HTML5 (20)

Le design du HTML5 (Remix)
Le design du HTML5 (Remix)Le design du HTML5 (Remix)
Le design du HTML5 (Remix)
 
Migration from FAST ESP to Solr
Migration from FAST ESP to SolrMigration from FAST ESP to Solr
Migration from FAST ESP to Solr
 
Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
Known XML Vulnerabilities Are Still a Threat to Popular Parsers ! & Open Sour...
 
Busy Architects Guide to Modern Web Architecture in 2014
Busy Architects Guide to  Modern Web Architecture in 2014Busy Architects Guide to  Modern Web Architecture in 2014
Busy Architects Guide to Modern Web Architecture in 2014
 
Open for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin CoreOpen for Business - Open Archives, OpenURL, RSS and the Dublin Core
Open for Business - Open Archives, OpenURL, RSS and the Dublin Core
 
The Semantic Web
The Semantic WebThe Semantic Web
The Semantic Web
 
Wisdom Of Crowds
Wisdom Of CrowdsWisdom Of Crowds
Wisdom Of Crowds
 
Implementing the Genetic Algorithm in XSLT: PoC
Implementing the Genetic Algorithm in XSLT: PoCImplementing the Genetic Algorithm in XSLT: PoC
Implementing the Genetic Algorithm in XSLT: PoC
 
Bodleian Library's DAMS system
Bodleian Library's DAMS systemBodleian Library's DAMS system
Bodleian Library's DAMS system
 
IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013IPTC News in JSON Spring 2013
IPTC News in JSON Spring 2013
 
Semantic web and Linked Data
Semantic web and Linked DataSemantic web and Linked Data
Semantic web and Linked Data
 
An Introduction to Working With the Activity Stream
An Introduction to Working With the Activity StreamAn Introduction to Working With the Activity Stream
An Introduction to Working With the Activity Stream
 
Mikkel Heisterberg - An introduction to developing for the Activity Stream
Mikkel Heisterberg - An introduction to developing for the Activity StreamMikkel Heisterberg - An introduction to developing for the Activity Stream
Mikkel Heisterberg - An introduction to developing for the Activity Stream
 
Introduction to MySQL Document Store
Introduction to MySQL Document StoreIntroduction to MySQL Document Store
Introduction to MySQL Document Store
 
[In Control 2010] HTML5
[In Control 2010] HTML5[In Control 2010] HTML5
[In Control 2010] HTML5
 
Institutional knowledge and information ecology in a Free Software ecosystem
Institutional knowledge and information ecology in a Free Software ecosystemInstitutional knowledge and information ecology in a Free Software ecosystem
Institutional knowledge and information ecology in a Free Software ecosystem
 
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
 
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
Cristiano Rastelli - Atomic Design, Design Systems and React. Cool, but... - ...
 
Cs 891 2rev B
Cs 891 2rev BCs 891 2rev B
Cs 891 2rev B
 
Dégraissons le mammouth ou Darwin a encore frappé - La théorie de l'évolution...
Dégraissons le mammouth ou Darwin a encore frappé - La théorie de l'évolution...Dégraissons le mammouth ou Darwin a encore frappé - La théorie de l'évolution...
Dégraissons le mammouth ou Darwin a encore frappé - La théorie de l'évolution...
 

Plus de adactio (13)

Keeping it personal
Keeping it personalKeeping it personal
Keeping it personal
 
Huffduffer
HuffdufferHuffduffer
Huffduffer
 
The System Of The World
The System Of The WorldThe System Of The World
The System Of The World
 
Creating Portable Social Networks with Microformats
Creating Portable Social Networks with MicroformatsCreating Portable Social Networks with Microformats
Creating Portable Social Networks with Microformats
 
Designing for the Social Web
Designing for the Social WebDesigning for the Social Web
Designing for the Social Web
 
Microformats: what are they and why do I care?
Microformats: what are they and why do I care?Microformats: what are they and why do I care?
Microformats: what are they and why do I care?
 
Ajax Kung Fu
Ajax Kung FuAjax Kung Fu
Ajax Kung Fu
 
Explaining Ajax
Explaining AjaxExplaining Ajax
Explaining Ajax
 
The Beauty in Standards and Accessibility
The Beauty in Standards and AccessibilityThe Beauty in Standards and Accessibility
The Beauty in Standards and Accessibility
 
Ajax A Prueba De Balas
Ajax A Prueba De BalasAjax A Prueba De Balas
Ajax A Prueba De Balas
 
Bulletproof Ajax
Bulletproof AjaxBulletproof Ajax
Bulletproof Ajax
 
Soul
SoulSoul
Soul
 
Microformats: the Nanotechnology of the Semantic Web
Microformats: the Nanotechnology of the Semantic WebMicroformats: the Nanotechnology of the Semantic Web
Microformats: the Nanotechnology of the Semantic Web
 

Dernier

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

The Design of HTML5