Open In App

HTML | <frame> scrolling Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <frame> scrolling attribute is used to specify that whether the scrollbar will be displayed or not in the <frame> element. Basically, the scrollbar is used when the content is larger than the Iframe Element.
Syntax: 
 

<frame scrolling="auto|yes|no">

Attribute Values: 
 

  • auto: It has the default value. The scrollbar appears when needed.
  • yes: This value shows the scrollbar in the iframe element.
  • no: This value does not show the scrollbar in the iframe element.

Note: The <frame> tag is not supported by HTML 5.
Example: 
 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
        HTML frame scrolling Attribute
    </title>
</head>
 
<frameset cols="30%, 40%, 30%">
     
    <frame name = "left" src =
            scrolling="auto" />
     
    <frame name="middle" src=
            scrolling="yes" />
     
    <frame name="right" src=
        scrolling="no" />
 
</frameset>
 
</html>  


Output: 
 

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

  • Internet Explorer (before IE 9)
  • Firefox
  • Opera (upto 12.0)
     

Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads