Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A Quiz
🎯 Introduction: Visual
Content That’s Accessible and Searchable
Images and media play a critical role in web design and
content engagement. However, when not implemented properly, they can pose
barriers for users with disabilities and cause your content to rank
poorly in search engines.
This chapter teaches you how to:
📷 1. The Role of Images
in UX, Accessibility & SEO
Images serve multiple purposes:
But for those who:
🧠 2. What Is Alt Text?
Alt text (alternative text) is the textual
description of an image that:
🔹 Syntax Example:
html
CopyEdit
<img
src="product.jpg" alt="Front view of red running shoes with
white sole">
🟩 3. Writing Good Alt
Text
Alt Text Type |
Example |
Purpose |
Descriptive |
"Red running
shoes, size 10, on white background" |
Product images |
Functional |
"Search" |
Icon buttons
or linked images |
Decorative |
alt="" |
Background or
non-essential visuals |
Complex |
Describe in
nearby text or use aria-describedby |
Charts,
infographics |
✅ Best Practices:
❌ Bad Alt Text:
html
CopyEdit
<img
src="photo1.jpg" alt="photo">
✅ Good Alt Text:
html
CopyEdit
<img
src="team.jpg" alt="Our support team smiling in the
office">
🔄 4. Decorative Images:
When and How to Skip Alt Text
✅ Decorative image:
html
CopyEdit
<img
src="border.jpg" alt="">
Never leave out the alt attribute entirely — always use an
empty string for decorative images.
🎞️ 5. Video & Audio
Accessibility
🔸 Captions
🔸 Transcripts
🔸 Audio Descriptions
✅ Example:
html
CopyEdit
<video
controls>
<source src="intro.mp4"
type="video/mp4">
<track kind="captions"
src="captions.vtt" srclang="en"
label="English">
</video>
💬 6. SEO Benefits of
Optimized Media
Search engines can’t “see” images and videos. They rely on:
✅ Optimize file names:
html
CopyEdit
<img
src="black-leather-office-chair.jpg" alt="Black leather office
chair with steel frame">
Improves ranking in Google Images and product search.
⚡ 7. Performance Optimization:
Lazy Loading, Format, and Responsiveness
🔹 Lazy Loading
Delays image loading until they enter the viewport.
html
CopyEdit
<img
src="team.jpg" alt="Company team at event"
loading="lazy">
🔹 Responsive Images
html
CopyEdit
<img
src="photo.jpg"
srcset="photo-small.jpg 480w,
photo-medium.jpg 768w, photo-large.jpg 1200w"
sizes="(max-width: 768px) 100vw,
50vw"
alt="City skyline at dusk">
Attribute |
Use |
srcset |
Serves different image
sizes based on screen resolution |
sizes |
Hints at
display width to the browser |
loading="lazy" |
Improves performance |
🔹 Modern File Formats
🧾 8. Image Sitemap and
Structured Data
Help search engines discover and index your media more efficiently.
🔸 Image Sitemap:
xml
CopyEdit
<url>
<loc>https://example.com/product1</loc>
<image:image>
<image:loc>https://example.com/images/product1.jpg</image:loc>
<image:title>Ergonomic Office
Chair</image:title>
</image:image>
</url>
🔸 Schema for Images
(JSON-LD):
html
CopyEdit
<script
type="application/ld+json">
{
"@context":
"https://schema.org",
"@type": "ImageObject",
"contentUrl":
"https://example.com/image.jpg",
"description": "Red gaming
chair with adjustable armrest"
}
</script>
🧠 9. Common Media
Accessibility Issues
Issue |
Fix |
No alt attribute |
Add meaningful or
empty alt |
Missing captions |
Add
<track> with caption file |
Complex image
(chart) |
Provide description in
text |
Image used as a button |
Add alt
describing the action |
Autoplay media |
Allow user control;
use controls |
💡 10. Testing Tools for
Image & Media Accessibility
🧩 Bonus Tips for
Developers & Content Creators
📋 Recap Table: Image
& Media Optimization
Element |
Accessibility Tip |
SEO Tip |
Alt text |
Describe content or
action |
Include relevant
keyword |
Captions |
Always use
for videos |
Boosts
visibility in YouTube & Google |
File name |
Use descriptive names |
Helps image search |
Lazy load |
Enhances
performance |
Improves Core
Web Vitals |
Responsive images |
Improves UX on all
devices |
Reduces bounce rate |
Schema markup |
Adds
machine-readable info |
Enhances rich
snippets |
A: Web accessibility means designing and developing
websites so that people with disabilities can perceive, understand, navigate,
and interact with the web effectively. This includes those with visual,
auditory, motor, and cognitive impairments.
A: Accessibility ensures equal access for all users,
improves usability for everyone, expands your audience reach, enhances user
experience, and reduces legal risks under laws like the ADA or WCAG standards.
A: SEO (Search Engine Optimization) is the practice
of optimizing a website’s content and structure so that it appears higher in
search engine results. It involves on-page elements, technical setup, and
content strategies to improve discoverability.
A: Many accessibility practices—like using semantic
HTML, descriptive alt text, clear heading structures, and transcripts—also
improve SEO by making content easier for search engines to crawl and
understand.
A: WCAG stands for Web Content Accessibility
Guidelines. It’s a globally accepted set of standards that define how to
make web content more accessible. Compliance helps ensure your site is usable
by people with disabilities and meets legal obligations.
A: Yes, accessible websites often perform better
because they are structured in a way that makes them easier to crawl,
understand, and index—factors that search engines prioritize when ranking
content.
A: Start by using semantic HTML tags (like
<header>, <nav>, <main>), ensuring proper heading structure,
adding descriptive alt text to images, enabling keyboard navigation, and using
sufficient color contrast.
A: ARIA (Accessible Rich Internet Applications)
attributes help screen readers interpret dynamic content, but they don’t
directly impact SEO. Use them only when semantic HTML cannot achieve the same
function.
A: Popular tools include:
A: Not necessarily. Many improvements—like proper
markup, image alt text, and cleaner HTML—are low-cost and high-impact. In the
long run, investing in accessibility and SEO can increase traffic, improve
conversions, and protect against legal issues.
Please log in to access this content. You will be redirected to the login page shortly.
LoginReady to take your education and career to the next level? Register today and join our growing community of learners and professionals.
Comments(0)