Every page needs a charset, a viewport, a clear title, a meta description, a canonical link and Open Graph tags for social sharing. Add robots only when you need to change the default. Skip the keywords meta tag: Google has ignored it for years. Below is a copy-and-paste head section you can adapt for any site.
Meta tags are small lines of code in the <head> of a page. Visitors never see them, but search engines, browsers and social networks read them to decide how your page is shown. In Google's own words, clients process the meta tags they support and ignore the rest.
Get them right and your pages look clean in search results and in every shared link. Get them wrong and you can hide a page from Google by accident.
The starter head section
This is the base I'd start from on almost any page. Replace the example values with your own:
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Handmade Leather Wallets | Example Store</title>
<meta name="description" content="Slim leather wallets, hand-stitched in small batches. Free shipping over $50.">
<link rel="canonical" href="https://example.com/wallets?utm_source=engineerkamalkumar.in&utm_medium=blog&utm_campaign=html-meta-tags-guide">
<meta property="og:type" content="website">
<meta property="og:title" content="Handmade Leather Wallets">
<meta property="og:description" content="Slim, hand-stitched leather wallets.">
<meta property="og:url" content="https://example.com/wallets">
<meta property="og:image" content="https://example.com/images/wallets.jpg">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
</head> Now, what each line does and the mistakes to avoid.
1. Charset and viewport
charset="utf-8" tells the browser how to read your text, so characters like ₹, é or emoji display correctly. Put it first in the head.
The viewport tag tells browsers how to fit the page on a phone screen. Google notes that it also signals the page is mobile-friendly. Without it, phones show a tiny desktop page that visitors have to pinch and zoom.
2. The title tag
Strictly speaking, <title> isn't a meta tag, but it's the most important line in the head. It's usually what people see as the clickable headline in search results.
There's no official length rule. Google says there's no limit on how long a title element can be, but it truncates title links in results as needed to fit the device width. Google also builds title links from other sources, such as the main headline on the page and <h1> elements, so keep your title and H1 consistent.
Good practice: put the most important words first, give every page a unique title, and add your brand at the end.
3. The meta description
<meta name="description" content="Slim leather wallets, hand-stitched in small batches. Free shipping over $50."> The description is your pitch in search results. Google sometimes uses it for the snippet when it describes the page better than text pulled from the page itself. Google says there's no length limit, but snippets get truncated to fit the device.
Write a specific, useful summary for each page. Avoid lists of keywords and avoid copying the same description across many pages.
4. Robots: only when you need it
The robots tag controls whether search engines index a page and follow its links. The default is index, follow, so you don't need to add it to normal pages.
<!-- Keep a page out of search results -->
<meta name="robots" content="noindex">
<!-- Allow large image previews in Google -->
<meta name="robots" content="max-image-preview:large"> Use noindex for thank-you pages, internal search results and private pages. If a page has conflicting robots tags, Google applies the more restrictive one.
Common mistake: a noindex left over from a staging site. It quietly removes pages from Google after launch, so check it on every new site.
5. The canonical link
<link rel="canonical" href="https://example.com/wallets?utm_source=engineerkamalkumar.in&utm_medium=blog&utm_campaign=html-meta-tags-guide"> When the same page is reachable at several addresses, such as with tracking tags, filters or with and without "www", the canonical link tells search engines which address is the main one. Use the full URL and point it to the version you want in search results.
Shopify and most WordPress SEO plugins add canonical links automatically. Still check them after a redesign or migration, because a wrong canonical can send all your ranking signals to an old or broken page.
6. Open Graph and X cards for social sharing
Open Graph tags control the title, description and image shown when someone shares your link on LinkedIn, Facebook or WhatsApp. X reads them too, plus its own twitter:card tag.
- og:title and og:description: can be shorter and catchier than your search title.
- og:image: use an absolute URL. A 1200 × 630 pixel image is the common choice and looks sharp on most networks.
- og:url: should match your canonical URL.
- twitter:card:
summary_large_imageshows a big image preview.
If you change the image later, social networks may keep the old one. Adding a version to the image link, such as wallets.jpg?v=2, makes them fetch the new one.
7. Author and ownership tags
<meta name="author" content="Kamal Kumar">
<link rel="author" href="/humans.txt"> The author meta tag isn't on Google's list of supported tags, so don't expect it to help rankings. It's still useful for browsers, tools and anyone reading your source code.
For search engines, what matters more is a visible byline on the page and an author property in your Article structured data. Together they show who wrote the content and why they're worth trusting.
Tags you can skip
- Keywords meta tag: Google confirmed back in 2009 that it doesn't use it for ranking, and its current documentation says it has no effect on indexing or ranking at all.
- rel="prev" and rel="next": Google no longer uses these links.
- Meta refresh redirects: not all browsers support them and they can confuse visitors. Google recommends a server-side 301 redirect instead.
A quick checklist before launch
- Every page has a unique title and description.
- No stray
noindexon pages you want found. - Canonical links use the final, live URL.
- Share images are 1200 × 630 and load over https.
- Meta tags are in the HTML itself, not added later by JavaScript. Google advises avoiding JavaScript-injected meta tags where possible.
- Test a few pages with the URL Inspection tool in Google Search Console and a social preview checker.
Meta tags work best alongside the rest of your site. For what else helps a store get found, see how AI search engines find websites, and if you're choosing a platform, the best WordPress page builders for 2027.
Frequently asked questions
Which meta tags are most important for SEO?
The title tag and meta description shape how your page looks in results, the robots tag controls indexing, and the canonical link prevents duplicate URLs. Charset and viewport are essential for every page.
Does Google use the keywords meta tag?
No. Google said in 2009 that it doesn't use the keywords meta tag in web ranking, and its current documentation says the tag has no effect on indexing or ranking.
How long should a meta description be?
Google says there's no length limit, but it truncates snippets to fit the device. Write one or two clear sentences with the most important information first.
Can you check the meta tags on my website?
Yes. I audit and fix meta tags, canonical links, social previews and structured data on Shopify, WordPress and custom sites. Call or WhatsApp +91 98779 67302.
Sources
- Google Search Central: meta tags and attributes that Google supports
- Google Search Central: influencing your title links
- Google Search Central: control your snippets
- Google: we do not use the keywords meta tag in web ranking (September 21, 2009)
- Google: max-snippet and max-image-preview controls (September 2019)
- The Open Graph protocol




