Traditional HTML5 tags classification and display details, html5display

Source: Internet
Author: User

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;}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.