Presentation is loading. Please wait.

Presentation is loading. Please wait.


Similar presentations

Presentation on theme: "HTML5 (H YPER T EXT M ARKUP L ANGUAGE ) Lab 223 潘建廷 何偉聖"— Presentation transcript:

1 HTML5 (H YPER T EXT M ARKUP L ANGUAGE ) Lab 223 潘建廷 何偉聖

2 I NTRODUCE Today, some elements in HTML 4.01 (1999)are obsolete, never used, or not used the way they were intended to. These elements are deleted or re-written in HTML5. HTML5 is the next generation of HTML. HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.

3 G OALS Document real-world browser behaviour Document and standardise useful extensions Develop practical new features Ensure backwards compatibility Define robust error handling

4 D ESIGN P RINCIPLES Foundation of Design and Development Organised into 3 Categories Compatibility Utility Interoperability

5 D ESIGN P RINCIPLES : C OMPATIBILITY Support Existing Content Degrade Gracefully Don't Reinvent the Wheel Pave the Cow paths Evolution, not Revolution

6 D ESIGN P RINCIPLES : U TILITY Solve Real Problems Priority of Constituencies Media Independence Universal Access Support World Languages Secure By Design Separation of Concerns

7 D ESIGN P RINCIPLES : I NTEROPERABILITY Well-Defined Behaviour Avoid Needless Complexity Handle Errors

8 B ENEFITS OF HTML Backwards compatible with legacy UAs Author familiarity Lenient and forgiving syntax Convenient shorthand syntax Can omit some tags and attribute values

9 B ENEFITS OF XHTML Strict XML Syntax Integrate directly with other XML vocabularies SVG, MathML Use XML Processing

10 D OCUMENT R EPRESENTATIONS HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.

11 HTML5 WERE ESTABLISHED New features should be based on HTML, CSS, DOM, and JavaScript Reduce the need for external plugins (like Flash) Better error handling More markup to replace scripting HTML5 should be device independent The development process should be visible to the public

12 V IDEO Ogg = Ogg files with Theora video codec and Vorbis audio codec WebM = WebM files with VP8 video codec and Vorbis audio codec MPEG4 = MPEG 4 files with H.264 video codec and AAC audio codec


14 V IDEO -- VIA HTML5 Example The video element allows multiple source elements. Source elements can link to different video files. The browser will use the first recognized format


16 A UDIO Until now, there has never been a standard for playing audio on a web page. Today, most audio are played through a plugin (like flash). However, not all browsers have the same plugins. HTML5 specifies a standard way to include audio, with the audio element. The audio element can play sound files, or an audio stream.

17 W EB S TORAGE HTML5 offers two new objects for storing data on the client: localStorage - stores data with no time limit sessionStorage - stores data for one session

Download ppt "HTML5 (H YPER T EXT M ARKUP L ANGUAGE ) Lab 223 潘建廷 何偉聖"

Similar presentations

Ads by Google