scrolling attribute on <frame> should not be used for new pages.Classic frames could use scrolling="yes", scrolling="no" or scrolling="auto" to influence whether scrollbars appeared inside a frame.
<frameset cols="50%,50%">
<frame src="frame1src.html" scrolling="yes">
<frame src="frame2src.html" scrolling="auto">
</frameset>
Use a normal <iframe>. Browsers handle the embedded document's scrolling as needed. The obsolete frame-era scrolling attribute is not the modern control to teach.
CSS applied to the iframe styles the iframe element itself. The content inside an iframe is a separate document; its own CSS controls overflow inside that document when you control the embedded page.
Should I use scrolling="no" on a new iframe?
No. Avoid old frame-era scrolling markup.
Can parent-page CSS directly style the contents of any iframe?
No. The iframe contains a separate document, and cross-origin security rules can also restrict access.
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.