Ends in 7 days

BLACK FRIDAY: Receive 83% off Programiz PRO

+🎁 Buy 1 year, gift 1 year FREE — Split with a friend for just $49.50 each

Start FREE trial →
Background Image

Buy 1 year, Gift 1 year —completely FREE

Start FREE trial →
Gaurav Kumar
last year
Gauravcountry asked

What are tags?

Kelish Rai
Expert
last year
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.