OneCompiler

do you know?

What is the role of the DOCTYPE declaration in an HTML document?

1 Answer

1 year ago by

The DOCTYPE declaration informs the browser about the type and version of HTML being used, ensuring the page is rendered correctly. For HTML5, it looks like:

<!DOCTYPE html>
1 year ago by senpie956