+ 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
3 Respostas
+ 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).
+ 2
Aww, let's use proper syntax here guys.
<hr style="border-color: red; width: 50%;">
+ 1
*example
//<hr color=red width=50%>