what is Doc Type In Html



<!DOCTYPE>

It is not a Tag But it is a instruction to web browser about what version its Using
The <!Doctype> always be play on the top of html document. Comes befor <html> tag
And doctype define description of DTD(document type Description)

Different doctype declarations

1).html strick:-

2)Transitional:-

3)Frameset:-

4)HTML5:-

Now Currently most people using HTML5


Example:-

<!DOCTYPE html>
<html>
<head>
<title>Demo Site</title>
</head>

<body>
Hellow How are You

</body>

</html>


No comments:

Post a Comment

Thank You For Your Great Contribution

Featured Post

Sql dynamic query With Join And search using like query with multiple column

Sql dynamic query With Join And search using like query with multiple column declare @keyword varchar(100) DECLARE @sqlCommand va...

Popular Posts