Meta Description for SEO in HTML: What It Is and How to Use It
meta description in HTML is a short summary of a webpage's content placed inside the <head> section using a meta tag with the attribute name="description". It helps search engines understand the page and often appears as the snippet below the page title in search results, improving SEO by attracting clicks.How It Works
Think of the meta description as a short, friendly note that tells search engines and people what your webpage is about. It lives in the <head> part of your HTML, so it’s not visible on the page itself but is read by search engines like Google.
When someone searches for something related to your page, search engines often show this description below the page title in the search results. This snippet helps users decide if your page matches what they want, much like a book’s back cover summary helps you decide if you want to read it.
By writing a clear and relevant meta description, you can make your page more attractive in search results, which can lead to more visitors clicking your link.
Example
This example shows how to add a meta description to an HTML page. It summarizes the page content in a concise sentence.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Learn how to use meta descriptions in HTML to improve your website's SEO and attract more visitors."> <title>Meta Description Example</title> </head> <body> <h1>Welcome to SEO Basics</h1> <p>This page explains meta descriptions for SEO.</p> </body> </html>
When to Use
Use a meta description on every webpage you want to appear in search engines. It is especially important for pages you want to rank well and attract visitors, like your homepage, product pages, or blog posts.
Good meta descriptions help users quickly understand your page’s topic and encourage them to click your link instead of others. Avoid leaving it blank or copying content from the page because search engines may generate their own snippet, which might not be as clear or appealing.
Key Points
- The meta description is a short summary placed in the HTML
<head>section. - It helps search engines and users understand your page content.
- It often appears as the snippet in search results, influencing click rates.
- Keep it concise, clear, and relevant to the page.
- Use unique descriptions for each page to improve SEO.