But Your Honor, I Object!

Okay, the entire last section was filled with lies. Not that I'm trying to steer you wrong—I'm trying to do quite the opposite. All external media should be addressed using the object element if you want to be using markup that exists in the valid world of HTML and XHTML.

However, there's a big stumbling block with using the object element, and that is that support for it is inconsistent across browsers and platforms. This is very disturbing from a purist's point of view because there's no other alternative within the specifications.

QUANTUM LEAP: OBJECT HANDLING IN XHTML 2.0

In XHTML 2.0, the object element becomes ubiquitous. In other words, any other elements for external objects, including the img element, ...

Get Spring Into HTML and CSS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.