Why they asking to create two ids?


#1

In previous exercises we have been told that each element should never have more than one id. now here in this topic i.e "NO ID, NO ENTRY". I have been asked to add two ids? I am little confused about that, can anybody help?


#2

Very good, you can indeed not assign two id's to the same html element. But the exercises ask you to assign a id of #best_friend to one of your divs with class friend, and an id archnemesis to one if your divs with class enemy. So you assign the ids to different html elements. Which is perfectly fine, it is also perfectly fine for a html element to have both a class and a id.