What is the purpose of an attribute?
to provide more information about a tag
to structure a web page
to close a tag
to substitute for a tag
1 answer
An attribute in HTML is used to provide more information about a tag, such as specifying additional properties or settings for that particular element. It is not used to close a tag or substitute for a tag, but rather to enhance and define the behavior or appearance of the tag.