I am developing a web application and I would like to check for duplicate id values in a HTML page. I am running the application on my local machine.There is a way to do that?P.S.: I am using Firefox and Firebug.
Check for duplicate 'id' values in a HTML page
html;css;web development;duplicate content
The W3C's validator tool will report duplicate IDs. To test your code:Copy the generated source code to your clipboard.Visit http://validator.w3.org/#validate_by_inputPaste your markup into the box and hit 'Check'.You can test it with the following code if you wish:<!doctype html><html>    <head>        <title>Test</title>    </head>    <body>        <div id=test>Test div</div>        <div id=test>Test div 2</div>    </body></html>This produces the following error: