Skip to content

Latest commit

 

History

History
61 lines (50 loc) · 1.04 KB

File metadata and controls

61 lines (50 loc) · 1.04 KB

HTML II Block and Inline Elements

Block Elements

Block elements take up the full width available and always start on a new line. Common block elements include:

inline-elements

  • <div>
  • <h1> to <h6>
  • <p>
  • <ul> and <ol>
  • <li>
  • <header>
  • <footer>
  • <section>
  • <article>

Inline Elements

Inline elements do not start on a new line and only take up as much width as necessary. Common inline elements include:

block-elements

  • <span>
  • <a>
  • <img>
  • <strong>
  • <em>
  • <br>
  • <code>
  • <input>
  • <label>
  • <abbr>
  • <cite>
  • <q>
  • <time>
  • <var>
  • <kbd>
  • <samp>
  • <sub>
  • <sup>
  • <small>
  • <mark>
  • <b>
  • <i>
  • <u>
  • <bdo>
  • <bdi>
  • <data>
  • <dfn>
  • <ruby>
  • <rt>
  • <rp>
  • <wbr>