HTML | <frame> frameborder Attribute
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">
Note: This attribute is depreciated from HTML 5.
Attribute Values:
- 0: It has a default value. It sets the border on one state.
- 1: It sets the border off state.
Example:
html
<!DOCTYPE html> < html > < head > < title > HTML frame frameborder Attribute </ title > </ head > < frameset cols="30%, 40%, 30%"> < frame name="left" src= "https://media.w3wiki.net/wp-content/uploads/20190401113144/gfg_200X2001.png" frameborder="1" /> < frame name="main" src= "https://media.w3wiki.net/wp-content/uploads/20190328185307/gfg28.png" frameborder="1" /> < frame name="bottom" src= "https://media.w3wiki.net/wp-content/uploads/20190807114330/GFG115.png" 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