"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.
#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
3. In