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

how to find duplicate item from array using multiple object keys in angular or javascript

 how to find duplicate item from array using multiple object keys There is a way to find based of multiple key find duplicate records in ang...

Popular Posts