Current location - Education and Training Encyclopedia - Educational institution - What happens if you don't write doctype at the beginning of html
What happens if you don't write doctype at the beginning of html
Its main function is to declare the version of html.

& lt! DOCTYPE html & gt This is html5.

Failure to write may make the functions of html5 unusable.

Whether it will go wrong depends on the fault tolerance of the browser.

It is recommended to keep a standardized habit.