Presenting text using <span> tag

<span></span> tags are very useful for styling the text. The span tag can present the text as per the css class provided to the span tag. For example: <span class=”bigbox”>This is text </span>.

The other way is to use embedded styles in span tag, e.g.,

<span style="color:blue; font-size:14px">This is text</span>

Or we can just put plan text using span tags:

<body>
<span>
This text is written span tag
</span>
</body>

 

Add a Comment

Your email address will not be published. Required fields are marked *