2015-06-17

Source: Internet
Author: User

The role of DOCTYPE? The difference between strict mode and promiscuous mode and trigger conditions?

  1. DOCTYPE is used to specify which criteria the browser will use to parse (HTML or XHTML pages).
  2. In strict mode, the page is rendered in standard specification, while in promiscuous mode the page is rendered in a loose backward-compatible specification.
  3. Trigger condition: Strict mode: 1. When full doctype is included, strict mode will be executed, DOCTYPE with strict DTD and DOCTYPE with transition DTD and URI are generally executed in strict mode, but doctype with transition DTD but no URI is parsed in promiscuous mode, DOCTYPE does not exist or the existence of an incorrect way is also resolved by promiscuous mode.
  4. A bug in IE6 and previous browsers is that if the first element is not doctype, then the browser will parse in promiscuous mode, so don't arbitrarily add the XML declaration to XHTML.

Ii. What are the elements in the line? What are block-level elements? CSS box model?

  1. Block-level elements: div p H1 H2 H3 h4 form UL
  2. Inline elements: A b br i span input Select
  3. CSS box model: Content, Border, margin,padding

2015-06-17

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.