Defining Meta Tag Keywords in HTML

Defining Meta Tag Keywords

With meta tags, you can define such document properties as the author, the expiration date, document keywords, and descriptions.

Search engines can use this information to index your HTML page and to return your page when someone does a search on subjects matching the keywords you have defined in your HTML page.

Add the name attribute to the <meta> tag and set it equal to “keywords”

<html>
<head>
<title> Free learning for beginners </title>
<meta name=“keywords”>
</head>
<body>
</body>
</html>

For add Keywords, add the content attribute. Set the content attribute by adding a list of keywords pertinent to your page’s:

<html>
<head>
<title>HTML in 10 Simple Steps or Less</title>
<meta name=“keywords” content=”HTML,HTML tutorials,CSS Tutorials”>
</head>
<body>
</body>
</html>

Because the <meta> tag is an empty tag, you want to make sure that the code is both XHTML-compliant and still recognizable to browsers that don’t yet support XHTML. To do that, conclude the tag with a forward slash (/), placing a space between the last entry in the tag and the forward slash:

<meta name=“keywords” content=“HTML,HTML tutorials,CSS Tutorials” />