Tuesday, April 20, 2010

Why do we need a element?

Until now, if you wanted to include video in a web page, you had to wrangle some fairly cryptic markup. Here's an example, taken directly from YouTube:


value="http://www.youtube.com/v/9sEI1AUFJKw&hl=en_GB&fs=1&">
value="true">
value="always">
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="425"
height="344">
First of all, we have an element — a generic container for foreign objects — to include the Flash movie in. To work around browser inconsistencies, we also include an element as fallback content and duplicate most of the 's parameters. The resulting code is ungainly and not very readable.

No comments:

Post a Comment