So many id's required in the projects

When it comes to the projects it’s asking to impliment so many id’s… shouldn’t these be used more sparingly?

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36

Challenge: Build a Survey Form

Link to the challenge:

ids are a way to uniquely identify an element, and they are needed by the tests to verify you are following the user stories

1 Like

As said they are just for the tests.

You don’t even have to use them to style the elements. As long as the correct elements with the correct ids are styled according to any CSS requirements you can use class, element type, etc. selectors.

Thanks, i just remembered keeping one id per page but as you say they’re just for the test. Much appreciated!

Just to be clear. It’s not one id per page. It’s that an id must be unique within the document/page.
There can be multiple id's as long as they don’t have the same value.

I understand now I think, as long as different values are applied to each id there shouldn’t be any issues hopefully

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.