How to write span syntax in HTML?

Last Update: Apr 27 2024 | BY: Twinkal Sharma

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 Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)