What's attribute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What's attribute?

9th Aug 2017, 9:06 PM
Gech
Gech - avatar
3 Answers
+ 2
Attributes give a little more information on a specific thing. In real life an attribute of a car would be: 4 wheels. In HTML an attribute would be : <p align="center">Words</p> That tells the browser to align the paragraph to the center. If you need more information on attributes visit the link below: https://www.w3schools.com/html/html_attributes.asp
9th Aug 2017, 9:32 PM
MemeSenpai
MemeSenpai - avatar
0
attributes are elements that describes or provide additiobal information about the element. usually comes in pairs of "name = 'value'". like color = blue and so on. this is as simple as that
9th Aug 2017, 9:10 PM
Paul
0
Attributes provide additional information about an element or a tag, while also modifying them. Most attributes have a value; the value modifies the attribute.eg:size,color,etc.
15th Aug 2017, 12:01 PM
SIDDHANT BALI
SIDDHANT BALI - avatar