Skip to main content

How to Write Meta Tags That Help Search Engines Find Your Website

What meta tags are and why they matter for your site

Meta tags are short lines of code in the head section of a webpage that tell search engines what your page is about. They do not appear on the page itself—only in the code behind it. Search engines like Google read these tags to understand your content, decide whether it matches what someone searched for, and sometimes display snippets of your page in search results.

The two meta tags that affect search visibility most directly are the title tag and the meta description. The title tag appears as the clickable headline in search results and in browser tabs. The meta description is the short summary text that appears below the title in search results. Both influence whether someone clicks through to your site.

Other meta tags tell search engines how to treat your page—whether to index it, whether to follow links on it, and how often to check back for updates. Getting these right does not may provide high search rankings, but getting them wrong can prevent search engines from finding and displaying your pages at all.

Key Takeaways

  • The title tag and meta description are the two meta tags that appear in search results and directly affect click-through rates.
  • Title tags should be 50 to 60 characters long and include your main keyword near the beginning so search engines and users see it first.
  • Meta descriptions should be 150 to 160 characters and summarize what visitors will find on the page in plain language.
  • The robots meta tag tells search engines whether to index your page and follow its links, and should be set to "index, follow" for pages you want found.
  • Every page on your site should have its own unique title tag and meta description rather than using the same text across multiple pages.

Writing an effective title tag

The title tag is the first thing search engines read about your page, and it is the text that shows up as the clickable link in search results. Keep it between 50 and 60 characters so it displays fully on most devices without being cut off. If your title is longer, search engines will truncate it with an ellipsis, and users will not see the end.

Place your most important keyword or phrase near the beginning of the title. If someone searches for "Italian restaurants in Charleston," a title that starts with "Italian Restaurants in Charleston" performs better than one that buries that phrase at the end. Include your business or site name at the end if space allows, separated by a dash or pipe symbol. For example: "Italian Restaurants in Charleston | Trattoria Guide" tells both search engines and users what the page covers and who published it.

Avoid keyword stuffing—repeating the same word over and over to try to rank higher. Search engines penalize this practice, and it makes your title look unprofessional to human readers. Write for people first, then make sure search engines understand what you wrote.

Writing a meta description that gets clicks

The meta description is your chance to convince someone in a search result to click through to your page instead of a competitor's. Keep it between 150 and 160 characters so it displays fully on desktop and mobile devices. Longer descriptions get cut off, and users will not see your complete message.

Write a clear, accurate summary of what visitors will find on the page. If your page is about hiking trails near Greenville, your description might read: "Explore 12 scenic hiking trails near Greenville with difficulty ratings, trail maps, and parking information." This tells the reader exactly what to expect and includes words they may have searched for.

Do not repeat your title tag word-for-word in the meta description. Use it as an opportunity to add new information and context. If your title is "Best Hiking Trails Near Greenville," your description can expand on that by mentioning specific features like difficulty levels, distance, or what you will see along the way.

The robots meta tag and indexing

The robots meta tag tells search engines whether to index your page (add it to their database) and whether to follow links on that page. For most pages on your site, you want this set to "index, follow," which means search engines should add the page to their index and follow any links on it to discover other pages.

You might use "noindex, follow" for pages you do not want to appear in search results—like thank-you pages after a form submission, duplicate content, or pages under construction. You might use "noindex, nofollow" for pages that are private or temporary and should not be indexed or used to discover other pages.

If you do not include a robots meta tag, most search engines assume "index, follow" by default. You only need to add this tag if you want different behavior for a specific page.

Other useful meta tags for search and display

The viewport meta tag tells browsers how to display your page on mobile devices. It should read: <meta name="viewport" content="width=device-width, initial-scale=1">. This ensures your page scales properly on phones and tablets rather than appearing tiny or requiring horizontal scrolling.

The charset meta tag specifies which character encoding your page uses, almost always UTF-8. This ensures special characters, accents, and symbols display correctly. Include it near the top of your page head: <meta charset="UTF-8">.

The Open Graph meta tags control how your page appears when someone shares it on social media like Facebook or LinkedIn. You can set a custom image, title, and description for social sharing that may differ from your search result snippet. These tags start with og: and help your content look professional when shared.

Common mistakes to avoid

Do not use the same title tag and meta description on every page of your site. Each page should have unique tags that describe its specific content. Search engines may penalize duplicate meta tags, and users will not understand why multiple pages look identical in search results.

Do not write meta tags for search engines alone. Remember that real people read these snippets and decide whether to click. A title or description stuffed with keywords but unclear to humans will have a low click-through rate even if it ranks well.

Do not assume your meta tags will stay the same forever. As your content changes or your business priorities shift, update your tags to match. A page that once covered a seasonal topic may need a new description when that season ends.

How to check and update your meta tags

To see the meta tags on any page, right-click the page in your browser and select "View Page Source" or "Inspect." Search for the word "title" or "description" to find these tags in the code. You can also use free online tools like Screaming Frog or MozBar to crawl your site and show you all title tags and meta descriptions at once, making it easy to spot duplicates or missing tags.

If you use a content management system like WordPress, Wix, or Squarespace, you usually do not need to edit the code directly. These platforms have fields where you can type your title tag and meta description for each page, and the system inserts the code for you. Look for a section labeled "SEO," "Search Engine Optimization," or "Page Settings" when editing a page.

After you update your meta tags, search engines do not immediately re-crawl your site. It may take days or weeks for Google to notice the changes. You can speed this up by submitting your site to Google Search Console, which lets you request that Google re-crawl specific pages.

Frequently Asked Questions

Do meta tags may provide that my page will rank high in search results?

No. Meta tags help search engines understand your content and influence whether your page appears in results at all, but they are one factor among many. Search ranking also depends on the quality and relevance of your actual page content, how many other sites link to you, page speed, mobile-friendliness, and many other signals. Well-written meta tags are necessary but not sufficient for high rankings.

What happens if I do not write a meta description?

Search engines will automatically generate a snippet from your page content to display in search results. This auto-generated snippet may not be as clear or compelling as one you write yourself, and it might cut off mid-sentence or include irrelevant text. Writing your own meta description gives you control over how your page appears in search results.

Can I use the same meta description for multiple pages?

You can, but you should not. Each page should have a unique description that accurately reflects its specific content. Duplicate descriptions confuse search engines and make it harder for users to understand the difference between pages in search results. If multiple pages cover similar topics, write descriptions that highlight what makes each one distinct.

How long should my title tag be?

Aim for 50 to 60 characters, including spaces. This length displays fully on most desktop and mobile search results without being cut off. If your title is shorter, that is fine—there is no minimum. If it is longer, search engines will truncate it, and users will not see the complete title.

Should I include my business name in every title tag?

Include it if you have room and it adds value. For your homepage, including your business name makes sense. For interior pages, prioritize the page topic over your business name. For example, "Hiking Trails Near Greenville" is more useful than "Hiking Trails Near Greenville | My Outdoor Company" if space is limited. You can always include your business name at the end if there is room.