XHTML three types of elements

Source: Internet
Author: User

XHTML three types of elements: block-level elements/inline elements/mutable elements

Block-level elements: a single row, customizable own width and height, as a container for other elements, can accommodate other inline elements and block-level elements, to make a box.
Inline elements: Always in-line display, cannot set the width height, the width is supported by the content, can be defined padding/margin/border/background.
mutable element: Determines whether a block-level element or an inline element is determined by context.
Note: Transformations can be implemented between different element types through the display property.

Example:
Block-level elements: div/h1/p/form/hr/ifrom/...
Inline elements: span/i/em/b/strong/...
Variable elements: applet/button/del/iframe/ins/map/object/script/...


Element conversions:
display:none/block/inline/inline-block/table-cell/list-item/...
(Note: There are 18 values for display)

The default properties of the list are: List-item; li/ul/
The default properties of the table are: Table-cell; for example: table/td/tr/th/
The default values for IMG and input are: Inline-block; (inline block)

XHTML three types of elements

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.