What does attribute mean?

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.

ˈætrɪbjuːtnounCore term

Web Development vocabulary · HTML and Markup

In Turkish: öznitelik, nitelik, attribute

Also used in: Software Engineering

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

  1. The image has no alt attribute, so screen readers may read out the file name instead.

  2. Store the product ID in a data attribute on the button.

Common collocations

  • add an attribute
  • alt attribute
  • data attribute
  • attribute value
  • boolean attribute

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: