Detailed explanation of CSS block elements and inline elements and attributes

Source: Internet
Author: User
Div (main tab of CSS Layout), DL (definition list), H1~h6 (title), p (paragraph), table (table), UL (non-sorted list) features: will automatically occupy a certain rectangular space, you can set the height, width, internal and external margins and other properties to adjust the appearance of this rectangle Inline element A (hyperlink), span (commonly used inline container, define intra-text chunks), I (Italic), IMG, EM (accent), label features: 和其他元素都在一行上、 元素的高度、宽度、行高及顶部和底部边距不可设置、 元素的宽度就是它包含的文字或图片的宽度,不可改变。 Add: Inline-block renders an object as an inline object, but the contents of the object are rendered as a block object, after which inline objects are arranged in the same row

Detailed explanation of CSS block elements and inline elements and attributes

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.