TOP CATEGORIES

×

How to write span syntax in HTML?

M

Mohit Verma

In HTML, <span> Tag

The <span> tag is used to apply specific styles, like changing the font color, font size, or font family for a specific portion of text within a paragraph.

<span> Tag Syntax With CSS Properties

span {

font-size: 20px;

font-color: green;

padding: 0 10px;

}

<p> This is the first paragraph that look <span>GREEN</span> great</p>

1 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)