meta name=

1940 pts.
Tags:
HTML
Web development
Hi everyone, Can someone tell me the best use of Meta tags in .html pages. Currently I put mine on all of my pages, copied from the index page and pasted on all the others, but here is my question. Is it better to have them just on your index (main) page and use the meta name="robots" content="index, follow" tag or is it really a benefit to have them on all pages? Thank you for your assistance in this matter.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Example

Describe metadata within an HTML document:
<head>
<meta name=”description” content=”Free Web tutorials” />
<meta name=”keywords” content=”HTML,CSS,XML,JavaScript” />
<meta name=”author” content=”Hege Refsnes” />
<meta http-equiv=”Content-Type” content=”text/html;charset=ISO-8859-1″ />
</head>

Definition and Usage: Metadata is information about data.

The <meta> tag provides metadata about the HTML document. Metadata will not be displayed on the page, but will be machine parsable.

Meta elements are typically used to specify page description, keywords, author of the document, last modified, and other metadata.

The <meta> tag always goes inside the head element.

The metadata can be used by browsers (how to display content or reload page), search engines (keywords), or other web services.

Differences Between HTML and XHTML: In HTML the <meta> tag has no end tag. In XHTML the <meta> tag must be properly closed.

Note: Metadata is always passed as name/value pairs.

Standard Attributes

The <meta> tag supports the following standard attributes:

Attribute Value Description DTD
dir rtl/ltr Specifies the text direction for the
content in an element STF
lang language_code Specifies a language code for the content in an
element STF
hope it will help u !

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    So, "Is it better to have them just on your index (main) page and use the meta name="robots" content="index, follow" tag or is it really a benefit to have them on all pages?"
    70,200 pointsBadges:
    report
  • TheFinder
    Aftrer re-reading the msg. Rechil posted it sounds like it's better to have them on all pages. Thanks Rechil.
    1,940 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following