Home > Articles > Web Development

  • Print
  • + Share This
From the author of Trick #4: Tweak Your <META> Tags

Trick #4: Tweak Your <META> Tags

A search engine looks not just to the text that visitors see when trying to determine the content of your site. Also important is the presence of keywords in your site's HTML code—specifically within the <META> tag.

The <META> tag includes metadata about your site, such as your site's name and keyword "content." This tag appears in the head of your HTML document, before the <BODY> tag and its contents.

It's easy enough for a search engine to locate the <META> tag and read the data contained within. If a site's metadata is properly indicated, this gives the search engine a good first idea about what content is included on this page.

Fortunately, you can insert multiple <META> tags into the head of your document, and each tag can contain a number of different attributes. For example, you can assign attributes for your page's name, a description, and keywords to the <META> tag.

You use separate <META> tags to define different attributes using the following format:

<META NAME="attribute" CONTENT="items">

For example, to include a description of your web page, enter this line of code:

<META NAME="DESCRIPTION" CONTENT="All about stamp collecting">

To include a list of keywords, use the following code:

<META NAME="KEYWORDS" CONTENT="keyword1, keyword2, keyword3">
  • + Share This
  • 🔖 Save To Your Account