Block-level Elements

Next ❯Style Sheet

All HTML elements can be categorized into two categories

1. Block-level Elements
2. Inline Elements
  • Elements start on their own new line, and anything after that comes on new line
  • trending_downSome Examples
    <p>
    <h1>, <h2>, <h3>, <h4>, <h5>, <h6>
    <ul>, <ol>, <dl>
    <pre>
    <hr>
    <blockquote>
    <address>
    <form>
    <div>

Inline Elements

  • Elements not start on their own new line, and any inline elements after that, appears just after them
  • To make Elements appear on new line , use <br> tag
  • trending_downSome Examples
    <b>,<i>,<u>,<em>,<li>
    <strong>,<sup>,<sub>
    <big>,<small>,<ins>
    <del>,<code>,<cite>
    <dfn>,<kbd>,<var>
    <span>,<img>,<a>

  • Style Sheet
❮ Prev Form Attributes
Next ❯Style Sheet
receipt