Reply
Elements, tags, attributes & values
Old 01-20-2008, 03:19 PM Elements, tags, attributes & values
chrishirst's Avatar
Super Moderator

Posts: 10,639
Location: Blackpool. UK
There is a common misconception especially in the SEO community over some components used in HTML documents, the most common one being the alt attributes of the image element. It is all too often referred to incorrectly, as an alt "tag".
This mis-information has spread and perpetuated, due in no small part to the proliferation of SEOs who have very little or no experience at all with the technicalities of HTML or website / webpage design.

So to try and redress the balance a little, we have a short tutorial / reference to what each item is.

Elements and Tags
tags are the start and end delimiters of HTML elements. A start tag would look like this: <title> and an end tag for the same element would be exactly the same, only with a forward slash "/" before the element name. so it would be </title>

The majority of HTML elements consist of a start tag and an end tag with the content of the element located in-between them.
HTML Code:
<title>This would be the page title</title>
Some elements do not have a corresponding end tag and are known as "self-closing elements".
These are element that do not have a separate content part, rather the content that is displayed or indicated by the element is referenced in an attribute. The self closing element most used in webpage design is probably the image element.

alt and title attributes
Here is where much confusion has been created. The alt attribute of the image element is of particular interest to anyone looking to optimise their pages for search.
The attribute exists to provide alternate text to be displayed in user agents that are not enabled with image rendering capabilities.
As search engine indexers cannot "read" or "see" images, the content of the alt attribute, the alt text, is used to determine the context of the image OR, if the image is used as a link the alt text is used as the anchor text. For the SEs where anchor text is used to reinforce the target page content, this is an important point.
BUT it is NOT a tag it is an attribute.
As with all visible HTML elements, the image element has a "title" attribute which has absolutely no use for search but should NOT be confused with the title element, which is without doubt the most important element on the page.
HTML Code:
<img src="image_path" alt="This is the alternate text" title="This is the title text" >
nofollow
nofollow is a means that has been developed by the three major Internet search engines where webmasters can show that an external link is NOT vouched for by the site owner and should not be used by the SEs to give value or weight to the target site. However, the implementation of the nofollow differs between the various engine, so it should NOT be taken as an absolute that applying a nofollow to external links will safeguard a page from incurring whatever "penalties" exist for linking to pages that are regarded as "bad neighbourhoods" by the SEs.

The nofollow is NOT a tag and it is NOT an attribute.
It is a value that can be applied to the rel attribute of anchor elements. This attribute is used to indicate a relationship for the anchor or link element to the resource indicated in the href attribute, as used for external style sheets, (rel="stylesheet")

HTML Code:
<a href="target_url" title="Some title text" rel="nofollow">Anchor Text</a>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System

Last edited by chrishirst : 03-08-2008 at 04:41 AM.
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Sponsored Links (We share ad revenue):
 
Old 01-20-2008, 04:08 PM Re: Elements, tags, attributes & values
OSWebMaster's Avatar
Super Talker

Posts: 136
Name: Scott Frangos
Hi -

Helpful post, thanks. A couple of notes and questions:
  • The "alt" attribute is also helpful for people with handicaps who access page that are read to them with a page reader
  • Since we don't know the algorithm that Google and other search engines use, and it gets changed frequently, how do we know that they always:
    1. Honor the "nofollow" value?
    2. How they score the "alt" and "title" attributes?
Yours -
Scott
__________________
Scott A. Frangos, Technical Writer & BlogMaster
- Blog Services: WebFadds.com
- BLOG: OpenSourceWebMaster.com
OSWebMaster is offline
Reply With Quote
View Public Profile
 
Old 01-20-2008, 07:02 PM Re: Elements, tags, attributes & values
chrishirst's Avatar
Super Moderator

Posts: 10,639
Location: Blackpool. UK
Quote:
The "alt" attribute is also helpful for people with handicaps who access page that are read to them with a page reader
True, but for the purpose of this thread I wasn't concerned with usability or accessibility concerns

Again for both points, Whether SEs "honour" the nofollow value or what weight they put on the alt text is NOT the topic of the thread and it was not and is not the reason I wrote the post.

but just for the record, the "weighting" of the title attribute of ANY element is 0, tested and proven!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-21-2008, 07:28 AM Re: Elements, tags, attributes & values
Skilled Talker

Posts: 50
This is a very helpful information Sir... Thanks for sharing this...
__________________

firesign is offline
Reply With Quote
View Public Profile Visit firesign's homepage!
 
Old 02-10-2008, 11:45 PM Re: Elements, tags, attributes & values
jamestl2's Avatar
Hey.....

Posts: 1,558
Name: James, if you couldn't tell from my username
I think this is just a copy and pasted article :
http://www.candsdesign.co.uk/article...es-and-values/

Seriously though, these are good tips, I think you should sticky this thread.
__________________
Read this if you are new. | PageRank only applies to Web PAGES.

Conspiracy-Forums - THE Place to discuss Conspiracies

jamestl2 is online now
Reply With Quote
View Public Profile Visit jamestl2's homepage!
 
Old 02-11-2008, 02:23 AM Re: Elements, tags, attributes & values
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,947
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
So Hirst is stealing content from himself now? It's not bad enough that he steals mine...he's got to steal his own now, too.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 03-13-2008, 07:18 AM Re: Elements, tags, attributes & values
Novice Talker

Posts: 9
Name: Express SEO
Hello chrishirst,

This is Stolen Content, please remove it....


Thanks..
__________________

express is offline
Reply With Quote
View Public Profile
 
Old 03-13-2008, 08:42 AM Re: Elements, tags, attributes & values
chrishirst's Avatar
Super Moderator

Posts: 10,639
Location: Blackpool. UK
'scuse me while I stop laughing
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-13-2008, 04:54 PM Re: Elements, tags, attributes & values
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Favorite Isaac Asimov Story
Posts: 4,070
Name: John Alexander
Quote:
Originally Posted by ADAM Web Design View Post
So Hirst is stealing content from himself now? It's not bad enough that he steals mine...he's got to steal his own now, too.
Opportunistic reuse? Hirst is about the best computer programmer in the world after God himself, so why shouldn't he be able to reuse code, even if isn't technically code?

Quote:
Originally Posted by express View Post
Hello chrishirst,

This is Stolen Content, please remove it....


Thanks..
Quote:
Originally Posted by chrishirst View Post
'scuse me while I stop laughing
I need some movie theatre popcorn.
__________________
HungarianNotation is the last resort of scoundrels. Why not the first resort? That's where it counts!
Learning Newbie is online now
Reply With Quote
View Public Profile
 
Old 03-14-2008, 02:51 AM Re: Elements, tags, attributes & values
Novice Talker

Posts: 9
Name: Express SEO
Quote:
Originally Posted by chrishirst View Post
'scuse me while I stop laughing

Do one thing go to Pagal Khana. You are mental..
__________________

express is offline
Reply With Quote
View Public Profile
 
Old 03-14-2008, 12:16 PM Re: Elements, tags, attributes & values
chrishirst's Avatar
Super Moderator

Posts: 10,639
Location: Blackpool. UK
Quote:
Originally Posted by express View Post
You are mental..
That's as maybe, but you were the one who commented on my post being "Stolen Material" from my site


Though actually it's really the other way around

I wrote the post here then expanded on it a little.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-17-2008, 04:49 PM Re: Elements, tags, attributes & values
willcode4beer's Avatar
Webmaster Talker

Posts: 525
Name: Paul Davis
Location: San Francisco
Thought I might add one.

The opposite of:
Code:
<a ... rel="nofollow"...
is
Code:
<a ... rel="vote-for"...
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Old 05-03-2008, 09:23 AM Re: Elements, tags, attributes & values
meet2rakeshjha's Avatar
Average Talker

Posts: 22
Quote:
Originally Posted by chrishirst View Post
True, but for the purpose of this thread I wasn't concerned with usability or accessibility concerns

Again for both points, Whether SEs "honour" the nofollow value or what weight they put on the alt text is NOT the topic of the thread and it was not and is not the reason I wrote the post.

but just for the record, the "weighting" of the title attribute of ANY element is 0, tested and proven!

Sir, I think google crawl the site with "nofollow". Is it right or not please share your knowledge with us.

Last edited by meet2rakeshjha : 05-03-2008 at 09:27 AM.
meet2rakeshjha is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Elements, tags, attributes & values
 

Thread Tools

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

vB 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.24666 seconds with 14 queries