Image alt text and optimization
š Scenario: You are creating a simple webpage for a local bakery. The page will show pictures of three popular baked goods. To make the page accessible and optimized for search engines, you need to add descriptive alternative text to each image and ensure the images are properly sized.
šÆ Goal: Build a basic HTML page with three images of baked goods. Add clear and descriptive alt text to each image. Also, set the image width to 300 pixels to optimize loading and display.
š What You'll Learn
Create an HTML skeleton with
<!DOCTYPE html>, <html>, <head>, and <body> tagsAdd three
<img> tags with the exact src attributes providedAdd descriptive
alt text for each imageSet the width attribute of each image to 300 pixels
š” Why This Matters
š Real World
Adding alt text and optimizing images is essential for making websites accessible to users with disabilities and improving search engine rankings.
š¼ Career
Web developers and content creators must know how to write good alt text and optimize images to meet accessibility standards and enhance user experience.
Progress0 / 4 steps