Doctype In Html5
Doctype declaration is an instruction to the browser about what type of markup language you will be using in a webpage.
Example of Doctype in HTML 1.0
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
<head>
<title>Ubersexy page</title>
</head>
<body>Nice webpage this is</body></html>
—————————————————————————————-
Declaring Doctype in HTML5 is damn easy! The above Doctype declaration just changes to something like this in HTML5:
<!DOCTYPE html >
<html>
<head>
<title>Ubersexy page</title>
</head>
<body>Nice webpage this is</body></html>
—————————————————————————————–
Easy isn’t it?
Advertisement

One Comment
Leave a CommentTrackbacks