पाठ 18 / 32

SEO के लिए इमेज अनुकूलन

उपयोगकर्ताओं और सर्च इंजन दोनों के लिए इमेज को अनुकूल करें।

इमेज SEO की सर्वश्रेष्ठ प्रथाएं

Compress images, use descriptive filenames (poodle-grooming-tips.jpg not image-1.jpg), add alt text, use modern formats (WebP), and implement lazy loading to improve page speed and accessibility.

इमेज मार्कअप और alt टेक्स्ट

Always use descriptive alt text. It helps blind users understand images and helps Google index image search results.

<!-- GOOD: Descriptive filename and alt text -->
<img 
  src="/images/chocolate-chip-cookie-recipe.jpg" 
  alt="Warm chocolate chip cookie fresh from the oven"
  width="400" 
  height="300"
  loading="lazy"
>

<!-- Using picture element for responsive images -->
<picture>
  <source media="(min-width: 768px)" srcset="large-image.webp">
  <source media="(min-width: 0px)" srcset="small-image.webp">
  <img src="fallback.jpg" alt="Descriptive text">
</picture>

srcset के साथ प्रतिक्रियाशील इमेज

Use srcset to serve different image sizes for different screens. Saves bandwidth on mobile and improves LCP. Example: srcset="small.jpg 480w, medium.jpg 800w, large.jpg 1200w".

आधुनिक प्रारूप का उपयोग करें: WebP और AVIF

WebP is 25% smaller than JPEG; AVIF is 30% smaller than WebP. Use element with fallbacks for older browsers.