# Images — HTML

Source: https://www.geekswithgeeks.com/en/html/html-images

> Embedding pictures with the img tag.

## The img tag

`<img>` is a void element — `src` is the file path, `alt` is a text description, `width`/`height` help layout.

```html
<img src="logo.png" alt="Company logo" width="120" height="40">
```

## Always write alt text

`alt` describes the image for screen readers and shows if the image fails to load — never leave it empty for meaningful images.
