22
Hypermedia systems Jakub Husár & Tomáš Jurík

Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Embed Size (px)

Citation preview

Page 1: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Hypermedia systemsJakub Husár & Tomáš Jurík

Page 2: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

ContentXHTML 2.0

Definition Short history Differences between 1.0 and 2.0 Usage suitability

ImprovementsComparison between XHTML 2.0 and

HTML 5.0Conclusion

HTML 5.0 Definition History of development Changes made from 4.01 Suitability for developers

Page 3: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

What exactly XHTML means?

The Extensible Hypertext Markup Language, or XHTML, is a markup language that has the same depth of expression as HTML, but also conforms to XML syntax.

(Wikipedia)

Page 4: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

XHTML History 26th January 2000

• XHTML 1.0 was published as a W3C recommendation

August 2002• W3C released first working draft of

XHTML 2.0nowadays (2008)

• expected to appear ninth working draft of XHTML 2.0

Page 5: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Focused on XHTML 2.0based on XMLdeveloped by the W3Creject the SGML heritage and syntax

peculiaritiespriority: separate document content

and structure from document presentation

Page 6: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

What XHTML 2.0 consists of?XHTML 2.0 is defined as collection of modules, which, using this standard,

are creating specified types for web presentations

Page 7: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

XHTML 2.0 vs. XHTML 1.0 tag <br /> was replaced by tag <l /> tags <b>, <big>, <i>, <small>, <tt> were removed

from presentation module; design changes are considered to be modified by CSS 2.0

tags <h1> to <h6> are gradually replaced by <section> tag

attribute name was completely replaced by attribute id

Page 8: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

XHTML 2.0 vs. XHTML 1.0Short example of XHTML 1.0 source code

Example of XHTML 2.0 source code

Page 9: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Suitability for Web Developers – XHTML 2.0browser support - a crucial point for web

developersInternet Explorer doesn’t have proper

XHTML support at all + severe problems with XHTML sent as XML

there are many changes to the structure of the document

none of the major browser vendors supports XHTML 2.0

Page 10: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

What is HTML?

HTML(an initialism of HyperText Markup Language) is the predominant markup language designed to creating Web pages and other informations presented in Web browsers.

(Wikipedia)

Page 11: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML historyNovember 1995

- HTML 2.0January 1997

- HTML 3.2December 1997

- HTML 4.0December 1999

- HTML 4.01January 2008

- HTML 5.0

Page 12: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Focused on HTML 5.0known also under the name Web

Applications 1.0SGML-based document formatdeveloped by the WHATWG(Web

Hypertext Application Technology Working Group)

WHATWG - open community started by three of the four major browser vendors: Mozilla, Opera, and Apple

Page 13: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML 5.0 vs. HTML 4.01syntax compatible with HTML 4.01

and XHTML 1.0defines detailed parsing rules (including "error handling")

Page 14: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML 5.0 vs. HTML 4.01new elements

e.g.: section, header, footer, audio, video, canvas …

new attributese.g.: meta element has a charset attribute …

changed meanings of some elementse.g.: b, hr, strong …

removed elementse.g.: big, center, strike …

removed attributese.g.: target attribute on link …

Page 15: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML 5.0 vs. HTML 4.01Short demonstration of HTML 5.0 source code

Page 16: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML 5.0 vs. HTML 4.01introduces a number of APIs that help in

creating Web applications2D drawing APIAPI for playing of video and audiopersistent storageAPI that enables offline Web applicationsCross-document messaging

Page 17: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

HTML 5.0 vs. HTML 4.01Demonstration of <canvas> tag

(2D drawing API)

output:

Page 18: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Suitability for Web Developers – HTML 5.0turning an HTML 4.01 document

into HTML 5.0 – just question of replacing the DOCTYPE declaration

if a document doesn’t use any of the new elements or APIs introduced by HTML 5.0, the browser just sends it to its tag-soup parser

Page 19: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

XHTML 2.0 vs. HTML 5.0increased usability and

accessibilityimproved

internationalizationmore device

independenceless scriptingbetter integration with

the Semantic Webcleaner, more concise

language - corrects many of Web markup’s past indiscretions

not so much a replacement as in XHTML2, but upgrade or evolution

aims for backwards compatibility

tries to remove undefined behavior in HTML 4.01 by defining it

semantic elements for improved form validation, interactive elements, and persistent storage

Page 20: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

XHTML 2.0 vs. HTML 5.0XML parsing will stop at

the first error in the document

any errors will render a page totally unreachable

display only details of the error, but no content

defines exactly how this error correction is to be done

defines how parsing should work if documents are invalid, ill-formed or broken

Page 21: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

ConclusionXHTML 2.0 is mostly only a semantic

improvement over XHTML 1.0seems like that it won’t matter for web

developers for a long time (Internet Explorer still doesn’t offer XHTML 1.0 support)

many parts of HTML 5.0 are already creeping into browsers

probably the HTML 5.0 will be the future of the web; we should pay close attention to it

Page 22: Hypermedia systems Jakub Husár & Tomáš Jurík. Content XHTML 2.0 Definition Short history Differences between 1.0 and 2.0 Usage suitability Improvements

Thank you for your attention

It’s time for your questions.