📚 › HTML: build the structure of a web page
7. Images
ستتم ترجمة هذا المقال تلقائيًا. يُعرض بالإنجليزية حاليًا.
The img element shows a picture. src holds the file address, alt holds a short description, and width sets the size.
Always write alt text. Screen readers read it aloud for people who cannot see the picture, and search engines use it too. img has no end tag.
عرض المثال
<img src="https://example.com/cat.jpg" alt="A cat sleeping on a chair" width="300">
✍️ دورك الآن
Add an image from https://example.com/logo.png with the alt text Company logo.