Basic terminology in CSS

Source: Internet
Author: User
1. Document Flow: The default arrangement of page elements, according to the order of elements in the HTML document, from left to right, from top to bottom;

2. Block elements: The default is a row, in the vertical direction, you can set the width and height, such as:<div>,<p>,

3. Inline elements: By default in a row horizontally, width and height determined by the content, cannot be set, such as <span><a><em>...;

4. Replace element: element content is set by the attribute of the tag, which is actually a placeholder, for example <input type= "" >

5. Non-replacement elements: element content is included in the current label, e.g. <p>,

6. How do I differentiate between replacement and non-replacement elements?

6-1. Replace element because the element content comes from external resources, most need only one label, because the single label is more, but there are exceptions, such as:

<video><script><video>, ..... Most of these tags have src, which indicates the resource path to be introduced. If the contents of the label are either invalid,

Or it's just a resource introduction.

6-2. Non-replacement elements, the content of which is written directly by the user in the label, such as <p>,

<! DOCTYPE html>
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.