HTML iframe align Attribute
HTML <iframe> tag
Definition and Usage
The align attribute specifies the horizontal and vertical alignment of the iframe
in relation to the surrounding text/elements.
The iframe element is a floating element (does not start a new line in the
HTML page), so text and other elements can wrap around it.
Compatibility Notes
The align attribute of the iframe element was deprecated in HTML 4.01
and is not supported in XHTML 1.0 Strict DTD.
Syntax
<iframe align="align">
description non-visual/text-only browsers
</iframe>
|
Parameter |
Description |
align |
Optional. Specifies horizontal and vertical alignment of
the iframe element. Possible values:
|
Browser Support

The attribute is deprecated, but still supported in all major browsers.
Example
Source |
Output |
Iframe align example:
<iframe src="demo_iframe.htm"
align="left"></iframe>
|
Iframe align example:
|
Try-It-Yourself Demos
iframe
align attribute example
Set the alignment of the iframe content.
HTML <iframe> tag
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|