Previously, I had thought that the only way to get content from external URLs into your page, were to use an IFRAME or JavaScript to include it into your pages.
I've just learned of another way using the tag:
<object type="text/html" frameborder="0" data="http://Server/URL/"></object>
I have found some content online that confirms this ability, but it doesn't talk much about features such as Accessibility and SEO of the page.
UPDATE: I'm not looking for information on HOW to use this method, looking for information regarding what happens to my page when i use this method, such as:
The bottom line, this is not a well know method, so there's not much available online (that I can find anyway), so I'm looking to see if anyone has had experience implementing this method. Thanks!
I think the question linked in Pekka's comment should satisfy you.
Nonetheless you could consider XML data islands too.
To screen readers, object elements are conditional content, so they are not rendered automatically and must have a fallback.
For SEO purposes, the spec says the object can be activated by clicking on some highlighted text, for example.
<P><OBJECT declare
id="earth.declaration"
data="TheEarth.mpeg"
type="application/mpeg">
The <STRONG>Earth</STRONG> as seen from space.
</OBJECT>
...later in the document...
<P>A neat <A href="#earth.declaration"> animation of The Earth!</A>
Object elements have the same security restrictions as iframes, so cross-domain JavaScript is not allowed, but exceptions have been found and fixed.
References
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With