HTML Tutorial | Span Tag


The <span> element is a inline element that is generally used as a container for some text of HTML document.

  • A inline element does not starts on a new line and only takes up as much width as necessary.
  • Example of inline element:<a>,<img>,<span> etc.
  • <span> tag does not give any special appearance on web page like <a> tag, <img> tag etc gives. It generally used as a container for HTML elements.
    Like if we want to change the color of 3 words together then we can use <span> tag to cover all text in one.
Example:
   Some words of <span style="color:blue">this sentence become</span> blue.
	   


Video-English
Best Use:360p or more (480p or 720p)



Video-Hindi
Best Use:360p or more (480p or 720p)