An <iframe> with a specified height and width of 200 pixels:
The
width
attribute specifies the width of an iframe, in pixels.
The default width is 300 pixels.
<iframe width=" pixels ">
Value | Description |
---|---|
pixels | The width in pixels (like "100px" or just "100") |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The iframe height attribute</h1>
<iframe src="https://horje.com/" width="200" height="200">
</iframe>
</body>
</html>
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |