Home > Web Front-end > Front-end Q&A > What does div mean in css

What does div mean in css

藏色散人
Release: 2023-01-03 09:25:00
Original
9059 people have browsed it

"div" in css represents a selector. You can directly use the div tag selector to find HTML elements to set styles; and if it is ".div", then it represents the class attribute of a certain tag, which is class selection. device.

What does div mean in css

#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.

What does div mean in css?

A div is a tag in HTML, usually used as a container to hold other elements. In CSS, it represents a selector. You can directly use div (tag selector) to find HTML elements to set styles; and if it is .div, it represents the class attribute (class selector) of a certain tag.

How to use div tags in HTML and CSS

1. To use div, the first step is to open Notepad and enter the basic HTML structure, and include the internal HTML main body.

2. Place the

tag inside the body tag. You have to remember that div is a container tag, so it must be followed by a
, like
,
is used to split on the page, so you can even Use the div tag in
.

3. In