Basics 3 : Meta Tags
  BACK   Home NEXT | Colours 

Table of Contents


The Word "META".What's This Word Mean?

Meta is a prefix which means "behind" or "not visible". Meta implies the hidden part of something that has an effect. Consider "meta" as a prefix in the word metaphysics, the study of the non-physical universe.

Important Notes:

Recommended Tags

Meta Content Type
Meta Description
Meta Keywords
Meta Language (non-US English ONLY)
Meta Content Language(non-US English ONLY)

 TOP

Meta Content Type:

To delcare the character set. It is now recommended to always use this tag.

Example:

<meta http-equiv="Content-Type"content="text/html;charset=iso-8859-1">

META for Search Engines

When search engines index and display information from your web page, they use two types of <META ...> tags:
DESCRIPTION and KEYWORDS.

 TOP

Meta Description Tag:

In the main page, give a short, plain language summary of your site. In other files, give a short description of the document.

Example

<meta name="description" content="html, css, Microsoft Word, EXCEL, coding - .">

 TOP

Meta Keywords Tag:

Utilize titles and headings. Make sure your META Keywords Tag is relevant to the content on your page.

Example :

<meta name="keywords" content="HTML,CSS,EXCEL,Microsoft Word. ">

When someone does a search on one of these words, your page will be in the listing.

Content-Language

<meta http-equiv="content-language" content="en-us,gb">
Declares the primary natural language(s) of the document. May be used by search engines to categorize by language. For instance:

<html lang="en-US">
...
<html lang="en-GB">
...
NOTE:

If you are writing in a right-to-left language like Arabic, you should add the dir="rtl" attribute.

 TOP

Switching Languages

If you switch languages within one page, you can embed the <lang=> attribute in other tags such as a <p>, <h1>.

For instance:

Arabic,Egypt
<p lang="ar-EG">

Some Common Language Codes

European Languages

en: English
es: Spanish
fr: French
it: Italian
pt: Portuguese
de: German
ru: Russian

Non-European Languages

ar: Arabic
zh: Chinese
ja: Japanese
ko: Korean

By Country

Until recently, languages were distinguished by attaching a country code after it.

Examples:

en-US: American English
en-GB: British English
fr-FR: Parisian French (France)
fr-CA: Canadian French
ar-EG: Egyptian Arabic