HTML & Meta Tags

Posted on

Definition and Usage of Meta Tags :-

Meta data is the data about the web pages which provide the information of data which is in the website. The <meta> tag provides data about the HTML page with use of keywords. It’s not display on the website page. Meta tell the search engine about the web pages  with help of, keywords, author of the document, last modified, and other metadata.

They used by browsers,search engines or other web services.

HTML <meta> Tag

<head>
<meta charset=”UTF-8″>
<meta name=”description” content=”techno campus “>
<meta name=”keywords” content=”words with comas”>
<meta name=”author” content=”Education center”>
</head>

Tips and Notes

Note: <meta> tags should be in <head> element.

Note: name/value passed by metatag.

Differences Between HTML 4.01 and HTML5

The scheme of  attribute is not supported by HTML5.

HTML5 have attribute like charset, which is use to describe charset:

  • HTML 4.01: <meta http-equiv=”content-type” content=”text/html; charset=UTF-8″>
  • HTML5: <meta charset=”UTF-8″>

Differences Between HTML and XHTML

In HTML the <meta> tag has no end tag.

In XHTML we are use to end the meta tag.

Examples

How to Define keywords for search engines:

<meta name=”keywords” content=”ae, asea, saas, assad, aaasadsa”>

How to Define a description of your web page:

<meta name=”description” content=”Free Web tutorials on HTML and CSS”>

How to  Define the author of a page:

<meta name=”author” content=”Hege Refsnes”>

How to  Refresh document every 30 seconds:

<meta http-equiv=”refresh” content=”30″>

Attributes

Attribute Value Description
charset character_set It Specifies the character for the HTML document
content text It Gives the value with the name attribute
http-equiv content-type
default-style
refresh
Provides an HTTP header for the information/value of the content attribute
name application-name
author
description
generator
keywords
Specifies a name for the metadata

Global Attributes

The <meta> tag also supports the Global Attributes in HTML.

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.

Helpline: 9814666333, 8699444666

Email:info@technocampus.co.in

**************************************************************************************************************

Please fill the FORM and we shall contact you soon.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s