HTML Keywords Meta Tag

The HTML keywords meta tag is used to specify a list of keywords related to a webpage. These keywords are added inside the <head> section of an HTML document using the <meta> element.

In the past, some search engines used the keywords meta tag to help understand page topics. Today, major search engines such as Google do not use it for web search ranking. Understanding this tag is still useful when learning HTML metadata and maintaining older websites.

In this tutorial, you will learn what the HTML keywords meta tag is, how to write it, and whether it is useful for modern SEO.

What Is the HTML Keywords Meta Tag?

The keywords meta tag provides a list of terms associated with the content of a webpage.

For example:

<meta name="keywords" content="HTML, CSS, JavaScript, web development">

Here, the name="keywords" attribute identifies the metadata type, while the content attribute contains the list of keywords.

The keywords meta tag is placed inside the HTML <head> element, alongside other metadata such as the page title and description.

To understand where this tag belongs, read our guide to the HTML Head.

HTML Keywords Meta Tag Syntax

The basic syntax is:

<meta name="keywords" content="keyword1, keyword2, keyword3">

You can separate keywords using commas.

For example:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Tutorial</title>
    <meta name="keywords" content="HTML tutorial, HTML basics, web development">
</head>
<body>
    <h1>Learn HTML</h1>
    <p>Start learning HTML with practical examples.</p>
</body>
</html>

This example includes the keywords meta tag along with the character encoding, viewport settings, and page title.

For more metadata examples, see our HTML Meta Tags tutorial.

Why Was the Keywords Meta Tag Used?

Website owners historically added keywords to help search engines identify the main subjects of their pages.

For example, a tutorial about HTML forms might have included:

<meta name="keywords" content="HTML forms, form elements, input fields, form validation">

However, the tag was widely abused through keyword stuffing and the inclusion of irrelevant search terms. As a result, major search engines stopped relying on it for ordinary web search ranking.

Does the Keywords Meta Tag Help SEO Today?

For Google web search, the answer is no. Google explicitly states that the meta keywords tag does not affect web search ranking.

Adding this tag is therefore unnecessary for improving your Google rankings. You should focus on content that satisfies users’ needs instead.

Useful SEO practices include:

  • Writing a descriptive page title.
  • Creating helpful, original content.
  • Using clear headings and logical page structure.
  • Writing a relevant meta description.
  • Linking related articles naturally.
  • Making the website easy to navigate.

For example, our HTML Title tutorial explains how to create meaningful titles, while the HTML Description tutorial covers meta descriptions.

Keywords Meta Tag vs. Meta Description

Both are metadata, but they serve different purposes.

FeatureKeywords Meta TagMeta Description
HTML syntax<meta name="keywords"><meta name="description">
ContentList of related termsSummary of the webpage
Google rankingNot used for web search rankingNot a direct ranking factor
Search result displayNot normally displayedMay be used as a search snippet
Modern SEO valueGenerally unnecessary for Google SEOCan help users understand the page

The meta description is more useful for communicating the page’s content to potential visitors, although search engines may generate their own snippets.

Best Practices for HTML Keywords

If you maintain a legacy website or a system that specifically uses the keywords meta tag, follow these guidelines:

  • Include only relevant terms.
  • Avoid repeating keywords excessively.
  • Do not add unrelated popular search terms.
  • Do not expect the tag to improve Google rankings.
  • Prioritize useful page content and appropriate metadata.

For most new websites, you can safely omit the keywords meta tag unless a specific platform or application requires it.

Frequently Asked Questions

Is the HTML keywords meta tag still used?

It exists in HTML and may be used by some specialized systems, but it is not used by Google for web search ranking.

Should I add keywords to every webpage?

You generally do not need to add a keywords meta tag for modern Google SEO. Focus instead on the page’s actual content and relevant metadata.

Does the keywords meta tag appear on the webpage?

No. It is metadata placed inside the <head> section and is not normally displayed as visible page content.

Is the keywords meta tag the same as the meta description?

No. The keywords tag lists terms associated with a page, while the description tag provides a short summary of the page’s content.

Can keyword stuffing improve SEO?

No. Repeating keywords unnaturally is not a reliable SEO strategy. Create clear, useful content that answers the reader’s question.