0

What is the definition of an attribute, i dont understand it

24th Oct 2016, 6:58 PM
Krazy Creeper Kid
Krazy Creeper Kid - avatar
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
24th Oct 2016, 9:07 PM
Massamba Sow
Massamba Sow - avatar
+ 1
it's analogous to English Grammar. like verb which tells something about the noun. attribute tells something about the tag.
26th Oct 2016, 6:19 AM
GoldenSquare
GoldenSquare - avatar
+ 1
attribute is like helping command
27th Oct 2016, 1:41 AM
Roshan
+ 1
attributes are like sugar icing on the cake. They are just used for additional functions to be added on the matter or body.
29th Oct 2016, 3:26 AM
Pranjal Bhadade
+ 1
attribute is to set the place where it has to be
1st Nov 2016, 5:49 PM
ashrith
ashrith - avatar