Webpage Markup Declaration Quiz Form
Test your knowledge of doctype declarations and foundational HTML markup.
What is the primary purpose of the doctype declaration in an HTML document?
*
It tells the browser which HTML standard or mode to use when parsing the document.
It displays the page title in the browser tab.
It loads the page’s CSS stylesheets.
It creates the visible content area of the page.
Which is the correct HTML5 doctype declaration?
*
1
2
3
4
Which sequence best represents the basic structure of an HTML document?
*
DOCTYPE declaration, html element, head and body elements
DOCTYPE declaration, body element, then html element
Head element, DOCTYPE declaration, then body element
Title element, body element, then DOCTYPE declaration
What is the main role of the element?
*
To contain document metadata and references to resources, rather than the main visible page content
To contain all text and images shown in the page body
To define the page’s footer
To declare the document type
Which statement about the element is correct?
*
It contains the page content intended to appear in the browser viewport.
It contains only metadata that is not displayed on the page.
It replaces the element as the document root.
It is used only to set the browser tab title.
Which element commonly declares the character encoding for an HTML document?
*
5
6
UTF-8
7
Where should the document’s element be placed, and what does it typically provide?
*
Inside ; it provides the document title shown in the browser tab or window.
Inside ; it creates the page’s main visible heading.
Inside
Before the DOCTYPE; it selects the HTML version.
Which element is a semantic choice for marking up the main navigation links on a page?
*
In
Visit site
, what is href?
*
An attribute that specifies the link destination
The closing tag for the anchor element
The visible link text
A separate element that opens a new page
Write the closing tag for a paragraph element.
*
Submit Quiz
Should be Empty: