diffsnack
HTMLAttribute

What is width in HTML?

The width of an image in pixels. It lets the browser keep the right space before the image arrives.

Example

<img src="cover.webp"
width="600" height="600">

Practice HTML in a 2-minute game →