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 post formdata or http.context.form data from angular 6 to asp.net mvc web api or api using Token based authentication with header

how to post formdata or http.context.form data from angular 6 to asp.net mvc web api or api using Token based authentication with header  ...

Popular Posts