Open In App

HTML <iframe> align Attribute

Last Updated : 31 Dec, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The HTML <iframe> align attribute is used to specify the alignment of the inline-frame according to the alternate element. 

Syntax

<iframe align="left|right|middle|top|bottom">

Attribute Values

  • left: It sets the alignment of an iframe to left.
  • right: It sets the alignment of an iframe to right.
  • middle: It sets the alignment of an iframe to the middle.
  • top: It sets the alignment of an iframe to the top.
  • Bottom: It sets the alignment of an iframe to the bottom.

Note: The HTML