hungary html5 xhtml2

Post on 10-Apr-2018

218 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 1/62

Why HTML5?Why not XHTML2?

Learning from history how to

drive the future of the Web

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 2/62

Michael(tm) Smith

mike@w3.org

http://people.w3.org/mike

sideshowbarker on Twitter, GitHub,&c 

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 3/62

HTML Working Group

Web Applications WorkingGroup

CSS Working Group

SVG Working Group

more...

W3C Interactiondomain

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 4/62

From 1997 through

the end of 2006, work 

on HTML within theW3C focused 

exclusively on the XHTML dialect .

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 5/62

 A government inexile...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 6/62

From June 2004 to

March 2007, work on

the (non-XHTML)HTML language took 

 place outside of theW3C .

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 7/62

 About HTML5 (and HTML forms)...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 8/62

HTML5 in the words

of the W3C HTML

WG...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 9/62

HTML designprinciples

http://w3.org/TR/html-design-

 principles/ 

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 10/62

HTML design

principlesSupport existing contentEnsure interoperability

Precisely define UAbehavior 

Handle errors (non-

draconically)

Evolution not revolution

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 11/62

³Draconically´=

³Draconian´=

³catch fire and fail´

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 12/62

 About XHTML2 (and  XForms)...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 13/62

 XHTML2 in the words

of the W3C XHTML

WG...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 14/62

XHTML2 Design Aims

http://w3.org/TR/xhtml2/introduction.html#ai 

ms

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 15/62

XHTML2 Design

 Aims U se existing XML facilities

rather than duplicating them(implies namespace support)

Less scripting (vs declarative

approach )

I ntegration with Semantic Web

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 16/62

What does³declarative´ mean?

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 17/62

Declarative programming

success story: SVG

(XSLT also? XForms?)

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 18/62

HTML5 and XHTML2 in contrast...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 19/62

Things HTML5 doesn¶t

doDoes not favor XMLfacilities

Does not avoid scripting

Does not consider 

integration with the

SemWeb a priority

No arbitrary namespaces

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 20/62

Things XHTML2 did not

do Does not support existing

content in the same way that 

HTML5 does Does not precisely define UA 

behavior 

Does not handle errors non-

draconically (uses ³catch fire

and fail´ error handling)

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 21/62

Important point:

XHTML2 was adifferent language than

XHTML1

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 22/62

...³different language´ in

that XHTML2 does notfully support existing

XHTML1 content (notbackward compatible)

rtant point: XHTML2 isa different language

than XHTML1

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 23/62

 A representative statement aboutthe difference in philosophy:

³HTML is the assembly

language of the Web.´

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 24/62

Important point: In some

cases HTML5 offers a

choice of both declarative

and scripting

approaches.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 25/62

 About error handling...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 26/62

Well-formed XML:<input disabled ="disabled">

E mpty attribute: <input disabled > Without quotes: <input value=yes>

Single quotes: <input type='checkbox'>

Double quotes: <input name="be evil">

Which of these are errors? 

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 27/62

<i><b>misnested 

tags< /i>< /b>

This is a real error  

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 28/62

HTML5 parsers can

handle real errorsinteroperably and

gracefully.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 29/62

Why is it important tohandle errors?

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 30/62

More than 93% of 

 Alexa Top 500 sitescontain HTML

conformance errors.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 31/62

 A little history...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 32/62

(About draconian error handling in XML)

I think users and application builders

should have a choice with what they

do with invalid data... I therefore

plan to continue to provide it even if the spec says that this is non-

conforming.

 April 1997 I think users and application builders should have a choice with what they do with invalid data.

I cannot see how a user or application builder can be disadvantaged by being provided with this choice, and I 

therefore plan to continue to provide it even if the spec says that this

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 33/62

 After careful consideration, theHTML Working Group has decided

that the goals for the next generation

of forms are incompatible with

preserving backwards compatibility

with browsers designed for earlier 

versions of HTML.

 August 1999

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 34/62

W3C has no intention to extend

HTML 4 as such. Instead, further 

work is focusing on a reformulationof HTML in XML

November 1999

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 35/62

...while the ancestry of XHTML 2

comes from HTML 4, XHTML 1.0,

and XHTML 1.1, it is not intended to

be backward compatible with its

earlier versions

 August 2002

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 36/62

XHTML 2.0 seems to me the live

proof that something is going wrongat W3C... I strongly suggest

dropping all XHTML 2.0 efforts in

favor of a new ³xHTML 5.0´language. Clearly a successor to

HTML 4, feature-oriented, made for 

the web.

December 2002

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 37/62

The W3C had so far failed to

address a need in the Webcommunity: There is no language for 

Web applications... I intend to do

something about this (hopefullywithin a W3C context, although that

will depend on the politics

of the situation).

January 2004

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 38/62

The dream of a new web, based on

XHTML+SVG+SMIL+XForms, is justthat ² a dream... The best way to

help the Web is to incrementally

improve the existing webstandards... so that web content

authors can actually deploy new

formats interoperably.

June 2004

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 39/62

We need to specify error handling

behavior to ensure interoperability

³even in the face of documents that

do not comply to the letter of the

specifications´.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 40/62

 Authors will write invalid content

regardless of what we spec. So the

spec states ³what authors must notdo, and then tells implementors what

they must do when an author 

does it anyway´.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 41/62

It is necessary to evolve HTML

incrementally. The attempt to get the

world to switch to XML, including

quotes around attribute values and

slashes in empty tags and namespaces

all at once didn¶t work...

October 2006

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 42/62

more HTML history

http://w3.org/html/wg/wiki/Histo

ry 

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 43/62

HTML5 has a major focus

on facilitating use of a

browser as a Webapplication platform (or 

Web application runtime

environment).

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 44/62

XHTML2 had a major 

focus on providing a

general-purpose documentlanguage with declarative

mechanisms to enable

interactive features.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 45/62

HTML5 support specific native browser 

support being implemented

by all major browser vendors

spec remains in activedevelopment

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 46/62

XHTML2 support no specific client-side native

browser support from any

major browser vendor 

« but was intended to be

possible to ³bolt on´ some level

of support using CSS+JS

last WD: 2006

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 47/62

The bottom line...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 48/62

HTML5 is the only

HTML dialect that will

be natively supported in

browsers on the client

side.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 49/62

S ome HTML5 differences...

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 50/62

HTML5 defines HTML as an abstract

language with two standardsyntaxes supported by browsers:

a text/html syntax, with parsing rules defined by the HTML5 spec

an XML syntax, with parsing rules defined by the XML spec

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 51/62

Similarly, applications can

potentially represent HTML in

memory in any number of ways.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 52/62

http://software.hixie.ch/utilities/js/live-dom-viewer/

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 53/62

However, there¶s only one standard

in-memory representation supported

by browsers: The W3C DOM.

The HTML5 spec precisely defines

the DOM representation that

browsers must use to represent

HTML content in memory.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 54/62

<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0

Transitional//EN"

"http://www.w3.org/TR/xhtml1/

DTD

/xhtml1-transitional.dtd">

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 55/62

<!DOCTYPE html>

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 56/62

<meta http-equiv="Content-Type"

content="text/html; charset=utf-

8">

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 57/62

<meta charset="utf-8">

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 58/62

I mportant point:

HTML5 includes XHTML

(but not XHTML2 ...)

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 59/62

Frequently Asked

Questions (FAQ) about

the future of XHTML

http://www.w3.org/2009/06/xhtml-

faq.html 

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 60/62

Ez minden.That¶s all.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 61/62

Köszönöm szépen.Thanks.

8/8/2019 Hungary Html5 Xhtml2

http://slidepdf.com/reader/full/hungary-html5-xhtml2 62/62

Michael(tm) Smithmike@w3.org

http://people.w3.org/mike

sideshowbarker on Twitter, GitHub,&c 

top related