Skip to content
doubtly

2 answers

Answer: (b) Pixels

The width and height attributes of the <img> tag are given in pixels by default (they can also be given as a percentage of the page width):

<img src="photo.jpg" width="300" height="200">

A pixel is the smallest dot on the screen. Centimetres and inches are print units, and dots per inch (DPI) measure resolution, not the size of an image on a web page.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Practise this chapter

Practice Questions

Your answer

Log in or create a free account to answer this question.