homepage Welcome to WebmasterWorld Guest from 107.20.25.215
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Which Meta tags do you use.
Post your <head> to </head>
PumpkinHead




msg:354086
 2:05 pm on Sep 1, 2005 (gmt 0)

Interested in the meta tags that you all use, so feel free to post the standard meta tags that you use on your sites...

Heres mine:

<HEAD>
<title>page title</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="keywords" content="widgets">
<META name="Description" content="description">
<META name="robots" content="index,follow">
<META name="copyright" content="my site url">
<META name="author" content="me">
<META name="distribution" content="global">
<META name="rating" content="general">
<LINK REL="SHORTCUT ICON" href="http://www.mysite.com/favicon.ico">
<LINK REL=STYLESHEET TYPE="text/css" HREF="folder/style.css" TITLE="style sheet">
</HEAD>

 

encyclo




msg:354087
 3:44 pm on Sep 1, 2005 (gmt 0)

My recommendation:

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

Should be before the <title></title> otherwise the title text might not be displayed in the right charset (although if you are only writing English this is rarely a problem). You can also set the charset server-side and omit the meta tag altogether.

<META name="keywords" content="widgets">
<META name="description" content="description">

That's fine.

<META name="robots" content="index,follow">

Unneccessary as this is the default for all spiders.

<META name="copyright" content="my site url">
<META name="author" content="me">
<META name="distribution" content="global">
<META name="rating" content="general">

Have no real use so you could get rid of these. A PICS label meta might be useful, but that's all.

Add some quotes around "stylesheet", put the attributes in lower case to be 100% certain, and you get:

<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>page title</title>
<META name="keywords" content="widgets">
<META name="description" content="description">
<LINK REL="shortcut icon" href="http://www.example.com/favicon.ico">
<LINK REL="stylesheet" TYPE="text/css" HREF="folder/style.css" TITLE="style sheet">
</HEAD>

I wouldn't go for any more than that - stuff other than the basic meta tags are not really worth anything - best to concentrate on what you've got on the page itself. :)

g1smd




msg:354088
 10:35 pm on Sep 2, 2005 (gmt 0)


Your document should begin with a !DOCTYPE (this tells the browser what sort of HTML is in the file) followed by the <html> and <head> tags:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

For your page to actually be valid you MUST declare the character encoding (lets the browser know whether to use A to Z letters (latin), or Chinese, Japanese, Thai, or Arabic script, or some other character set) used for the page, with something like:

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

There are also other schemes such as UTF-8 and many others.

It is also a good idea to declare what human language the page is in, using:

<meta http-equiv="Content-Language" content="EN-GB">

The language and country codes come from ISO 4217 and ISO 3166. This is useful for online translation tools as well. Change the "en" and "gb" to whatever language and country you need.

You need a <title> element for the page:

<title> Your Title Here </title>

This is displayed at the top of the browser window, and stored as the name of the bookmark if someone bookmarks the page URL in their browser. Most importantly, it is the <title> tag that is indexed and displayed by search engines in the search results page (SERPs).

You need the meta description tag, as this is very important for search engines, and it is useful but not vital to have a meta keywords tag:

<meta name="Description" content=" Your Description Here. ">
<meta name="Keywords" content=" your, keyword, list, here ">

Most search engines do obey the robots meta tag. The default robots action is index, follow (index the page, follow all outbound links) so if you want something else (3 possibilities) then add the robots tag to the page in question. If you want to exclude whole directories then use the robots.txt file for this instead of marking every HTML file with the tag.

<meta name="robots" content="noindex,follow">

The last parts of your header should have your links to external style sheets and external javascript files:

Use this if the stylesheet is for all browsers:

<link type="text/css" rel="stylesheet" src="/path/file.css">

Use this for style sheet that you want to hide from older browsers, as older browsers often crash on seeing CSS:

<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"> @import url(/path/file.css); </style>

Use this for the javascript:

<script type="text/javascript" language="javascript" src="/path/file.js"></script>

End the header with this:

</head>
<body>

and then continue with the body page code.

It is as simple as that.


Code within the page:

I use: <a href="somepage.html" title="some text here"></a> for links.

I use <img src="somefile.png" alt="some text"> for images.

Headings are done with <hx></hx> tags, properly used from <h1></h1> downwards.

JKMitchell




msg:354089
 8:20 pm on Sep 4, 2005 (gmt 0)

<META name="copyright" content="my site url">

From a legal point of view this has no standing, a url can not own copyright. If you replace the content with your name or business name (or that of your clients) it would be technically correct - even though it is really meaningless as you do not have to state that you own the copyright (see the Berne Convention for more details).

robotsdobetter




msg:354090
 8:31 pm on Sep 4, 2005 (gmt 0)

I see all Meta tags as a waste of time. The only Meta tags that I would ever use would be the Keyword and Description tags, all the rest are useless.

g1smd




msg:354091
 11:16 pm on Sep 4, 2005 (gmt 0)

Sorry, but that is just not true.

Your document isn't a valid HTML document without a charset declaration, and the <title> tag is the most important of all the tags in the <head> section.

The meta description is important for SEO, and for helping visitors if the text is used as the snippet in the SERPs, but the keywords is very unimportant these days.

You'll also need to link to any CSS and JS files, and you might need a meta robots exclusion on some pages too.

Stuart_S




msg:354092
 11:42 pm on Sep 4, 2005 (gmt 0)

<HTML LANG=en-US>
<HEAD>
<META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-9">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<TITLE>My Meaty Meta</TITLE>
<LINK REV="made" href="mailto:foo@keyword1-keyword2-keyword3.com">
<META NAME="keywords" CONTENT="Meta spam, lots ,too many, etc.">
<META NAME="description" CONTENT="Bunch of Foo FooBar! foobar, foo-bar and Fobar for fooobar">
<META NAME="author" CONTENT="Mr./Mrs./Ms. Foo-Bar-FooBar">
<META NAME="ROBOTS" CONTENT="PLEASE">
<META HTTP-EQUIV="PRAGMA" CONTENT="please-cache">
<META NAME="MSSmartTagsPreventParsing" content="PAYMEFIRST">
<META NAME="audience" content="AnyWhoListen">
<META NAME="rating" content="All">
</HEAD>
<BODY>
<H1>Just Kidding</H1>

All joking aside; it's unfortunate that meta data has been abused. There should be some kind of validating system in place that visitors can click to confirm content delivered. Wouldn't work either though. I suppose Googles sitemap program is a good start to this kind of check, which kind of renders most meta data irrelevant.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved