![]() |
Definition and UsageThe Note: For input elements, the Applies toThe
Browser SupportThe |
Example:
HTML
<canvas id="myCanvas" width="200" height="200" style="border:1px solid">
Example:
HTML
<embed src="helloworld.swf" width="200" height="200">
Example:
HTML
<iframe src="https://horje.com" width="200" height="200">
<p>Your browser does not support iframes.</p>
</iframe>
Example:
HTML
<img src="https://horje.com/avatar.png" alt="Girl in a jacket" width="500" height="600">
Example:
HTML
<form action="/action_page.php">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="image" src="img_submit.gif" alt="Submit" width="48" height="48">
</form>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The object element</h1>
<object data="https://horje.com/avatar.png" width="300" height="200"></object>
</body>
</html>
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The video width and height attributes</h1>
<video width="320" height="240" controls>
<source src="https://www.sample-videos.com/video321/mp4/240/big_buck_bunny_240p_20mb.mp4" type="video/mp4">
<source src="https://www.sample-videos.com/video321/mp4/240/big_buck_bunny_240p_20mb.mp4" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>
html width attribute |
Read Full: | HTML Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |
Views: | 33 |
Reffered: https://www.w3schools.com/tags/att_width.asp