Quirks Mode in HTML

Professor Uzair
2 min readNov 27, 2023

--

Quirks Mode in HTML: credit BehinDev Team

Actually, “Quirks Mode” is a real term in web development! It refers to a compatibility mode in web browsers that allows older web pages to be displayed correctly even if they don’t strictly follow modern web standards.

When a browser encounters a web page without a proper <!DOCTYPE> declaration or one that doesn’t adhere to current HTML and CSS standards, it may switch to Quirks Mode. In this mode, the browser emulates older, non-standard behavior to render the page as intended, but it can lead to inconsistencies in how different browsers display the content.

Quirks Mode can indeed cause issues with rendering, potentially making the page unstable or causing unexpected behavior. It’s a term developers use to describe a specific state a browser enters when dealing with legacy or non-standardized web code.

Can YOU answer this?

Quirks Mode is when the browser:

a) Can become unstable and crash in the middle of rendering a web page.

b) Assumes that the HTML in the web page is NOT following the HTML standard, i.e., not in standards mode. Styles won’t work correctly, etc.

c) This is a made up term. No such thing

Yes, you are correct, the right answer is (b).

Join our training program for website development.

Apply for the internship in website development.

--

--

Professor Uzair
Professor Uzair

Written by Professor Uzair

Entrepreneur and CEO at BehinDev

No responses yet