Is it possible to have two or more iframes ?
I put two empty "iframe" tags with display:none style.
But i can see only one.
if i'm commenting one in source code, then i can see another one...
<iframe id="ab" style="display: none;" />
<iframe id="cd" style="display: none;" />
and in inspector (chrome) i can see only one ;(
btw, they are both direct body childs.
Instead of using the “self-closing” syntax (/
before the >
), use end tags for the iframe
elements, i.e. </iframe>
.
Markup like <iframe id="ab" style="display: none;" />
is in principle conforming in XML, hence in XHTML, and gets interpreted properly by modern browsers when in XHTML mode (for documents served as XHTML). In HTML mode, they see the “self-closing” tags just as start tags, so the result is a mess (and it’s even surprising that anything gets displayed).
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