Home >Web Front-end >CSS Tutorial >The three attributes of span

The three attributes of span

hzc
hzcOriginal
2020-06-12 14:33:3514060browse

The three attributes of span

The three attributes of span are:

1. span will not occupy a separate line;

2. Span is an inline element, and setting the width and height does not work;

3. Setting the top, bottom, and bottom margins of span does not work.

Definition of span:

tag is used to combine inline elements in the document.

Tips and Notes:

Tip: Use to group inline elements to format them with styles.

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

Recommended tutorial: "css tutorial"

The above is the detailed content of The three attributes of span. 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