HTML · HTML Tutorial · Lesson 15
HTML Images
Embed images with src, alt, width and height.
Images can improve the design and appearance of a web page. The <img> tag is empty — it has attributes only and no closing tag.
Example
<img src="https://picsum.photos/id/1015/300/200" alt="Mountain lake" width="300" height="200">
src— the path to the imagealt— alternate text for the image
Image Size
Keep reading “HTML Images”
Sign up to read the full lesson (7 more parts), try every example in the live editor, and take the 5-question quiz.