Welcome Guest! (App Version 3.1)

websitnero logo name

Inline Elements


  • Inline Elements are 2nd type of elements in HTML.
  • Inline Elements only take the required width or horizontal space when added on HTML page.
  • Span, anchor, bold, italics, tt, em are common examples of inline tags.

Inline Elements in HTML

Inline elements are those elements which stack to each other in the same line if there is space available. Their nature is opposite to the nature of 'Block Elements'.

While 2 block elements (say, a div and a p) will take full space in width and each will go to a separate line, any 2 inline elements (say, a span and an anchor) will stack together in the same line.

<span> This is a span. </span>

<b> This is in bold. </b>

<i> This is in italics. </i>

The inline elements can be said to be Super-Adjusting. They do not have a rigid behavior like that of 'Block Elements', but rather they are fluid in nature.

Try to put 10 span elements and they will get stacked to the same line (if space is available).


  <span>This is a span.</span>
  <a>This is an anchor.</a>

Further Reading

1. Inline elements

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.