CSS Spans

Estimated reading: 1 minute 59 views

You can use the span tag to style certain areas of text, as shown in the
following:

				
					 <span class="italic">This text is italic</span>

				
			
				
					<!--Then in my CSS file:-->
 .italic{ 
font-style: italic; 
}
				
			

 The final result is: This text is italic.

Share this Doc

CSS Spans

Or copy link