Understanding HTML Tags
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
Comments
Comments let you add notes inside your HTML code. The browser ignores them, so they don't appear on the page.
index.html
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?
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.38
Understanding HTML Tags
Swipe to show menu
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
Comments
Comments let you add notes inside your HTML code. The browser ignores them, so they don't appear on the page.
index.html
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?
Thanks for your feedback!