Articles → HTML → Doctype In HTML
Doctype In HTML
Purpose Of Doctype
 
Syntax
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Sample
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>My first page</title>
	</head>
	<body></body>
</html>
Browser Support
 
| Internet Explorer | Firefox | Chrome | Safari | Opera | Edge | 
|---|
| Yes | Yes | Yes | Yes | Yes | Yes | 
| Posted By  -   | Karan Gupta | 
|   | 
| Posted On  -   | Thursday, October 15, 2015 | 
|   | 
| Updated On  -   | Tuesday, January 31, 2017 |