Attribute
Meaning in web development, with examples
In web development, attribute means: Extra information written inside an opening HTML tag as a name and a value, such as href in a link or alt in an image.
In Turkish: öznitelik, nitelik, attribute
How it is used
You add, set, remove and read attributes. Common ones are id, class, href, src, alt and type; custom data-* attributes store your own values for JavaScript.
Example sentences
The image has no alt attribute, so screen readers may read out the file name instead.
Store the product ID in a data attribute on the button.
Common collocations
- add an attribute
- alt attribute
- data attribute
- attribute value
- boolean attribute
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: HTML and Markup
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
