Summary -
In this topic, we described about the <span> tag along with detailed example.
Generic container for text or group inline-elements HTML. The <span> tag used to specify the generic container for inline elements and content. There no visual change that can be done by <span> tag.
It doesn’t represent anything other than its children. The tag can be specified like <span class=""></span> with the content between the opening and closing tags.
Syntax -
<span>.. text here.. </span>
Example -
<!DOCTYPE html>
<html>
<head>
<title>span tag example.. </title>
</head>
<body>
<p> <span style="color:red;font-weight:bold">TutorialsCampus’s</span> objective
is to deliver the point to point online content on various
technologies (including technical and non-technical) to
encourage the reader to learn and gain expertise on their
desired skills without any conditions and restrictions.
</p>
</body>
</html>
Output -
TutorialsCampus’s objective is to deliver the point to point online content on various technologies (including technical and non-technical) to encourage the reader to learn and gain expertise on their desired skills without any conditions and restrictions.