Home >Web Front-end >CSS Tutorial >What are the empty elements in css

What are the empty elements in css

王林
王林Original
2020-11-25 14:35:542425browse

The empty elements in css are: 1. br; 2. hr; 3. img; 4. input; 5. link; 6. meta; 7. area; 8. command. CSS stipulates that each element has a display attribute, and each element has a default display value.

What are the empty elements in css

The operating environment of this tutorial: windows10 system, css3 html5 version. This method is suitable for all brands of computers.

(Recommended tutorial: css video tutorial)

First of all, css stipulates that each element has a display attribute to determine the type of the element. Each element has The default diaplay value, for example, the default display value of div is "block", which means it is a "block-level" element; the default display attribute value of span is "inline", which is an "inline" element.

1. Inline elements include: a b span img input select strong

2. Block-level elements include: div ul ol li dl dt dd h1 h2 h4...p

3. Common empty elements:


Uncommon ones include:

< ;area>,

Related recommendations:CSS tutorial

The above is the detailed content of What are the empty elements in css. 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