Meta Tags & SEO
What are Meta Tags?
Meta tags provide metadata about your HTML document. They don't appear on the page but are read by browsers and search engines.
Essential Meta Tags
HTML
CSS
JS
Key Meta Tags Explained:
charset- Character encoding (always use UTF-8)viewport- Essential for responsive design on mobiledescription- Shows in search results (keep under 160 chars)keywords- Less important now, but still used by some engines
Social Media Meta Tags
Open Graph and Twitter Cards control how your pages appear when shared:
HTML
CSS
JS
Image Tip: Use images at least 1200x630px for best display on social media.
SEO & Robots
Control how search engines index your pages:
HTML
CSS
JS
SEO Best Practices
- Use unique, descriptive titles (50-60 characters)
- Write compelling meta descriptions
- Use semantic HTML elements
- Include alt text on all images
- Use proper heading hierarchy (h1 → h2 → h3)
- Make your site mobile-friendly
- Use HTTPS for security
Quick Quiz
What is the recommended maximum length for a meta description?
Enjoying these tutorials?