Re: HTML 5

22.04.2016, 16:18, "Steve Comstock" <steve@trainersfriend.com>:
> So .pdf and .html are the only examples I've come up with
> to use EMBED and OBJECT at all, and neither of those need
> PARAM for the OBJECT element.
> is there any real world example, in today's
> world without Flash, Quicktime, and Java applets, for
> using OBJECT with PARAM?

Embedding PDF directly is unreliable given that:

    * not all browsers have a built-in PDF tool to view PDF documents (like PDF.js in Firefox);

    * not all PDF files can be shown correctly using PDF.js.

It's generally better to show HTML document while providing (if really needed) a link to download a PDF version of the HTML document.

To embed HTML document in another one, just use the `iFRAME` element (or avoid using separate documents at all, and display the required content directly as a part of the whole single page). As long as you don't need Flash, forget about `OBJECT`, `EMBED`, and `PARAM`.

Received on Friday, 22 April 2016 17:30:13 UTC