Re: Accessibility/SEO and IDs?

Chris <[email protected]> Wed, 22 Mar 2006 18:06:04 -0500
Newsgroups gmane.comp.web.dom.wdf
Message-ID <[email protected]>
If you work in a team, there's the benefit of whoever does the CSS, or 
ties in backend code, etc, has a better chance of discerning one chunk 
of HTML from another and its purpose.

 From a user's perspective, remember that every ID can be targeted as an 
anchor, i.e.: blah.html#list_of_shopping - that can be useful if for 
example, you want to link someone to a specific section of a long page 
they want to read. Personally, I'll occasionally View Selected Source in 
Firefox to get IDs like that and add them into a link I send to people 
on occasion. That's an extremely geeky use of the capability, but the 
point is, there are uses... probably some far less geeky than my own. So 
you may as well make them user-friendly.

Lastly, you're going to run into overlap with short IDs... but if small 
HTML is of the utmost importance for some reason, the shorter IDs may be 
a better fit.

-Chris

Seb Frost wrote:
> Is there any reason (other than to make your own work/maintenance easier) to
> use semantic IDs on your webpages?
>
> In other words, does <div id="header"> benefit anyone other than the coder
> over <div id="h">?
>
> I'm all for cutting down on any bytes that don't need to be sent to the
> browser, and if working by myself I'd quickly get used to shorthands like
> this, and they wouldn't proove to be a maintenance headache at all, for me.
>
> But is there a benefit to longer IDs?  Will search engines pick up on <ul
> id="list_of_shopping"> or is <ul id="l"> just as good?
>
> cheers
>
> Seb
>
>
>
> Unsubscribe
> [email protected]
>
> List info
> http://www.quirksmode.org/dom/list.html 
> Yahoo! Groups Links
>
>
>
>  
>
>
>
>
>   



Unsubscribe
[email protected]

List info
http://www.quirksmode.org/dom/list.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wdf-dom/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/