Images are defined with the <img> tag. Some attributes of the image tag are:
HTML file: | Displayed by browser: |
---|---|
<img src="w3schools.jpg" width="104" height="142"> |
![]() |
Image sizes are always specified in pixels: width="104" means 104 screen pixels wide, while height="142" means 142 screen pixels high.