Monday, December 31, 2018

An image height and width using CSS

An image height and width using CSS:-     


<html>
<body>

<h2>Image Size</h2>

<p>Use the style attribute to specify the width and height of an image:</p>
<img src="img_Car.jpg" alt="Car on road" style="width:350px;height:450px;">

</body>
</html>

OUTPUT:-   



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