+ 3

How can i add more than one attribute in a single tag.....can someone illustrate using an example.

Html attributes adding more than one

24th Jun 2018, 6:08 AM
Nijo
Nijo - avatar
3 Antworten
+ 2
Also, if we were to get technical, style is just one attribute (and, in the example, has two properties, each with one value). Let's do something like: <input type="number" name="quantity" min="1" max="5"> where type, name, min, and max are all attributes. Keep in mind also that each element has a different set of attributes that are acceptable/valid. Global attributes will work for all elements (... at least until you get to vendor prefixes and such).
24th Jun 2018, 8:52 AM
Janning⭐
Janning⭐ - avatar
+ 2
Aww, let's use proper syntax here guys. <hr style="border-color: red; width: 50%;">
24th Jun 2018, 8:44 AM
Janning⭐
Janning⭐ - avatar
+ 1
*example //<hr color=red width=50%>
24th Jun 2018, 6:17 AM
Sudarshan Rai
Sudarshan Rai - avatar