Lesson 25 of 55
HTMLOpen Graph & Twitter Card Tags
9 min
Course progress45%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 25 of 55
HTML9 min
Keep these ideas in mind as you work through the lesson.
<meta property='og:title' content='My Portfolio' />
<meta property='og:description' content='Front‑end developer showcasing projects.' />
<meta property='og:image' content='https://example.com/preview.png' />
<meta property='og:url' content='https://example.com/' />
<meta property='og:type' content='website' />
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:title' content='My Portfolio' />
<meta name='twitter:description' content='Front‑end developer portfolio.' />
<meta name='twitter:image' content='https://example.com/preview.png' />
<meta name='twitter:image:alt' content='Screenshot of portfolio homepage' />
twitter:image:alt for accessibility.og:title, og:description, og:image, og:url, og:type) present? ✅twitter:card, twitter:title, twitter:description)? ✅twitter:image:alt provided for accessibility? ✅Tip: Keep the Open Graph data consistent across pages for a cohesive brand presence on social platforms.