Week 5

Differences between xhtml and html5.

What are the differences between xhtml and html? Well, just to start off with a little history HTML was introduced to the Internet in the early 1900s. HTML stands for Hyper Text Markup Language. It is the core language of the World Wide Web and the most recent version of HTML is HTML 5. HTML 4 was a big recommendation in 1997 but it became a rough guide only because it did not provide enough information to build implementations that interoperate with each other and more importantly deploy content. That was the same for XHTML1, which defines an XML serialization for HTML4 and Dom Level 2 HTML in which that defines JavaScript APIs for both HTML and XHTML. The biggest difference in the two are: HTML is more flexible when your marking up language framework whereas XHTML is a more restrictive subset of SGML, Wikipedia. Also in Raven the article talks about how Xhtml came from XML which means a way to store data. The only thing that the W3C decided to do was make a newer version of HTML which became XHTML. Other differences about the two were to make sure that the closing tags were matching. The Babysteps article lists the differences which are the XHTML, all documents must have Doctype declaration, the tags and declaration should be in lowercase, attribute values must be quoted and of course what i stated earlier would be to make sure you close your tags.

Browser support statistics for html5.

The first draft of HTML 5 was started in 2004. Its corrections were to define a single language of HTML that could be written in HTML syntax and in XML syntax. Also it defined detailed processing models to foster interoperable implementations, improve markup for documents and introduce markup and APIs for emerging idioms, such as Web applications. Some of the most interesting new features are the element for 2d drawing, the and elements for media playback, Support for local storage, and new for controls, like calendar, date, time email, url and search. HTML 5 is not yet an official standard, and no browsers have full HTML 5 support. But almost all major browsers continue to add new HTML 5 features to their latest versions. These browsers are Safari, Chrome, Firefox, Opera, and Internet Explorer.
To use media in your next HTML5 application, you need to know what formats are supported. HTML5 supports AAC, MP3 and Ogg Vorbis for audio and Ogg Theora, WebM and MPEG-4 for video. Even though HTML5 supports these media formats, however, not every browser supports every format. Below shows current browsers and the media formats they support.

Browser Video Formats Audio Formats
Ogg Theora H.264 VP8 (WebM) Ogg Vorbis MP3 Wav
Internet Explorer Manual install 9.0 Manual install No Yes No
Mozilla Firefox 3.5 No 4.0 Yes No Yes
Google Chrome 3.0 No 6.0 Yes Yes Yes
Safari Manual install 3 Manual install No Yes Yes
Opera 10.50 No 10.60 Yes No Yes

Vorbis is a free software/ open source project headed by the Xiph.Org (formerly Xiphophorus company). The project produces an audio format specification and software implementation (codec) for lossy audio compression. Vorbis is most commonly used in conjunction with the Ogg container format and it is therefore often referred to as Ogg Vorbis. Vorbis project started as part of the Xiphophorus company’s Ogg project (also known as OggSquish multimedia project). Vorbis had been shown to perform significantly better than many other lossy audio formats in the past in that it produced smaller files at equivalent or higher quality while retaining computational complexity comparable to other MDCT formats such as AAC or Windows Media Audio. However, there have not been many significant tests run in recent years.
The HTML5 draft specification adds video and audio elements for embedding video and audio in HTML documents. The specification had formerly recommended support for playback of Theora video and Vorbis audio encapsulated in Ogg containers to provide for easier distribution of audio and video over the internet by using open standards, but the recommendation was soon after dropped.

WebM is an audio-video format designed to provide royalty-free, open video compression for use with HTML5 video. The project’s development is sponsored by Google Inc. A WebM file consists of VP8 video and Vorbis audio streams, in a container based on a profile of Matroska. The project releases WebM related software under a BSD license and all users are granted a worldwide, non-exclusive, no-charge, royalty-free patent license.

The WebM project’s goal is to develop “a high-quality, open video format for the web that is freely available to everyone.” The project has the backing of Google, Mozilla, Opera, and numerous other companies. If it catches, on, it could settle the rift that currently exists with HTML5 video support, thus speeding up HTML5 adoption. Currently, there are two competing formats being used for video embedded using HTML5: H.264 (backed by Apple and other companies) and Ogg Theora (backed by Mozilla). Safari, Chrome, and other browsers support H.264 video, as will the upcoming Internet Explorer 9. On the other hand. Mozilla Firefox supports only Ogg Theora video.
Ogg is a free, open container format maintained by the Xiph.Org Foundation. The creators of the Ogg format state that it is unrestricted by software patents and is designed to provide for efficient streaming and manipulation of high quality digital multimedia. Ogg is the same as OGG VORBIS!

W3Schools
Working with Media

Advertisements