iframe

<iframe> loads an HTML file / HTML code within. Between the opening and closing tags is the alternative content if <iframe> is not supported.
...... src=url
...... srcdoc=HTML_code; overrides src
...... height=pixels
...... width=pixels
...... name=text
...... seamless
...... referrerpolicy
...... csp
...... importance={auto | high | low}
...... loading={eager | lazy}
...... allow
...... sandbox={“”: applies all restrictions |
        allow-downloads-without-user-activation |
        
allow-forms |
        
allow-modals |
        
allow-orientation-lock |
        
allow-pointer-lock |
        
allow-popups |
        
allow-popups-to-escape-sandbox |
        
allow-presentation |
        
allow-same-origin |
        
allow-scripts |
        
allow-storage-access-by-user-activation |
        
allow-top-navigation |
        
allow-top-navigation-by-user-activation}
(modals refer to dialog boxes initiated by alert(), confirm(), prompt() and print().)

Here we use the 'onload' attribute to automatically adjust the height of the iframe so that it just fits the content upon being loaded.
By using a hidden iframe, you can print another webpage directly without first displaying it.

In addition to <embed>, <object> and <video>, an <iframe> can also be used to show YouTube videos.