Have you failed a job interview?
Send us your job interview questions and get correct answers.
What is !DOCTYPE?
Experience Level: Junior
<!DOCTYPE>is a declaration that defines at what version of HTML the page is written in. In helps the browser to understand how it should read the document.
- If the
<!DOCTYPE>is ommitted, the browser is trying to interpret the document, but it could be displaying it incorrectly. For that reason always add the
<!DOCTYPE>to you document.
<!DOCTYPE>declaration must be the first thing in your HTML document. It has to be even before the
<!DOCTYPE>declaration is not a tag.
Related HTML job interview questions
What is <sup> tag?HTML Junior
What is <sub> tag?HTML Junior
Which version of HML do you use?HTML Junior
What is <figure> tag?HTML Junior
How does HTML/CSS work with DOM?HTML Junior