##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!
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