Home  >  Article  >  Web Front-end  >  What is div in html

What is div in html

王林
王林Original
2021-02-24 11:08:1425639browse

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.

What is div in html

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.

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!

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