Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <frame> frameborder Attribute

  • Last Updated : 30 Sep, 2019

The HTML <frame> frameborder attribute is used to specify whether or not a border should be displayed between the frames. For this, we use two values 0 and 1, where 0 defines no border and 1 defines the border.

Syntax

<frame frameborder="1|0"> 

Attribute Values:

  • 0: It has a default value. It sets the border on one state.
  • 1: It sets the border off state.

Example:




<!DOCTYPE html> 
<html
  
<head
    <title>
        HTML frame frameborder Attribute
    </title
</head
  
<frameset cols="30%, 40%, 30%"
      
    <frame name="left" src=
            frameborder="1" /> 
      
    <frame name="main" src=
             frameborder="1" /> 
      
    <frame name="bottom" src=
             frameborder="0" /> 
  
</frameset
  
</html>

Output:

Supported Browsers: The browsers supported by HTML <frame> frameborder attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!