Home > Article > Web Front-end > css block-level tags, inline tags, conversion of inline block tags
CSS block -level label, in -line label, the conversion of inner block labels
In Basic 1, I talked about the common attributes of CSS in detail, several different selectors. Further understand their characteristics to better learn and master related development skills.
When talking about tag classification, as beginners, when we first use tags, we will find that some attributes do not work on some tags, such as width, height, Horizontal centering, in fact, the use of this attribute only works when used on block-level tags. Personally, I think this is something that beginners can easily overlook, so I wrote it down!
First of all, we can divide HTML tags into block-level tags, inline tags, and inline block tags according to different displays; we will introduce them separately now.
Block-level tag
Features: Occupies one line, and takes effect for the settable attribute values of height, width, line height, and top and bottom margins; if no width is given, the block-level element will The default is the width of the browser, that is, 100% width;
Typical block-level tags are:
, h series,