HTML <iframe> scrolling Attribute (original) (raw)
Last Updated : 23 Jul, 2024
The **HTML scrolling Attribute is used to specify whether the scrollbar will be displayed or not in the Element. Basically, the scrollbar is used when the content is larger than the Iframe Element.
**Note: This attribute has been DEPRECATED and is no longer recommended.
**Syntax
**Attribute Values
| Attribute Values | Description |
|---|---|
| **auto | It has a 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. |
**Example: the implementation of scrolling Attribute
html `
DocumentGeeksForGeeks
HTML Iframe scrolling Attribute
<p>Content goes here</p>
<iframe src="https://en.wikipedia.org/wiki/Main_Page"
height="300" width="400"
marginwidth="50" scrolling="yes">
</iframe>
`
**Output:
Example 2: the implementation of scrolling with no scrolling attribute.
HTML `
DocumentGeeksForGeeks
HTML Iframe scrolling Attribute
<p>Content goes here</p>
<iframe src="https://en.wikipedia.org/wiki/Main_Page"
height="300" width="400"
marginwidth="50" scrolling="no">
</iframe>
`
**Output:

**Supported Browsers:
- Google Chrome 1
- Microsoft Edge 12
- Firefox 1
- Opera 15
- Safari 4
HTML scrolling Attribute