HTML Elements

HTML Elements

Its are the building blocks of a webpage. A HTML Elements usually consists of a start tag, content, and an end tag.


Example of an HTML Element

  <p>Hello World!</p>
  • <p> → Start tag

  • Hello World! → Content

  • </p> → End tag

Together, they form a paragraph element.


Types of 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


 


It help structure and format content on a webpage.

You may also like...