Inserting Meta Information

Inserting Meta Information (provided by Doris Yee)

Meta tags go in the head of your HTML page. Basically, they identify your site, its contents, its author, and so forth to search engines and such.


<html>

     <head>
     <!--information about the page-->

     </head>

     <body>
     <!--information on the page-->
     </body>

</html>

Generally, you should put your meta tags under your title in the head of your HTML code.

The Title tag

Okay, almost all meta tags use the <meta name=""> format. Or, a more accurate way to look at it is, the title tag isn’t a meta tag at all. However, it serves a “meta” function, to a degree. Your title, which goes here:


<head>
   ...
   <title>My Site Title</title>
   ...
</head>

Meta Keywords

One meta tag is keywords. Here’s what a dummy meta keywords tag might look like:


<meta name="keywords"  content="keyword, another keyword, a key phrase">

Note that the selected key words, and phrases, are separated by commas and a space. How do you choose your keywords? Think of words and phrases that describe your Web site. Since this site is about Web design for beginners, I chose some words and phrases that describe my site. Hopefully, people who enter these words or phrases into Google or whatever will find my site.

Be very careful to avoid anything that might resemble “keyword stuffing,” or repeating and re-using the same words and phrases over and over again. While search engines used to ban sites for keyword stuffing and other abusive practices, they no longer take it as seriously. Still, it is anything but best practice, and may lead to problems for both you and your site.

And don’t put too much stock in keywords. Most modern search engines either ignore them entirely, or place little weight on them in ranking your site.

Meta Description

This is a brief (1-2 sentences) description of your site. It should reiterate the same keywords that are used in your other meta tag, again without “stuffing” the words by repeating them over and over again. This is most important because many search engines (not Google, sadly) use your description for your site when it pops up on their search results.


<meta name="description" content="Insert your description here!">



© 2011. All Rights Reserved

TopTop