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 Dynamic Upload multiple files with extra detail of model in asp.net core

 How To Dynamic Upload multiple files with extra detail of model in asp.net core  1). firstly create Model File  namespace MyModel {     pub...

Popular Posts