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. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *