VOOZH about

URL: https://www.geeksforgeeks.org/html/html-iframe-scrolling-attribute/

⇱ HTML <iframe> scrolling Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML <iframe> scrolling Attribute

Last Updated : 27 May, 2026

The scrolling attribute is used to control the visibility of scrollbars in an <iframe> element. It determines whether scrollbars should appear when the embedded content exceeds the frame size.

  • Controls the display of horizontal and vertical scrollbars in the iframe.
  • Common values are yes, no, and auto.
  • Helps improve the appearance and usability of embedded content.

Syntax: 

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

Attribute Values 

  • 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.

Note: This attribute has been DEPRECATED and is no longer recommended.

Example: Implementation of <iframe> scrolling Attribute

 Example 2: Implementation of <iframe> scrolling with no scrolling attribute.

Comment
Article Tags: