RE: Accessibility/SEO and IDs?
"Seb Frost" <[email protected]> Thu, 23 Mar 2006 11:11:31 -0000
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
You're not too geeky Chris, I'm guilty of doing that too! I was dead chuffed the day I discovered that you could put id values after a # in the url :) -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Chris Sent: 22 March 2006 23:06 To: [email protected] Subject: Re: [wdf-dom] Accessibility/SEO and IDs? 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 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/