1 / 7

The Meta Tag

The Meta Tag. Tony Johnson 8/12/97 WSC meeting. Meta Tag. Definition Examples Use of http-equiv Use with Search Engines Other uses?. Meta Tag Definition (from W3C).

teigra
Download Presentation

The Meta Tag

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Meta Tag Tony Johnson 8/12/97 WSC meeting

  2. Meta Tag • Definition • Examples • Use of http-equiv • Use with Search Engines • Other uses?

  3. Meta Tag Definition (from W3C) • The META element can be used to include name/value pairs describing properties of the document, such as author, expiry date, a list of key words etc. The NAME attribute specifies the property name while the CONTENT attribute specifies the property value, e.g. • <META NAME="Author" CONTENT="Dave Raggett"> • The HTTP-EQUIV attribute can be used in place of the NAME attribute and has a special significance when documents are retrieved via the Hypertext Transfer Protocol (HTTP). HTTP servers may use the property name specified by the HTTP-EQUIV attribute to create an RFC 822 style header in the HTTP response. This can't be used to set certain HTTP headers though, see the HTTP specification for details. • <META HTTP-EQUIV="Expires" CONTENT="Tue, 20 Aug 1996 14:25:27 GMT"> • will result in the HTTP header: • Expires: Tue, 20 Aug 1996 14:25:27 GMT • This can be used by caches to determine when to fetch a fresh copy of the associated document.

  4. Meta Tag Example • Typical HTML page generated by Frontpage • <head> • <meta http-equiv="Content-Type” • content="text/html; charset=iso-8859-1"> • <meta name="GENERATOR" content="Microsoft FrontPage 2.0"> • <title>HEPVIS 98</title> • <meta name="FORMATTER" content="Microsoft FrontPage 2.0"> • </head> • Net effect - zilch

  5. Meta tag with http-equiv • Any http tag can be specified using meta tag, but not many very useful. • Don’t use in cgi scripts - specify http header directly. • Preventing pages which may changed from being cached • <meta http-equiv=“Expires” content=“Tue, 20 Aug 1996 14:25:27 GMT”> • Redirection of obsolete HTML pages. • <meta http-equiv="Refresh" content="2; url=new.html”> • Use with frames: • <META HTTP-EQUIV="Window-target" CONTENT="_top"> • Beware: All uses non-standard and subject to browser/server capabilities.

  6. Meta Tags with Search Engines • Some search engines (Alta Vista, Infoseek, Harvest?) support the use of Meta tags: e.g. • <META NAME="description" CONTENT="Demonstrations Of Advanced HTML"> • <META NAME="keywords" CONTENT="HTML,Advanced,Search,Floating Frames"> • <META NAME="robots" CONTENT=”noindex,nofollow”> • Because these tags are non standard and widely abused some search engines ignore them totally, and others will ignore them if, for example, they contain many or repeated keywords.

  7. References • HTML 3.2 reference at w3c • http://www.w3.org/TR/REC-html32.html#meta • Advanced HTML • http://www.dananeda.demon.co.uk/html/advancedhtml.htm#Meta • Info on META tag (detailed) • http://vancouver-webpages.com/META/

More Related