THE WIDTH AND HEIGHT ATTRIBUTE:-
<html>
<body>
<h2>Size Attributes</h2>
<p>Images in HTML have a set of size attributes, which specifies the width and height of the image:</p>
<img src="imgtab.jpg" width="200" height="300">
</body>
</html>
OUTPUT:-
<html>
<body>
<h2>Size Attributes</h2>
<p>Images in HTML have a set of size attributes, which specifies the width and height of the image:</p>
<img src="imgtab.jpg" width="200" height="300">
</body>
</html>
OUTPUT:-
- The image size is specified in pixels: width="200" means 200 pixels wide.
No comments:
Post a Comment