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 `

Document

GeeksForGeeks

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 `

Document

GeeksForGeeks

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:

Screenshot-2023-12-20-092336

**Supported Browsers:

HTML scrolling Attribute