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

What does span tag do?

云罗郡主
Release: 2019-02-18 10:42:46
Original
32495 people have browsed it

What does the

span tag do? The

span tag is an inline tag of Hypertext Markup Language (HTML) and is used to combine inline elements in the document. span has no fixed format. When a style is applied to it, it creates a visual change.

Function: Used to combine inline elements in the document.

Note: Use to combine inline elements so that they can be formatted with styles.

Note: span has no fixed format. It only changes visually when you apply a style to it.

html span tag example

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span>span没有固定的格式表现,如果需要,可以添加属性来表现形式</span>
</body>
</html>
Copy after login


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

Related labels:
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