can I use two or more attributes to a single subject? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

can I use two or more attributes to a single subject?

30th Jun 2016, 2:46 AM
Saurabh Thakur
Saurabh Thakur - avatar
4 Answers
+ 1
You shouldn't use attributes to control layout or style like 'align'.. For that, you should use CSS. Other than that, you're allowed to use as many valid attributes as needed. Example: <a class="btn" href="#">Home </a>
1st Jul 2016, 12:50 AM
ZinC
ZinC - avatar
0
Yes..As many as you need to describe the tag. For example <p class="top p" align="center" style="font-family: Arial;"> </p>
30th Jun 2016, 6:16 AM
Daniel Chukwuji
Daniel Chukwuji - avatar
0
yes...you are allowed to do so
17th Jul 2016, 8:59 PM
Aarambh Pandey
Aarambh Pandey - avatar
- 1
yeah ofc y not!
1st Jul 2016, 4:39 AM
Priyadarshika Saha
Priyadarshika Saha - avatar