##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.
(Video tutorial recommendation:
html video tutorial)
For example, we directly enter text or title tags in the div, And the image tag img
and then when you save it and preview it, it is arranged like this, arranged in order from top to bottom
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!