+ 4
Can anyone tell me that what's the difference between attribute and value
5 Réponses
+ 5
For example
There are many attributes of element image
Including src, width, height.
Therefore these are attributes.
But what you are going to fill in these attributes is the value
eg: <img height="100" width="100">
Conclusion : Elements contain attributes and attributes contain values.
Hope you got your answer .
Thanks.
+ 2
Thanks dude
+ 2
Attributes provide extra information about tags and elements.
Values are inputs which modify the attributes.
+ 1
Falling in love with all this
+ 1
Yh, attributes are the arrangements you need to make or adjustment, then the values are the input for your attributes
let's say for example
<img src: "table.jpeg" width: "50%" height: "70%"></img>
the src, height and width are attributes while table.jpeg, 50% and 70% are their values