Home > Web Front-end > HTML Tutorial > What does span mean?

What does span mean?

(*-*)浩
Release: 2019-08-12 16:13:14
Original
48998 people have browsed it

span is an inline tag in Hypertext Markup Language (HTML) that is used to combine inline elements in a document. span does not have a fixed format. When a style is applied to it, it creates a visual change.

What does span mean?

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

and

(recommended learning: web front-end video tutorial)

in CSS definition It belongs to an inline element, and
is a block-level element. We may popularly understand that
is a large container. Of course, a large container can contain a small container, and is a small container.

Use the element to color a portion of text:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
</head>
<body>

<p>我的母亲有 
    <span style="color:blue;font-weight:bold">
        蓝色
    </span> 
    的眼睛,我的父亲有 
    <span style="color:darkolivegreen;font-weight:bold">
        碧绿色
    </span> 
    的眼睛。
</p>

</body>
</html>
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template