What exactly are attributes in JavaScript?

Hi there,

can someone explain the meaning of attributes in JS with a simple explanation? Why we need attributes and what are they stand for?

Thanks for answers!! :slight_smile:

Attributes usually refer to html attributes. The html when rendered by the browser as DOM, each of these DOM object’s attributes is referred to as properties. These property value pairs are also refered to as attributes in JS. Here are two useful links for better understanding

Are you referring to a specific lesson from the curriculum that mentions “attributes”?