Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

what is the use of span tag in html?

3 Posts
3 Users
0 Reactions
141 Views
Posts: 488
Topic starter
(@vishva)
Reputable Member
Joined: 2 years ago

use of span tag in html.

2 Replies
Posts: 389
(@abishek)
Reputable Member
Joined: 2 years ago

The inline container known as the "span" tag can be used to mark up a chunk of text or a section of a document. Simple styling with CSS or manipulation with JavaScript are both possible using the span> tag's class or id attribute. Although there are many similarities between the div> element and the span> tag, div is an inline element whereas span is a block-level element.

Reply
Posts: 522
(@kavitha-shri)
Honorable Member
Joined: 2 years ago
  • A section of text or a section of a document can be marked up using the inline container known as the "span" tag. The class or id attribute of the span> tag allows for simple styling using CSS or manipulation with JavaScript. The div> element and the span> tag are quite similar, however div is a block-level element and span is an inline element.
Reply
Share: