Web Programming Step by Step, 2nd Edition

Lecture XX: The Future: HTML 5, CSS 3, ECMAScript 5

Reading: none

Except where otherwise noted, the contents of this document are Copyright 2012 Marty Stepp, Jessica Miller, and Victoria Kirst. All rights reserved. Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the author's expressed written permission.

Valid HTML5 Valid CSS

What is HTML 5?

What's new in HTML 5?

What's new, continued

The old way

bad tags

HTML 5 semantically meaningful tags

good tags

HTML 4 / XHTML embedding a video

<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="player" width="340" height="280">
  <param name="url" value="http://www.domain.com/path/to/winmovie.wmv" />
  <param name="src" value="http://www.domain.com/path/to/winmovie.wmv" />
  <param name="showcontrols" value="true" />
  <param name="autostart" value="true" />
  <!--[if !IE]>-->
  <object type="video/x-ms-wmv" data="http://www.domain.com/path/to/winmovie.wmv" width="340" height="280">
    <param name="src" value="http://www.domain.com/path/to/winmovie.wmv" />
    <param name="controller" value="true" />
    <param name="autostart" value="true" />
  </object>
  <!--<![endif]-->
</object>

HTML 5 embedding a video

<video src="video.ogv" width="425" height="350"></video>

CSS 3 new features

JavaScript DOM new features

JavaScript (ECMAScript) 5 features (1, 2)

Browser support (1, 2, 3, 4)