Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 06-06-2008, 05:58 AM HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Does anybody know? Are there any problems associated with repeating HTML Meta Tags on a single page?

For example:

Code:
<META name="description" content="This description appears on all pages.">
<META name="keywords" content="these,keywords,appear,on,all,pages">
 
<META name="description" content="This description only appears on this page.">
<META name="keywords" content="these,keywords,only,appear,on,this,page">
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-06-2008, 06:13 AM Re: HTML Meta Tags ?
atouck's Avatar
Skilled Talker

Posts: 55
Name: Atouck
Location: Bucharest, Romania
Trades: 0
why repeat them ? i don't know if they will do good or wrong if repeated but normally they are written once
atouck is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 06:47 AM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Quote:
Originally Posted by atouck View Post
why repeat them ?
Good question....

I'm no guru on this.

When building a site I often create a template with a fixed header and footer that I can apply to all pages. In the header (of the template) I apply the Meta Tags that I want to appear on all pages.

Then I create a new page and apply the template (which has the common Meta Tags included) but I want extra tags for this page. The original tags are not editable in the new page, so I was wondering how the bots handled more than one of the same tag.

Incidentally, I've seen this done on many sites before, just don't know the mechanics of it.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 07:46 AM Re: HTML Meta Tags ?
kemy@web's Avatar
Junior Talker

Posts: 3
Name: kemy
Trades: 0
Compiler automatically takes first meta tag..that for sure..
__________________

Please login or register to view this content. Registration is FREE
kemy@web is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 05:08 PM Re: HTML Meta Tags ?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Is PHP not available?
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 06-06-2008, 05:25 PM Re: HTML Meta Tags ?
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
make the original tags editable in the template then i.e. make an editable region around them
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 06-06-2008, 05:30 PM Re: HTML Meta Tags ?
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
What is all this template stuff about?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 06-06-2008, 06:26 PM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Quote:
Originally Posted by davemies View Post
make the original tags editable in the template then i.e. make an editable region around them
That makes sense, I'll give it a try and see what happens.

Quote:
Originally Posted by wayfarer07 View Post
What is all this template stuff about?
Templates make multi page sites a lot easier to manage. On most sites the header and the footer of the page remain the same. Let's try an example.

Let's assume you have a 50 page website where the company address and telephone number are displayed in the footer of evey page. Then the company moves offices. You would have to alter the address and telephone number on 50 different pages, a lot of hard work. If you've used a template, you only have to update the template once and all 50 pages are automatically updated.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 07:12 PM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Quote:
Originally Posted by davemies View Post
make the original tags editable in the template then i.e. make an editable region around them
Only half works. You can put the meta tags into an editable region in the template, and you can then edit them (or add to them) in the document without any problems.

However, if you've edited the tag in the document and later want to alter the tags in the template, it can't update the document anymore. You don't seem to be able to have tags editable in both the template and the document.

I seem to have three options.

1) Place the tags in the template, and then duplicate them in the document (which is why I asked the original question).

2) Don't place the tags in the template at all, and then create new tags in each document.

3) Place the tags in the template and leave them the same on every document.

You can tell I'm not very good at this, can't you?

Still, nobody seems to know if there are any problems associated with duplicating the meta tags on the same page.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-07-2008, 12:11 AM Re: HTML Meta Tags ?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
Do you have PHP available for the templates?
PHP Code:
if($tag == ''){$tag 'Default, set, of tags';}
echo 
'<meta name="keywords" content="'.$tag.'">'
Let's say that's part of the file header.php in the actual documents you'd just need
PHP Code:
$tag 'Custom, list, of, tags';
require_once(
'header.php'); 
If you didn't set $tag in the page it'd just use the default set in the template.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 06-07-2008, 07:17 AM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Quote:
Originally Posted by Arenlor View Post
Do you have PHP available for the templates?
Yes, I do have PHP available but I think it's a bit of an overkill just to solve this particular problem. I like PHP, but I'm not the most proficient in it, so I don't use it where I don't have to.

There are a dozen ways to circumnavigate the problem but we've gone a bit off topic by trying other solutions.

I really just wanted to know if anybody knew how the crawlers reacted when they come accross meta tags that are duplicated on a single page, each one with different comments.

Do they just read the first occurance? the last occurance? or do they read them all and append them?

I appreciate your suggestion though.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-07-2008, 09:44 AM Re: HTML Meta Tags ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Yes, I do have PHP available but I think it's a bit of an overkill just to solve this particular problem.
Actually it is BY FAR the simplest solution.

http://www.webmaster-talk.com/html-f...body-main.html
http://www.webmaster-talk.com/html-f...-question.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-07-2008, 01:37 PM Re: HTML Meta Tags ?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
For example I actually have a set of templates for all my sites.
index.php
PHP Code:
<?php require_once('conn.php');
$head_title 'A Title';
require_once(
'header.php');?>
<?php 
require_once('footer.php');?>
conn.php
PHP Code:
<?php $conn mysql_connect('localhost','username','KittyKat124!?!'); $db mysql_select_db('database');?>
header.php
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html lang="en"> 
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"> 
<title><?php echo $head_title;?></title> 
<meta http-equiv="Content-Style-Type" content="text/css"> 
<meta name="description" content=""> 
<meta name="keywords" content=""> 
<meta name="robots" content="index,follow"> 
<link rel="stylesheet" type="text/css" href="styles.css"> 
<link rel="shortcut icon" href="favicon.ico"> 
<link rel="icon" href="favicon.ico"> 
</head> 
<body>
styles.css
PHP Code:
body {background-color:#FFFFFF;color:#000000;}
h1 {text-align:center;}
a:link {background-color:#FFFFFF;color:#0000FF;}
a:visited {background-color:#FFFFFF;color:#FF0000;}
a:hover {background-color:#FFFFFF;color:#FF00FF;}
a:active {background-color:#FFFFFF;color:#00FF00;}
div.center {text-align:center;} 
footer.php
PHP Code:
<div class="center"><p>&#169; <a href="http://www.arenlor.com">Arenlor</a> 2008</p></div></body></html> 
robots.txt
PHP Code:
User-agent: *
Disallow:
User-agent: *
Allow: / 
I just fill in the blanks where needed and it's done.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 06-08-2008, 06:06 AM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
This is one of those threads that's gone way off topic....

Quote:
Originally Posted by minsky View Post
Does anybody know? Are there any problems associated with repeating HTML Meta Tags on a single page?
I realise there are loads of ways to solve the problem. I just wondered if anybody knew what happened if you did duplicate the tags.
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-08-2008, 07:39 AM Re: HTML Meta Tags ?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Try it and let us know!
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-08-2008, 01:30 PM Re: HTML Meta Tags ?
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
http://www.w3.org/TR/REC-html40/stru...l.html#h-7.4.4 from the description within of search engines using the lang attribute I'd suggest against using multiple tags unless they have multiple languages.
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 06-08-2008, 04:10 PM Re: HTML Meta Tags ?
minsky's Avatar
Experienced Talker

Posts: 49
Name: Minsky
Location: UK
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Try it and let us know!
I don't mind trying it, but I wouldn't have any way to Analyse the results.

Quote:
Originally Posted by Arenlor View Post
I'd suggest against using multiple tags unless they have multiple languages.
Yes, I agree it's considered a bad practice and I won't be doing it, but it's surprising (when you right click and view source) just how many websites do. I view source a lot and have often noticed tag being repeated.

Incidentally, I'm a self taught web builder (novice really) and don't have any expertise to fall on when I need it. That's why I ask these dumb questions. I love forums....
__________________
Never argue with a fool. They will drag you down to their level and then beat you with experience.
minsky is offline
Reply With Quote
View Public Profile
 
Old 06-12-2008, 03:24 PM Re: HTML Meta Tags ?
Experienced Talker

Posts: 30
Name: Tim
Location: Tennessee
Trades: 0
No one really knows all of the criteria search engines use but I would be worried that the engines would think you are trying to out smart them and penalize you.
__________________
-----------------------------------------------

Please login or register to view this content. Registration is FREE
WebHostAdvisor is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HTML Meta Tags ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.76326 seconds with 12 queries