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>Hello World!</p>
  • <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.

CodeCapsule

Sanjit Sinha — Web Developer | PHP • Laravel • CodeIgniter • MySQL • Bootstrap Founder, CodeCapsule — Student projects & practical coding guides. Email: info@codecapsule.in • Website: CodeCapsule.in

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *