text". The span tag provides a way to isolate a portion of text or a document."/> text". The span tag provides a way to isolate a portion of text or a document.">

Home  >  Article  >  Web Front-end  >  What does span in css mean?

What does span in css mean?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-04-28 17:32:3412751browse

In CSS, span means range, which is used to combine inline elements in the document. The syntax is "text". The span tag provides a way to isolate a portion of text or a document.

What does span in css mean?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Define an area within a row, that is, a row can be divided into several areas by to achieve a specific effect. itself has no properties.

is an inline element in the CSS definition, and

is a block-level element. We may popularly understand that
is a large container. Of course, a small container can be placed in a large container. Container, is a small container.

Use the element to color a part of the text:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>
 
<p>波斯猫有一双异色颜色,十分好看,它一只眼睛是 
    <span style="color:blue;font-weight:bold">
        蓝色
    </span> 
    的,另外一只眼睛是 
    <span style="color:rgb(112, 177, 0);font-weight:bold">
        碧绿色
    </span> 
    的。
</p>
 
</body>
</html>

Effect:

What does span in css mean?

##Recommended learning:

css video tutorial

The above is the detailed content of What does span in css mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn