HTML Elements
HTML Elements
HTML elements are the building blocks of a webpage. An element usually consists of a start tag, content, and an end tag.
Example of an HTML Element
-
<p>→ Start tag -
Hello World!→ Content -
</p>→ End tag
Together, they form a paragraph element.
Types of HTML Elements
-
Block-level elements: Always start on a new line.
Examples:<div>,<h1>,<p> -
Inline elements: Do not start a new line.
Examples:<span>,<a>,<strong>
More Examples
HTML elements help structure and format content on a webpage.
