can u give an id to <p> paragraph elements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can u give an id to <p> paragraph elements?

19th Jul 2016, 7:47 PM
Afzaal Arif
Afzaal Arif - avatar
8 Answers
+ 5
Yes just remember that id is a global attribute thus two different element cannot have the same id.
14th Oct 2017, 7:50 AM
Musicalcholic
Musicalcholic - avatar
+ 1
yes you can
19th Jul 2016, 8:49 PM
Kamil
Kamil - avatar
+ 1
yes you can add tag p
20th Jul 2016, 3:02 AM
Calvin Natanael
Calvin Natanael - avatar
+ 1
yes you can add
15th Oct 2017, 6:40 PM
Polina
0
You can assign an ID selector to html tags as well as classes. Of course there is always the type selector which you can use the p {...} selector for paragraph tags.
20th Jul 2016, 12:10 AM
Tommy Hiers
0
whenever we need
20th Jul 2016, 12:14 PM
Rishe Kundey
Rishe Kundey - avatar
0
Yes you can
23rd Jul 2016, 12:14 AM
Vika Usoyan
0
yes you can
20th Sep 2016, 5:19 PM
Aeshwarya Kumar Singh
Aeshwarya Kumar Singh - avatar