Have raised this point before, but thought I'd highlight once again!
The search results are repeating unique identifiers on the page. Whether a more relaxed document type is used to HTML 5 standards the rules still apply that a unique identifier can be used only once on a document in an ideal and valid web world!
So why you ask?:
You can use the ID selector as an anchor reference in your Web pages, but only if you only have it once on the page. In other words, if you have a div with an ID "number1" you can then point to that section of your page with an anchor URL of <a href="#number1">number 1</a> Granted, you can still do that if you have the ID listed multiple times, but only the first instance will be linked to.
A less pragmatic reason to use an ID once in every page is so that you as the Web designer know which section is which. Every page has a unique identifier (the URL/filename) - and this gives you a little more granularity in finding sections of your Web site. That means that if you want to style only one part of one Web page in a specific way, you know you can if you use the IDs correctly - because the ID attributes will be unique on every page.
A forward thinking reason is that in the future, browsers might not display duplicated ID elements as they do now, or as you expect them to.
Finally there is the "because it's a fact" reason. If you want your Web pages to validate as XHTML or HTML, then you should have unique IDs on your pages.
Above taken from http://webdesign.about.com/od/css/f/blfaqmultiIDs.htm
The search results are repeating unique identifiers on the page. Whether a more relaxed document type is used to HTML 5 standards the rules still apply that a unique identifier can be used only once on a document in an ideal and valid web world!
So why you ask?:
You can use the ID selector as an anchor reference in your Web pages, but only if you only have it once on the page. In other words, if you have a div with an ID "number1" you can then point to that section of your page with an anchor URL of <a href="#number1">number 1</a> Granted, you can still do that if you have the ID listed multiple times, but only the first instance will be linked to.
A less pragmatic reason to use an ID once in every page is so that you as the Web designer know which section is which. Every page has a unique identifier (the URL/filename) - and this gives you a little more granularity in finding sections of your Web site. That means that if you want to style only one part of one Web page in a specific way, you know you can if you use the IDs correctly - because the ID attributes will be unique on every page.
A forward thinking reason is that in the future, browsers might not display duplicated ID elements as they do now, or as you expect them to.
Finally there is the "because it's a fact" reason. If you want your Web pages to validate as XHTML or HTML, then you should have unique IDs on your pages.
Above taken from http://webdesign.about.com/od/css/f/blfaqmultiIDs.htm
Comment