Title
Question
HTML My-first-HTML-program 01-02 min 0-10 sec
Answers:
All HTML documents must start with a <code class="w3-codespan" style="box-sizing: inherit; font-family: Consolas, Menlo, "courier new", monospace; font-size: 15.75px; color: crimson; background-color: rgba(222, 222, 222, 0.3);"><!DOCTYPE></code> declaration.
The declaration is not an HTML tag. It is an "information" to the browser about what document type to expect.
In HTML 5, the declaration is simple: <span class="tagcolor" style="box-sizing: inherit; color: mediumblue; font-family: Consolas, Menlo, "courier new", monospace;"><</span><span style="color: rgb(165, 42, 42); font-family: Consolas, Menlo, "courier new", monospace;">!DOCTYPE</span><span class="attributecolor" style="box-sizing: inherit; color: red; font-family: Consolas, Menlo, "courier new", monospace;"> html</span><span class="tagcolor" style="box-sizing: inherit; color: mediumblue; font-family: Consolas, Menlo, "courier new", monospace;">></span>
Login to add comment