TOP CATEGORIES

×

What is span in HTML?

N

Niharika AS

<span> in HTML

In HTML, the <span> tag is used to give a specific property of the selected TEXT areas and it does not create a line break and is typically used to style or manipulate small portions of content within a larger block of text.

As well as, The <span> tag works only for that text, which is written between the <span> open and </span> close tag.

Syntax Example

/* -- span style property -- */

span {

font-size: 30px;

font-family: Arial;

color: #ef43ef;

background-color: Red;

}

1 votes

Your Answer

Email: advertise@gdatamart.com

Donate: To Support US

© 2024 GDATAMART.COM (All Rights Reserved)