<span> applies style to a region of content.

The <span> is used it to apply style to a region of content.

 
<!DOCTYPE HTML> 
<html> 
<head> 
    <title>Example</title> 
<style> 
.aClass { 
    border: thin solid black; 
    padding: 1px; 
} 
</style> 
</head> 
<body> 
text <span class="aClass">span text</span> and <span class="aClass">span text</span>. 
</body> 
</html>
  
Click to view this demo.
Home 
  HTML CSS Book 
    HTML  

Related: