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:
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
Name | Explanation |
---|---|
left | Align the <iframe> to the left of its parent element. |
right | Align the <iframe> to the right of its parent element. |
top | Align the <iframe> to the top of its parent element. |
middle | Align the <iframe> to the middle of its parent element. |
bottom | Align 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.