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.


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.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: