HTML span tag


<span>Demo</span>

2. Usage

  • The span element is a generic container element.
  • It's similar to the division tag only it's an inline element rather than a block level element.
  • Span takes up high-width space with content, while a pair of div tags occupy a single line

3. Example

<span>1st span</span>
<span>2nd span</span>
<span>3rd span</span>
Result : 1st span  2nd span  3rd span



Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook