What is an Element?
1.2.2 What is an Element?
An element in HTML refers to the building blocks of a webpage. It is made up of a pair of tags: an opening tag and a closing tag, with content between them.
For example:
<p>This is a paragraph element.</p>
<p>
is the opening tag.</p>
is the closing tag.- The content between the tags is the content of the paragraph.
Basic Components of an HTML Element:
- Opening tag:
<tagname>
- Content: The text or other elements placed between the tags.
- Closing tag:
</tagname>
Comments
Post a Comment