Meta Property og title: How to Add and Fix the Open Graph Title Tag

Quick Answer
When you see meta property og title in HTML, it refers to the Open Graph title declaration that tells compatible services which title to use when presenting a shared webpage. Add it inside your HTML document's <head> element using the property and content attributes. The correct syntax is <meta property="og:title" content="Your Page Title">. You can make this title different from your ordinary HTML title.
Key Takeaways
og:titlesupplies the Open Graph title for a shared object, such as a webpage.- Its HTML syntax uses
property="og:title"and acontentattribute. - Place the declaration inside the document's
<head>. - The Open Graph title and ordinary HTML title serve different purposes.
og:urlidentifies the shared object; it does not provide its title.- Inspect the published HTML to confirm which value your website actually delivers.
- Correct metadata does not guarantee that every social platform will display an identical preview.
What Does Meta Property og:title Mean?
The expression meta property="og:title" is part of the Open Graph protocol, a standard for describing webpage content so that participating services can understand and present it when people share links.
The complete HTML declaration looks like this:
``html
<meta property="og:title" content="A Practical Guide to Website SEO">
``
Each part has a specific purpose:
| HTML component | Meaning |
|---|---|
meta | Creates an HTML metadata element. |
property | Identifies the Open Graph property being defined. |
og:title | Names the Open Graph title property. |
content | Contains the actual title value. |
For example, suppose you publish an article called "How to Improve Website Speed." You might want the same wording to appear when somebody shares its URL on a social platform.
Your page can provide that title through og:title rather than leaving the sharing service to determine the presentation from other page information.
The official Open Graph Protocol specification defines og:title as the title of an object as it should appear within the graph. It is one of the protocol's four required basic properties.
The other three basic properties are:
og:type: Describes the type of object, such as an article or website.og:image: Identifies an image representing the object.og:url: Identifies the object's permanent URL.
Together, these properties provide important information about the page being shared.
How to Add the Open Graph Title Tag to HTML
Adding an Open Graph title is straightforward if you can edit your webpage's HTML or configure its metadata through a content management system (CMS).
The important requirement is that the declaration appears in the document's <head> section.
Step 1: Open the HTML head section
A basic webpage has a structure similar to this:
``html
<!doctype html>
<html lang="en">
<head>
<title>Website SEO Guide</title>
</head>
<body>
<h1>Website SEO Guide</h1>
</body>
</html>
``
The <head> contains information about the document. It is separate from the visible content inside the <body>.
Step 2: Add the og:title declaration
Insert the Open Graph property inside the head:
``html
<head>
<title>Website SEO Guide</title>
<meta property="og:title" content="A Practical Website SEO Guide">
</head>
``
The ordinary HTML title remains unchanged. The Open Graph property supplies a separate title value for compatible sharing services.
Step 3: Add the other relevant Open Graph properties
A more complete example looks like this:
```html <!doctype html> <html lang="en"> <head> <meta charset="UTF-8">
<title>Website SEO Guide | Example Website</title>
<meta property="og:type" content="article"> <meta property="og:title" content="A Practical Website SEO Guide"> <meta property="og:url" content="https://example.com/website-seo-guide"> <meta property="og:description" content="Learn practical ways to improve your website's search visibility."> <meta property="og:image" content="https://example.com/images/seo-guide.jpg"> </head> <body> <h1>Website SEO Guide</h1> </body> </html> ```
This example uses illustrative URLs and content, not a tested or published website.
Notice that each property has a different responsibility. The title identifies the shared content, the description summarizes it, the image represents it visually, and the URL identifies the object.
The Open Graph Protocol provides the official definitions and additional implementation examples.
Step 4: Make the title specific to the page
Avoid using the same generic title across every page of your website.
For example, consider these two pages:
| Page | Suitable og:title value |
|---|---|
| Website SEO guide | A Practical Guide to Website SEO |
| Technical indexing guide | How to Diagnose Website Indexing Problems |
Each title should accurately describe the content being shared.
This is especially important when your website generates pages dynamically. A template should insert the appropriate page title rather than repeating one fixed value across the entire website.
The Mass.gov HTML page template guidance demonstrates Open Graph metadata within HTML templates and shows how these properties can be included alongside other page information.
og:title vs. HTML Title vs. og:url: What Is the Difference?
These metadata fields can appear together in the same HTML document, but they are not interchangeable.
Understanding their responsibilities prevents common implementation mistakes.
| Element | Main purpose | Example |
|---|---|---|
HTML <title> | Provides the document title used by browsers and considered by search engines. | Website SEO Guide |
og:title | Supplies the Open Graph title for a shared object. | A Practical Guide to Website SEO |
og:description | Supplies a description of the shared object. | Learn practical SEO techniques for your website. |
og:url | Identifies the permanent URL of the shared object. | https://example.com/website-seo-guide |
Is og:title the same as an SEO title?
No. The HTML <title> element and the Open Graph og:title property have separate roles.
Search engines can use the HTML title and other page signals when generating search-result title links. Open Graph-compatible services can use og:title when presenting shared content.
You can give both fields the same wording, but you are not required to make them identical.
For example:
``html
<title>Website SEO Guide | Example Brand</title>
<meta property="og:title" content="The Complete Guide to Better Website SEO">
``
The first value is the document title. The second supplies the intended Open Graph title.
For a related explanation of conventional SEO metadata, see Meta Title, Meta Description and Meta Keywords: What Matters for SEO.
Is og:title the same as og:url?
No. This distinction is particularly important when inspecting HTML source code.
og:title supplies a human-readable title. og:url identifies the object through its permanent URL.
For example:
``html
<meta property="og:title" content="Website SEO Guide">
<meta property="og:url" content="https://example.com/website-seo-guide">
``
Changing the title does not change the URL identity, and changing the URL does not automatically provide a new title value.
If you need to understand URL identity and canonical considerations in more detail, consult the Open Graph Protocol specification.
How to Check Whether Your og:title Is Working
Adding a property in your CMS is only the first step. You should verify that the published webpage actually contains the expected declaration.
A practical check takes only a few minutes.
1. Open the published webpage
Visit the actual public URL in your browser.
Do not rely exclusively on the page editor or CMS preview. A configuration setting may not match the HTML ultimately delivered to visitors and external services.
2. Inspect the page source
Open the browser's page-source view or use its developer tools to inspect the document.
Search for:
``html
property="og:title"
``
You should find a declaration resembling:
``html
<meta property="og:title" content="Your Expected Page Title">
``
3. Check the content attribute
Finding the property name is not enough. Inspect the actual value inside content.
Ask these questions:
- Does the value describe the correct webpage?
- Is it different from an unrelated page title?
- Does it contain unexpected template text?
- Is the value empty or missing?
- Are there multiple declarations that could create ambiguity?
The goal is to verify the metadata that the published document delivers.
4. Compare the HTML title and Open Graph title
Find the ordinary HTML title element:
``html
<title>Your HTML Document Title</title>
``
Then compare it with:
``html
<meta property="og:title" content="Your Open Graph Title">
``
The values can be different. What matters is that each accurately serves its intended purpose.
5. Check the sharing preview separately
If the source contains the correct title but a sharing service displays something unexpected, investigate the platform's preview retrieval separately.
The HTML source and the displayed preview are two different pieces of evidence.
A correct declaration does not establish that every service has retrieved the latest version or will display it identically.
For additional background, web.dev's HTML Metadata guide explains how metadata, including Open Graph properties, contributes to webpage presentation when links are shared.
How to Fix Common Open Graph Title Problems
When a social-sharing title looks wrong, avoid changing several unrelated metadata fields at once. First establish what the published page actually contains.
The following diagnostic table helps isolate the problem.
| Observed problem | What to inspect | Practical action |
|---|---|---|
| No og:title found | Published HTML head | Add the property through the appropriate template or CMS setting. |
| Empty content value | The content attribute | Provide a meaningful title for the page. |
| Wrong page title | CMS metadata and template variables | Correct the page-specific value. |
| Same title on every page | Shared theme or template | Check whether dynamic page data is being inserted correctly. |
| Multiple og:title declarations | Full HTML source | Identify the source of each declaration and resolve conflicting output. |
| Correct source but unexpected preview | Sharing service's retrieved preview | Investigate the service's retrieval or preview-refresh process. |
Problem 1: The og:title property is missing
A website may have an ordinary HTML title without providing an Open Graph title.
These are separate declarations:
``html
<title>Website SEO Guide</title>
``
The presence of this element does not prove that the page contains an og:title property.
Add the missing declaration using your website's HTML template or metadata settings.
Problem 2: Every page displays the same sharing title
This commonly deserves a template-level inspection.
For example, a poorly configured website template might generate:
``html
<meta property="og:title" content="Welcome to Our Website">
``
on every article, category, and product page.
Instead, the template should use the appropriate page-specific metadata value.
The actual implementation depends on the CMS, theme, and plugins involved.
Problem 3: Your CMS contains the correct title, but the source does not
Check which component is generating the final HTML.
Possible sources include:
- The active website theme.
- An SEO or metadata plugin.
- A custom header template.
- A server-side rendering system.
- A page-specific metadata override.
Do not assume that changing one dashboard field automatically resolves every source of metadata output. Verify the result after publishing.
Problem 4: Two different og:title declarations appear
Inspect the complete HTML head to determine why multiple declarations exist.
For example, an SEO plugin and a custom theme may both generate Open Graph metadata.
Identify the responsible components and configure one consistent title output. Avoid making changes until you understand which component controls each declaration.
Problem 5: The correct title appears in source but not in the preview
If the published HTML contains the expected title, the problem may be outside the page's metadata configuration.
A sharing service might be displaying previously retrieved information or processing the page differently from your browser.
Check the relevant platform's own preview or debugging facilities, if available, and compare what it retrieves with the current public HTML.
Do not assume a universal refresh interval. Different services can handle retrieval and preview updates differently.
A Simple og:title Diagnostic Worksheet
Use this four-part worksheet whenever you implement or troubleshoot Open Graph titles.
| Check | Question | Passing condition |
|---|---|---|
| SOURCE | Does the published HTML contain og:title? | The declaration appears in the document head. |
| VALUE | Does the title describe the correct page? | The content value is accurate and page-specific. |
| DISTINCTION | Is it confused with another metadata field? | HTML title, og:title, and og:url have separate roles. |
| PREVIEW | Does the sharing service show the expected title? | The displayed result is consistent with the intended value, or a downstream retrieval issue is identified. |
A useful way to apply this worksheet is to record two separate results:
Metadata result: What does the published HTML contain?
Preview result: What does the sharing service actually display?
This separation makes troubleshooting more reliable. If the metadata result is incorrect, investigate your website implementation. If it is correct but the preview differs, investigate the downstream service rather than repeatedly editing an already-correct tag.
Frequently Asked Questions
Does og:title improve Google rankings?
The Open Graph specification defines og:title as metadata for describing an object within the graph. It does not establish that this property is a direct Google ranking factor. Do not treat adding it as a guaranteed ranking improvement.
Can og:title be different from the HTML title?
Yes. The HTML title describes the document, while og:title supplies the intended Open Graph title. They can contain the same wording or different wording, provided both accurately represent the page.
Where should I put meta property="og:title"?
Place the declaration inside the HTML document's <head> element, not in the visible body content.
Is og:title required for Open Graph?
Yes. The official Open Graph Protocol lists og:title among its four required basic properties, alongside og:type, og:image, and og:url.
Can I use the same og:title on multiple pages?
You can technically provide the same value, but it is generally more useful to supply an accurate, page-specific title. Repeating a generic value can make different shared links harder to distinguish.
Why does my social-sharing preview show an old title?
The service may be displaying previously retrieved information or may not yet have processed the latest page version. Check the current published HTML first, then investigate the relevant platform's preview-refresh or debugging process. There is no universal refresh time that applies to every service.
Do I need an SEO plugin to add og:title?
No. You can add the declaration directly to your HTML template or use a CMS feature or plugin that generates Open Graph metadata. The important part is verifying the final published HTML.
Final Thoughts
The meta property="og:title" declaration is a small part of your HTML, but it serves an important purpose: supplying a clear title for an Open Graph object when a webpage is shared.
Implement it in the document head, use an accurate page-specific value, and keep its purpose separate from the ordinary HTML title and og:url.
Most importantly, verify the published source rather than assuming that a CMS setting has produced the expected result. If the source is correct but a sharing preview is not, investigate the external service separately.
That simple distinction between metadata configuration and preview retrieval gives you a more reliable way to add, check, and fix Open Graph titles.