HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress
HTML Reference

Quick Reference

An iframe is used to create a rectangular region, including scrollbars and borders, in one web page to display another web page. These are its attributes.

AttributeValueDescription
allowSpecifies a feature policy for the <iframe>
allowfullscreentrue
false
Set to true if the <iframe> can activate fullscreen mode by calling the requestFullscreen() method
allowpaymentrequesttrue
false
Set to true if a cross-origin <iframe> should be allowed to invoke the Payment Request API
heightpixelsSpecifies the height of an <iframe> (default height is 150 pixels)
loadingeager
lazy
Specifies whether a browser should load an iframe immediately or to defer loading of iframes until some conditions are met
nametextSpecifies the name of an <iframe>
referrerpolicyno-referrer
no-referrer-when-downgrade
origin
origin-when-cross-origin
same-origin
strict-origin-when-cross-origin
unsafe-url
Specifies which referrer information to send when fetching the iframe
sandboxallow-forms
allow-pointer-lock
allow-popups
allow-same-origin
allow-scripts
allow-top-navigation
Enables an extra set of restrictions for the content in an <iframe>
srcURLSpecifies the address of the document to embed in the <iframe>
srcdocHTML_codeSpecifies the HTML content of the page to show in the <iframe>
widthpixelsSpecifies the width of an <iframe> (default width is 300 pixels)

We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.

HTML
CSS
JavaScript
jQuery
PHP
SQL
WordPress

Why 1SMARTchicken?

This site was built and is maintained to benefit my autistic son.
See More →

My Son's Name is Johnny

He was diagnosed as autistic quite late, at age four...
His story

Buy Me a Coffee

Thanks for your support!

Feedback

If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.