What is the purpose of DOCTYPE?

Asked 06 Dec, 15 at 10:18 AM

Tamanna Sharma

Answer

Hi Tamanna Sharma,

You Can Read The Following Line To Create The Pie Chart.
The Doctype Does Two Things.

1.It Identifies Which Dialect Of HTML You're Using.

2.It Controls Whether The Browsers Uses "standards" Or "quirks" Mode To Render The Document.

The Doctype Declaration Should Be The Very First Thing In An HTML Document, Before The Tag. The Doctype Declaration Is Not An HTML Tag; It Is An Instruction To The Web Browser About What Version Of The Markup Language The Page Is Written In. The Doctype Declaration Refers To A Document Type Definition (DTD).
!DOCTYPE Html Tag

like