📖 Detailed Explanation
HTML uses tags to define content on a webpage.
Tags are written inside angle brackets, such as <p>.
Most HTML tags come in pairs:
-
An opening tag
-
A closing tag
Example:<p>This is a paragraph</p>
Here:
-
<p>tells the browser to start a paragraph -
</p>tells the browser to end the paragraph -
The text in between is the content
An HTML element includes:
-
The opening tag
-
The content
-
The closing tag
Tags help the browser understand what each piece of content means, not just how it looks.
🎯 Key Points
-
Tags define content
-
Elements include tags and content
-
Most tags open and close
Exercise Files