Home > Article > Web Front-end > What are the three categories of html5 tags?
There are three types of html5 tags: 1. Block-level elements, whose display value is "block", are characterized by being able to set width, height, margins, and automatic line wrapping; 2. inline elements, whose display value is "inline" will not wrap automatically, and the width and height cannot be set; 3. Inline block elements will not wrap automatically, and the width and height can be set.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
Classification of html5 tags
Tags are also called elements
can be based on tag characteristics Divided into: block tags, inline (inline) tags, inline block tags
According to the label closing rules, it can be divided into: single label (empty label, self-closing label), double label
Commonly used block elements: