0

How can I add two attributes for a single tag?

20th Oct 2016, 5:38 AM
Bandaru Radhika
Bandaru Radhika - avatar
2 ответов
+ 1
Just use spaces. <img src="" alt="" height="" width=""> src, alt, height and width are all attributes separated by spaces. To add more than one CSS property (inside the style attribute), separate them by semi-colons, all in one quotation. <p style="background-color: green; color: yellow"> Text text text </p>
20th Oct 2016, 3:48 PM
Cohen Creber
Cohen Creber - avatar
+ 1
just use quite gap between two properties
23rd Oct 2016, 8:09 AM
Ankita Srivastava
Ankita Srivastava - avatar