Difference between Attribute and Tag.
Q2. Mention the difference between an attribute and a tag.
Ans. Tag is accomplished by an attribute. An attribute is keyword associate with any type of tag and provides extra information or functioning to a tag.
Whereas
Tag is formed by a pair of angle brackets (< and >). A tag is a command to instruct the Web browser how to display the content in a Web page.