Traditional HTML5 tags classification and display details, html5display
Contents [1] features [2] display block inline-block none list-item Table Elements
Traditionally, HTML tags are divided into blocks, inline blocks, and inline blocks.
Feature block level
[1] when no width is set, the width is full
[2] exclusive row
[3] Support for width and height
Inline level
[1] Open Content width
[2] A non-exclusive row
[3] width and height are not supported
[4] code line breaks are parsed into spaces
Inline Block
[1] when no width is set, the content is opened
[2] A non-exclusive row
[3] Support for width and height
[4] code line breaks are parsed into spaces
Displaydisplay: block
<Address>
<Article>
<Aside>
<Blockquote>
<Body>
<Dd>
<Details>
<Div>
<Dl>
<Dt>
<Fieldset>
<Figcaption>
<Figure>
<Footer>
<Form>
<H1>
<Header>
<Hgroup>
<Hr>
<Html>
<Legend>
<Menu> (not supported by all browsers)
<Menuitem> (only supported by firefox)
<Nav>
<Ol>
<Optgroup>
<Option>
<P>
<Section>
<Summary>
<Ul>
Display: inline
<A>
<Abbr>
<Area>
<B>
<Bdi>
<Bdo>
<Br>
<Cite>
<Code>
<Del>
<Dfn>
<Em>
<I>
<Ins>
<Kbd>
<Label>
<Map>
<Mark>
<Output>
<Pre>
<Q>
<Rp>
<Rt>
<Ruby>
<S>
<Smap>
<Small>
<Span>
<Strong>
<Sub>
<Sup>
<Time>
<Track> (not supported by all browsers)
<U>
<Var>
<Wbr>
Display: inline-block
<Audio>
<Button>
<Canvas>
<Embed>
<Iframe>
<Input>
<Keygen>
<Meter>
<Object>
<Progress>
<Select>
<Textarea>
<Video>
Display: none
<Base>
<Link>
<Meta>
<Title>
<Datalist>
<Dialog>
<Param>
<Script>
<Source>
<Style>
Display: list-item (with three features of block-level elements)
<Li>
Display of Table Elements
table{display: table;}thead{display: table-header-group;}tbody{display: table-row-group;}tfoot{display: table-footer-group;}tr{display: table-row;}td,th{display: table-cell;}col{display: table-column;}colgroup{display: table-column-group;}caption{display: table-caption;}