HTML CSS Span


<span></span> is similar to <div></div>, but instead of covering a large block, it exists in-line and no line break is created.


You use span on a class just as you would <div></div>

First declare the class (or ID) in the head of the document or the external style sheet.

		
			.myQuotedText{
					font-style: italic;
					font-size: large; 
					font-weight: bold;
			}

		
	


Now when you want to quote text using your predefined style:


<span class="myQuotedText"> And this text will have the properties you assigned. </span>



I hope you will join us for the next lesson Lesson 7) Margins

Additional Resources