HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML span Tag

HTML span Tag



The span tag is an inline container and is used to mark up or style a part of a text, or a part of a document. It can easily be styled by CSS or manipulated with JavaScriptby using an id or class attribute. It is similar to a div tag. However, the span tag is an inline element while the div tag is a block-level element.




Its syntax is:- < span >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML