HTML <iframe> with align Attribute

HTML <iframe> with align Attribute

The align attribute specifies the alignment of the <iframe> concerning the surrounding context.

Warning: The align attribute is deprecated and is no longer recommended.

Tips: To align an <iframe> element, try any of the following methods:

  • Using style global attribute: <iframe style="float: right">.
  • Using CSS float property.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <iframe src="/js" align="right"> <p>Your browser does not support iframes.</p> </iframe> </body> </html>

Attribute Values

NameExplanation
leftAlign the <iframe> to the left of its parent element.
rightAlign the <iframe> to the right of its parent element.
topAlign the <iframe> to the top of its parent element.
middleAlign the <iframe> to the middle of its parent element.
bottomAlign the <iframe> to the bottom of its parent element.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Meet the Author