+ 1
What is attribute?
3 Réponses
+ 2
Attributes are properties that html element may have and that you can change.
For example:
<p align="center" style="color: red">Hello</p>
align and style are attributes here.
+ 1
Attribute provides additional information about an element or tag.
0
each attribute has a purpose, "id" is for identification, ( so you can interact with that tag by that 'id' ), style (for changing color, font, etc), class ( for making a group of identifiers) , acceskey (this allows you to acces to that tag by a key). So we can say a attribute is a feature of that tag, actually the answer of joshua is quite good.
I speak spanish, i'm learning english. May be my answer has ortographic erros 😂