Home  >  Article  >  Web Front-end  >  What are the three categories of html5 tags?

What are the three categories of html5 tags?

青灯夜游
青灯夜游Original
2022-05-18 16:36:453619browse

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.

What are the three categories of html5 tags?

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:

....

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