Why can't ids used twice? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

Why can't ids used twice?

i have used them twice. it is wotking properly

22nd Dec 2016, 2:14 PM
Shubham Waghade
4 ответов
+ 6
Better use Classes instead...
22nd Dec 2016, 2:16 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Who said that they can't? (it might have side-effects but it's valid)
22nd Dec 2016, 2:16 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
ID is an idenfication for a particular element. It's just in its definition. Like in schools two kids don't have same ID. Two elements can't share the same ID. On the other hand, classes is used to group elements. Elements belong to a class.
22nd Dec 2016, 5:00 PM
Rishi Anand
Rishi Anand - avatar
+ 1
in this app they said it. check chapter 3.
22nd Dec 2016, 2:51 PM
Shubham Waghade