Register now or log in to join your professional community.
Yeah! its very basic Question. The docType in HTML is declaration is used to inform a website visitor's browser that the document being rendered is an HTML document. <!DOCTYPE html> is doctypeof html 5. And the CharSet in HTML is specifies the character encoding used in the style sheet
Doctypes tell the browser in what language the page is written in, be it HTML or XHTML.
Charset is a method of converting bytes into characters. To validate or display an HTML document, a program must choose a character encoding. HTML 5 authors have three means of setting the character encoding