Width
Width attribute used for set height of iframe. we provide width to iframe in pixels.
also can provide width also in (%)percentage here width work with percentage
syntax:
without percentage
<iframe width="100px" height="100px"></iframe>
with percentage
<iframe width="100%" height="100px"></iframe>
example:
<iframe src="https://xyz.com" width="100px" height="100px"></iframe>
Last updated