Html attribute | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Html attribute

Can we use more than one attribute for one element, e.g for <p> could we aligned to center and chang width and colour?

27th Apr 2019, 5:46 AM
Siham
Siham - avatar
4 Answers
+ 8
Yes bro u can use as many attributes as u want for a element. U can define it's alignment , color , bg-color , height width etc.
27th Apr 2019, 6:40 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 5
Yes.
27th Apr 2019, 7:15 AM
Sonic
Sonic - avatar
+ 2
Yes u can use more than one attribute for one element
28th Apr 2019, 3:34 AM
khadeeja jumana R
+ 2
We cannot use attribut align for colores. And yes, we can use more then one attribute for one element
16th Jun 2019, 12:21 PM
Элка э