FrontendDeveloper.in

HTML Track Detail

What is the purpose of the `doctype` declaration?

<!doctype html> tells the browser to render the page in standards mode.

Without it, some browsers may switch to quirks mode, which can change layout behavior and cause inconsistent rendering.