Iframe Border Style

Changing the size, style, and color of the Iframe’s border.

Example : This example describes the HTML iframe Tag by specifying the border style.

HTML
<!DOCTYPE html>
<html>

<body>
        
    <p>Content goes here</p>
    <iframe src=
"https://media.w3wiki.org/wp-content/uploads/20240206111438/uni2.html" 
            height="400" 
            width="400" 
            style="border: 4px solid orange"> 
    </iframe>
</body>

</html>

Output:


HTML Iframes border style Example 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.

Similar Reads

What are HTML Iframes?

An iframe is an HTML document embedded inside another HTML document. The