HTML Image Width And Height Attributes Code For Website - Learn About Website | DaddyFile

0

Size Attributes Explain

HTML images are defined with the <img> tag.
The filename of the source (src), and the size of the image (width and height) are all provided as attributes.

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

You will learn more about images and the <img> tag later in this tutorial.



Html Code:

<!DOCTYPE html>
<html>
<body>

<img src="daddyfile.jpg" width="200" height="112">

</body>
</html>



Html Code Result:

Post a Comment

 
Top