Software Engineering vocabulary · Web, Mobile and Interface Development
Attribute
Meaning in software engineering, with examples
/ˈætrɪbjuːt/nounCore term
In software engineering, 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
elementA single building block of an HTML page, such as a paragraph, image or button, usually written as an opening tag, content and a closing tag.
tagA piece of HTML code in angle brackets, such as <h1> or </p>, that marks where an element starts or ends.
classIn object-oriented programming, a template that defines the data and behavior of a type of object, such as a User or an Invoice.
alt textA short written description of an image, added with the alt attribute, that screen readers read aloud and browsers show if the image fails to load.
This word in other fields
The same English word can have a different meaning in another field: