Adjust Image Sizes in HTML and CSS

Description

The following code shows how to adjust Image Sizes.

Example


<!--  w ww.j a v a 2  s  .  c  o  m-->
<!DOCTYPE HTML>
<html>
<body>
<p>
<img src="http://java2s.com/style/download.png" width="20" height="20" />
</p>
<p>
<img src="http://java2s.com/style/download.png" width="45" height="45" />
</p>
<p>
<img src="http://java2s.com/style/download.png" width="70" height="70" />
</p>
</body>
</html>

Click to view the demo

The code above generates the following result.

Adjust Image Sizes in HTML and CSS