The attributes are special words used inside the start tag of an HTML element to control the tag’s behavior or provides additional information about the tag . JavaScript provides several methods for adding, removing or changing an HTML element’s attribute.