What is the difference between strict and transitional DOCTYPE in HTML 4.01?
- Strict doesn't allow inline styles, whereas Transitional does.
- Strict has deprecated tags, while Transitional does not.
- Strict is for XML documents, and Transitional is for HTML documents.
- Strict is for modern practices without deprecated tags, while Transitional allows for older practices and deprecated tags.
In HTML 4.01, two common DOCTYPEs were Strict and Transitional. The Strict DOCTYPE conforms to the latest HTML specifications and doesn't support deprecated tags or attributes. On the other hand, Transitional DOCTYPE was more forgiving and was designed to support web designers in transitioning their documents to use CSS and separate style from content, thus allowing some older and deprecated practices.
Loading...
Related Quiz
- For better accessibility, the ______ ARIA role should be used to indicate the role of the dropdown list.
- To represent a block-level quotation, the _______ element is used.
- Imagine that you are tasked with creating a data table that has numerous columns and rows. The first two columns contain critical information, while the rest can be viewed on demand. How would you approach designing this table responsively?
- The _______ HTML element is typically displayed as an inline-block.
- HTML comments can be used to _____ sections of code for testing purposes.