0
What is the definition of an attribute, i dont understand it
5 Answers
+ 2
In HTML you have elements and each element has three basic parts:
- tags like <p> and </p> for paragraph
- attributes and values as in <p id="para1"> in the opening tag where id is the attribute and it is given (with = sign) a value para1 in quotes
based on that you can say, that an attribute is some kind of option for the tag but really attribute is a better term. Imagine we had the tag <person name="john"> name would be like id and "john" would be the value given to it.
Hope this helps
+ 1
it's analogous to English Grammar. like verb which tells something about the noun. attribute tells something about the tag.
+ 1
attribute is like helping command
+ 1
attributes are like sugar icing on the cake. They are just used for additional functions to be added on the matter or body.
+ 1
attribute is to set the place where it has to be