+ 2

What's doctype htMl

Am JST starting html and i wanna know More

23rd Nov 2024, 7:40 AM
Light
Light - avatar
2 odpowiedzi
+ 2
DOCTYPE, or document type declaration, is a line of code that tells a web browser or email client what version of HTML or markup language a document is written in: Purpose: The DOCTYPE declaration ensures that the web page is parsed correctly by different browsers. Without a DOCTYPE declaration, the email client may not render the page properly, resulting in an incorrect rendering. Location: The DOCTYPE declaration appears as the first line of code in an HTML file. Example: An example of a DOCTYPE declaration is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">. This instructs the browser to expect a document written in HTML 4.01 Transitional.
24th Nov 2024, 1:42 AM
darius franklin
darius franklin - avatar
+ 6
Light , the DOCTYPE html is declaration where you basically tell a Web browser the version of html you are using. You can see that HTML5 have DOCTYPE as <!DOCTYPE html>
23rd Nov 2024, 7:44 AM
Suparna Das
Suparna Das - avatar