Download: CMSC 335 Midterm 1 Quizlet
Question 1
What is the primary function of Hypertext Markup Language (HTML) in web development?
-
Correct Answer: To define the structural blueprint and content framework of a web page.
-
Rationale: HTML is standardized to provide the semantic structure and layout architecture of a document, leaving presentation and styling to other technologies like CSS.
Question 2
Which international standards organization is officially responsible for developing and maintaining the HTML specification?
-
Correct Answer: World Wide Web Consortium (W3C).
-
Rationale: The W3C is the dedicated industry consortium designated to develop open standards, guidelines, and specifications to ensure the long-term growth of the Web.
Question 3
Which statement accurately describes the underlying file nature of a standard HTML document?
-
Correct Answer: HTML documents are standard ASCII or text-based files saved with an explicit
.htmlfile extension. -
Rationale: At their core, HTML files are simple text characters interpreted linearly by web browsers when identified by the correct file extension.
Question 4
When building a modern web user interface, how should structural assembly and stylistic presentation ideally be managed?
-
Correct Answer: HTML should describe the document structure, whereas visual styling should be abstracted to Cascading Style Sheets (CSS).
-
Rationale: Separating semantic structure (HTML) from visual presentation (CSS) ensures clean architecture, cross-device accessibility, and easier site updates.
Question 5
To comply with the modern HTML5 standard specification, what must be declared on the absolute first line of the document?
-
Correct Answer:
<!DOCTYPE html> -
Rationale: The explicit doctype instruction must lead the document to trigger compliance rendering mode and prevent the browser from reverting to quirks mode.
Question 6
In a structurally sound HTML document sequence, which element immediately follows the document type declaration?
-
Correct Answer: The opening
<html>root element. -
Rationale: The
<html>tag acts as the absolute container for all other document nodes and must encapsulate everything following the doctype declaration.
Question 7
What type of data is intentionally isolated inside the <head>...</head> container of an HTML file?
-
Correct Answer: The configurations and metadata needed by the browser to interpret the page, which do not appear in the primary viewscreen canvas.
-
Rationale: The head tag holds document metrics, links to scripts, styling sheets, and metadata parameters critical for search tracking and system rendering, without displaying content directly on the page.