Day 5: Images & Week 1 Mini-Project
Daily Objective
Section titled “Daily Objective”Embed images correctly with accessibility attributes and complete the Week 1 personal “About Me” mini-project.
1. Embedding Images: <img>
Section titled “1. Embedding Images: <img>”The <img> tag is a self-closing element requiring two essential attributes:
src: Path to the image file (relative or absolute).alt: Descriptive alternative text read by screen readers and shown if the image fails to load.
<img src="images/profile.jpg" alt="Portrait photo of Jane Doe smiling in front of a laptop" width="300" height="300"/>Common Image Formats
Section titled “Common Image Formats”- WebP: Modern format with excellent compression and quality (preferred for web).
- JPG/JPEG: Ideal for photographs with gradients and complex colors.
- PNG: Ideal for graphics with transparent backgrounds.
- SVG: Scalable vector format perfect for icons and logos.
Week 1 Mini-Project: Personal “About Me” Page
Section titled “Week 1 Mini-Project: Personal “About Me” Page”Project Requirements:
- A valid HTML5 document structure with
<head>,<meta>, and<title>. - An
<h1>containing your name or title. - A profile picture or avatar using
<img>with a descriptivealtattribute. - A short biographical paragraph using
<p>,<strong>, and<em>. - An unordered list of your hobbies and interests.
- An ordered list of your top 3 career goals for this year.
- Hyperlinks to your GitHub profile and two favorite reference sites.