HTML 15 💻 iframe element
CORS does not allow showing external websites
<iframe src="https://www.google.com" width="600" height="400" allowfullscreen title="External" name="itarget">
</iframe>
<a href="https://fedoraproject.org/" target="itarget">Fedora OS</a>
- iframe element is a container for another HTML document
- It allows to embed another wepbade within the current one
- It is useful for displaying content from another websites
- src attribute spicifies the HTML document
- width and height attributes specify the dimensions
- frameborder attribute removes the frame border if set to 0
- scrolling attribute specifies the scrolling handling yes|auto|no
- allowfullscreen attribute allows the user to request full-screen mode for the iframe
- Using anchor element, and its attribute target, you can target an iframe to show/change the HTML document