how to use og meta tag in html code example

Example 1: meta og:image

<meta property="og:image" content="https://example.com/ogp.jpg" />
<meta property="og:image:secure_url" content="https://secure.example.com/ogp.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="300" />
<meta property="og:image:alt" content="A shiny red apple with a bite taken out" />

Example 2: all meta og tags

<meta property="og:title" content="Open Graph Meta Tags: Everything You Need to Know" />

Example 3: all meta og tags

<meta property="og:image" content="https://ahrefs.com/blog/wp-content/uploads/2020/01/fb-open-graph-1.jpg" />

Tags:

Html Example