HooneyLog

What is the DOCTYPE Declaration in HTML?

프로필 이미지

Seunghoon Shin

2022년 8월 27일 24:55

<!DOCTYPE html>

The required first line of every HTML file for telling the browser what version of html to use.

A doctype of html will use the modern HTML5 standard. While a page will usually render properly without a doctype declaration, they should still always be included as some older browsers will not render pages following the modern specification without it, which is sometimes called “quirks” mode.

What is Quirks Mode?

Quirks mode is a technique used by many web browsers for maintaining backward compatibility with web pages designed for old web browsers.