Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Understanding HTML Tags | HTML Tags and Attributes
Ultimate HTML

bookUnderstanding HTML Tags

Note
Definition

HTML (HyperText Markup Language) is the language used to structure content on the web. An HTML file (.html) tells the browser how to display text, images, lists, tables, and more.

What Are Tags?

Tags are the basic building blocks of HTML. They define elements such as paragraphs, buttons, sections, and images. Tags are written inside angle brackets: <tagname>.

Most tags come in pairs:

  • Opening tag: <tagname>;
  • Closing tag: </tagname>.

Content goes between them.

index.html

index.html

copy

Comments

Comments let you add notes inside your HTML code. The browser ignores them, so they don't appear on the page.

index.html

index.html

copy

1. How would you correctly wrap the "My first paragraph" text in an HTML <p> tag?

2. What syntax is used to leave a comment?

question mark

How would you correctly wrap the "My first paragraph" text in an HTML <p> tag?

Select the correct answer

question mark

What syntax is used to leave a comment?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

bookUnderstanding HTML Tags

Swipe to show menu

Note
Definition

HTML (HyperText Markup Language) is the language used to structure content on the web. An HTML file (.html) tells the browser how to display text, images, lists, tables, and more.

What Are Tags?

Tags are the basic building blocks of HTML. They define elements such as paragraphs, buttons, sections, and images. Tags are written inside angle brackets: <tagname>.

Most tags come in pairs:

  • Opening tag: <tagname>;
  • Closing tag: </tagname>.

Content goes between them.

index.html

index.html

copy

Comments

Comments let you add notes inside your HTML code. The browser ignores them, so they don't appear on the page.

index.html

index.html

copy

1. How would you correctly wrap the "My first paragraph" text in an HTML <p> tag?

2. What syntax is used to leave a comment?

question mark

How would you correctly wrap the "My first paragraph" text in an HTML <p> tag?

Select the correct answer

question mark

What syntax is used to leave a comment?

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 1
some-alt