Removing Borders from Iframe
By default, iframe has a border around it. To remove the border, we must use the style attribute and use the CSS border property.
Example : This example describes the HTML iframe Tag where the border property is set as none.
<!DOCTYPE html>
<html>
<body>
<h2>HTML iframe Tag</h2>
<p>Content goes here</p>
<iframe src=
"https://media.w3wiki.org/wp-content/uploads/20231227155729/jsonPrac3.html"
height="300"
width="400"
style="border: none">
</iframe>
</body>
</html>
Output:
HTML Iframes
HTML iframes offer a powerful way to embed external content, such as videos, maps, or other webpages, directly into your own webpage. This article provides an in-depth exploration of HTML iframes, their syntax, and how they can be used to enhance your web development projects.
Contact Us