a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

id vs. title

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> id vs. title
Page: [1]
 
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
id vs. title - 4/5/2005 23:37:14   
Hi all,

Is there any difference with using id or title. It is being used in navigation now, I have used/tried both and see no difference in them. Or is it an assessability issue for end user of with one I use.

<li><a href="index" id="hompage" class="xyz">Home</a>

<li><a href="index" title="hompage" class="xyz">Home</a>

Thanks All,
Grizz

_____________________________

http://lazykatz.com

suzkaw

 

Posts: 161
From: North Carolina, USA
Status: offline

 
RE: id vs. title - 4/6/2005 0:35:21   
I could be wrong on this but I believe the use of title would be for accesability and the id would be used if you are going to target it through javascript.


_____________________________

Thanks,
Eric
68 Classifieds

(in reply to Lazykatz)
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
RE: id vs. title - 4/6/2005 1:19:52   
Thanks Eric,

This is a navigation built with css, no javascript. When I saw the raw code, some html lines used id= and others with title=. It is a simple script, just curious why the difference. If it is an accessability issue, I'll use title= if you're right.

I went to your site, nice program, got it bookmarked, we are looking for a program to launch an online fleamarket in the future.

Grizz

< Message edited by Lazykatz -- 4/6/2005 1:29:05 >


_____________________________

http://lazykatz.com


(in reply to suzkaw)
Donkey

 

Posts: 3929
Joined: 11/13/2001
From: Blackfield United Kingdom
Status: offline

 
RE: id vs. title - 4/6/2005 3:00:07   
AFAIK you are comparing apples with mushrooms here. "ID" and "Title" are not used for the same thing.

"Title" is used to give a description that comes up when the mouse pointer is over the item which has been given the title. It is commonly used to duplicate the "Alt" attribute on images so that browsers that work properly (FF Opera etc) copy what IE does (wrongly) with just the "alt"

"ID" is used instead of "Class" to uniquely define an element. It can only be used once on a page whereas "class can be used as often as you like. For instance CSS
#albatross{margin:0; etc.etc.}
called as
<div id="albatross">blah blah blah</div>
can only be used once on a page but CSS
.red{
font: normal 0.7em  tahoma, helvetica, sans-serif; 
color: #f00;
}
called as
<span class="red">text goes here</span>
can be used as many times as you like.

_____________________________

:)

I have a higher and grander standard of principle than George Washington. He could not lie; I can, but I won't.
Samuel Clemens

(in reply to Lazykatz)
jaybee

 

Posts: 14207
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: id vs. title - 4/6/2005 6:37:05   
quote:

AFAIK you are comparing apples with mushrooms here.


Donkey is correct. ID and title are not even remotely the same thing.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to Donkey)
d a v e

 

Posts: 4194
Joined: 7/24/2002
From: England (but live in Finland now)
Status: online

 
RE: id vs. title - 4/6/2005 7:45:49   
also for reference
Id - http://www.w3.org/TR/html401/struct/global.html#adef-id
and title - http://www.w3.org/TR/html401/struct/global.html#adef-title


_____________________________

David Prescott
Gekko web design

(in reply to jaybee)
Lazykatz

 

Posts: 163
Joined: 1/12/2005
Status: offline

 
RE: id vs. title - 4/8/2005 0:04:41   
Thanks all for your input, I'll be posting a preview of new site as soon as I can get it all to validate and navigate correctly.

Grizz



_____________________________

http://lazykatz.com


(in reply to d a v e)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> Cascading Style Sheets and Accessibility >> id vs. title
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts