Home  >  Article  >  Web Front-end  >  What is the function of div tag in html

What is the function of div tag in html

王林
王林Original
2020-04-10 10:26:3513265browse

What is the function of div tag in html

##First of all, div is a double tag. The starting tag is
, and the end tag is
text, pictures, and other tags can be added in the middle, and div can contain Therefore, it is generally called a box model.

What is the function of div tag in html

(Video tutorial recommendation:

html video tutorial)

For example, we directly enter text or title tags in the div, And the image tag img


What is the function of div tag in html

and then when you save it and preview it, it is arranged like this, arranged in order from top to bottom

What is the function of div tag in html

Recommended tutorial:

html tutorial

The above is the detailed content of What is the function of div tag 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