. . .

<span> tag mostly use for styling by using an id or class to highlight or color a text line or any eliment. We  can use <span> tag in two defferent way

1.By using inline css:

<p>My mother has <span style="color:blue;font-weight:bold">blue</span> eyes and my father has <span style="color:darkolivegreen;font-weight:bold">dark green</span> eyes.</p>

1.By using external css:

<h2>The Best <span class="style">Company</span> Ever</h2>
Please share the article
Posted in CSS

Leave a Reply

Your email address will not be published. Required fields are marked *

18 + eleven =