Home >Web Front-end >HTML Tutorial >What is div in html
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.
If you use id or class to mark
Note:
Tip: Use the
Recommended learning: html tutorial
The above is the detailed content of What is div in html. For more information, please follow other related articles on the PHP Chinese website!