HTML for Kids: A Beginner’s Course | HTML and CSS

Images and Media:

 

✅ Description:

Learn how to add images and embed media like videos.

📘 Explanation:

  • Use <img src="url" alt="description"> to add images.

  • Use alt to describe the image (for accessibility).

  • (Optional) Embed YouTube using <iframe>.

 

💻 Code Example:

 
<img src="https://example.com/cat.jpg" alt="Cute cat" width="300">

 

🛠️ Exercise:

  • Add a picture of your favorite animal or activity.

  • Use a caption below the image (use a <p> tag).