The div tag in HTML is a block-level element, and browsers usually place a line break before and after the div element. The div tag can divide the document into independent and different parts. It can be used as a strict organizational tool and does not use any formatting associated with it.
The operating environment of this article: windows10 system, html 5, thinkpad t480 computer.
DIV is the positioning technology in cascading style sheets, the full name is DIVision, which means division. Sometimes they are called layers. The DIV element is an element used to provide structure and background for block-level content within an HTML (an application under Standard Universal Markup Language) document.
can define divisions or sections (division/section) in the document.
tag can divide the document into independent and different parts. It can be used as a strict organizational tool and does not use any formatting associated with it.
If you use id or class to mark
, the tag will become more effective.
Note:
is a block-level element, which means that browsers usually place a line break before and after the div element.
Tip: Use the
element to group block-level elements so they can be formatted using styles.
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