Tuesday, December 25, 2018

Size attributes

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:-


  • The image size is specified in pixels: width="200" means 200 pixels wide.

No comments:

Post a Comment

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...