HTML - Inline Elements

HTML Inline Elements

These are elements that only takes the space that is required of its content. It does not start on a new line entirely.

INLINE ELEMENTS

The list of inline elements are as follows:

  • <a>
  • <span>
  • <img>
  • <input>
  • <button>
  • <label>
  • <cite>
  • <select>
  • <textarea>
  • <abbr>
  • <samp>
  • <big>
  • <acronym>
  • <bdo>
  • <dfn>
  • <i>
  • <object>
  • <q>
  • <script>
  • <small>
  • <strong>
  • <sup>
  • <time>
  • <var>
  • <b>
  • <em>
  • <kbd>
  • <map>
  • <output>
  • <sub>
  • <tt>

Inline To Block Elements

You can convert inline element to block element by applying the style: display: block.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT