What are tags and attributes in HTML?

Category: Web Design HTMLWhat are tags and attributes in HTML?
Editor">Editor Staff asked 2 years ago

What are tags and attributes in HTML?

1 Answers
Editor">Editor Staff answered 2 years ago

Tags are the primary component of the HTML that defines how the content will be structured/ formatted, whereas Attributes are used along with the HTML tags to define the characteristics of the element. For example, <p align=” center”>Interview questions</p>, in this the ‘align’ is the attribute using which we will align the paragraph to show in the center of the view.