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 remove multiple item from FormArray

 How to remove multiple item from FormArray Call Method at any component :- this.removeItems(formArray, formcontrolCountryID, 2);  Meth...

Popular Posts