+ 1

Is there specific values (words) to be assigned for the HTML selector id or not?

For example <div id="intro"> <p> This paragraph is in the intro section.</p> </div> Can we assign any word to id that we want instead of intro?

15th Sep 2017, 12:35 AM
Abdul Hamid Durrani
Abdul Hamid Durrani - avatar
4 Antworten
+ 16
There is no special word for id. you're free to use any kind of word.
15th Sep 2017, 12:57 AM
Ranjan Bagri
Ranjan Bagri - avatar
+ 5
Just make sure it is unique
15th Sep 2017, 1:34 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
yep
15th Sep 2017, 12:57 AM
voidneo
0
ya why not ... no need to be specific word bro..
22nd Sep 2017, 5:36 PM
himanshu