The span tag is used to apply the style on the specific value on the HTML document. We need a span tag on the HTML page when we need to apply to the multiple designs in the same paragraph. It can be used to give different characteristics to specific parts of other elements. The HTML span element begins with <span> and end with </span> tag. See the below example of the span tag.
Example of Span Tag
<html> <head> <title>wuexerice</title> </head> <body> <p> This is a first part of Paragraph <span style="color:#FF0000">this is second part of paragraph</span> </p> <p> This is another paragraph <span style="color:#6600ff;">this is paragraph</span> </p> </body> </html>
Comments
Post a Comment