HTML Interview Questions
What is doctype? Why do you need it? doctype tells the browser to parse the document as html5. Else it will guess how to parse it and can go into quirks mode. <!DOCTYPE html> It is the first tag of a valid html file, is not case-sensitive and…