Articles → HTML → span tag in HTML

span tag in HTML






What is an inline element?







Click to Enlarge








What is span tag?









Syntax


<span></span>



Example













Click to Enlarge









<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>Span Demo</title>
</head>
<body>
    Your battery is <span id="spnBatteryStatus"></span>
</body>
</html>





Browser support


Internet ExplorerFirefoxChromeSafariOperaEdge
YesYesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 21, 2016
 
Updated On  -  Sunday, December 03, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250