Home  >  Article  >  Web Front-end  >  What are the classifications of html tags?

What are the classifications of html tags?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-04 16:49:4713875browse

html tag elements are: 1. The tag occupies one line, and the width and height can be specified as a block tag; 2. The tag is in one line, and the width and height are determined by the content. Only when the content exceeds the width of HTML, Inline tags that can wrap into new lines; 3. Inline block tags that have the characteristics of both inline elements and block elements.

What are the classifications of html tags?

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

The types of HTML tags can be divided into three types: block-level tags, inline tags, and inline block tags.

Block-level label:

Block-level label: The label occupies one line, and the width and height can be specified.

Features:

  • Able to identify width and height

  • The top, bottom, left and right margins and padding are all valid for it

  • Can automatically wrap lines

  • Multiple block element tags are written together, and the default arrangement is from top to bottom

  • You can use margin:0 auto to center the alignment

Commonly used block elements are:

,

,

...

,
    ,