- Courses
- HTML
- HTML top level tags
- <base>
- Open Graph tags and base element
How do Open Graph tags interact with the <base>
element?
Open Graph tags do not acknowledge the <base>
element.
They require full absolute URLs to function correctly, as they do not use the base URL specified by the <base>
element. This ensures that Open Graph metadata is always accurate and not dependent on the document's base URL, which is crucial for consistent sharing across different platforms.
<meta property="og:image" content="https://example.com/thumbnail.jpg" />