Skip to content
September 10, 2009 / unitechy

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.