Gaurav Kumar
2 months ago
Gauravcountry asked

What are tags?

Kelish Rai
Expert
2 months ago
Kelish Rai answered

HTML tags are like labels that tell the browser what each part of a webpage is.

For example, if you want to show a heading, you use a heading tag like this:

Apples

The

tag tells the browser that the text Apple is a heading and it should be big and bold.

Tags usually come in pairs: an opening tag like

and a closing tag like

. Whatever you put between them is the content.

Tags not visible on the page—just instructions for how to show things. Only the content is visible.

As you continue with the course, you'll learn plenty of tags, each with their own purpose.

HTML
This question was asked as part of the Learn HTML course.