What are the two different modes of CSS?

The two modes that are used for interpreting CSS are quirks mode and strict mode. Quirks mode will allow web pages to display using the old rules. Strict mode specifies to use the latest standard. If the webpage starts with a DOCTYPE with Strict element then it would be using the strict mode.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

For a detailed information refer to the below link.

http://www.quirksmode.org/css/quirksmode.html

Related articles:

  1. What are different DOCTYPES available in W3C recommendations? The different DOCTYPES that are available are HTML 4.01 Strict...
  2. What are different DOCTYPES available in W3C recommendations? The different DOCTYPES that are available are HTML 4.01 Strict...
  3. What is XHTML? XHTML stands for Extensible Hypertext Mark-up Language and it is...
  4. Who creates HTML or XHTML standards? W3C stands for World Wide Web Consortium (W3C)  and they...
  5. Why do we need to follow HTML or XHTML standards? HTML or XHTML standards need to be followed by web...

Leave a Comment

Previous post:

Next post: