PREPARE FOR C779 - WEB DEVELOPMENT
FOUNDATIONS STUDY GUIDE - (150)QUESTIONS
WITH RADICLE RATIONALES
IT & Cybersecurity
Exam coverage:
• Section 1 (Q1–25): HTML fundamentals, document
structure, semantic elements, forms, and links.
• Section 2 (Q26–50): CSS basics, selectors, specificity,
cascading, and styling properties.
• Section 3 (Q51–75): CSS layout (Flexbox, Grid, Box Model),
responsive design, and media queries.
• Section 4 (Q76–100): JavaScript basics, DOM
manipulation, arrays, functions, and ES6+ features.
• Section 5 (Q101–125): Web standards (W3C, XHTML,
XML), accessibility (WCAG, ARIA), and best practices.
• Section 6 (Q126–150): Web hosting, protocols (HTTP,
DNS), additional technologies (Canvas, Geolocation), and
development tools.
Section 1: HTML Fundamentals & Document Structure
(Questions 1–25)
Question 1
A web developer is creating a new webpage and needs to define
the document type and the root element that encloses all
content. Which of the following correctly establishes the
document type and root element for an HTML5 document?
A. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
, Page 2 of 85
4.01//EN"> followed by <html>
B. <!DOCTYPE html> followed by <html>
C. <?xml version="1.0" encoding="UTF-8"?> followed by <html>
D. <!DOCTYPE HTML> followed by <html
xmlns="http://www.w3.org/1999/xhtml">
CORRECT ANSWER: B
RATIONALE: In HTML5, the document type declaration is
simplified to <!DOCTYPE html>, which is case-insensitive and
tells the browser to render the page in standards mode.
The <html> element is the root element that encloses all
content. Options A and D are for older HTML versions or XHTML,
while option C is for XML documents.
Question 2
A developer wants to organize the main navigation links for a
website. Which HTML5 semantic element is most appropriate
for containing the primary navigation menu?
A. <div id="nav">
B. <navigation>
C. <nav>
D. <menu>
CORRECT ANSWER: C
RATIONALE: The <nav> element is a semantic HTML5 element
specifically designed to contain major navigation links for a
website. It provides meaning to both browsers and assistive
technologies, improving accessibility and SEO. <div> is non-
, Page 3 of 85
semantic, <navigation> is not a valid HTML element,
and <menu> is used for interactive command menus.
Question 3
A developer is writing HTML code and needs to include the main
content of the webpage that is unique to that page, excluding
headers, footers, and sidebars. Which semantic element
should be used?
A. <section>
B. <main>
C. <article>
D. <content>
CORRECT ANSWER: B
RATIONALE: The <main> element represents the dominant
content of the <body> of a document. It should be unique to the
document and not repeated across pages (like headers, footers,
or sidebars). <section> groups related
content, <article> represents self-contained content that could
be distributed independently, and <content> is not a valid HTML
element.
Question 4
A developer needs to create a hyperlink that opens the linked
document in a new browser tab. Which attribute and value
should be used with the <a> tag?
, Page 4 of 85
A. target="_self"
B. target="_blank"
C. target="_parent"
D. target="_top"
CORRECT ANSWER: B
RATIONALE: The target="_blank" attribute value instructs the
browser to open the linked document in a new tab or
window. _self opens in the same frame, _parent opens in the
parent frameset, and _top opens in the full body of the window.
Question 5
Which HTML tag is used to define an unordered list with bullet
points, and which tag is used for each list item?
A. <ul> and <li>
B. <ol> and <li>
C. <list> and <item>
D. <ul> and <item>
CORRECT ANSWER: A
RATIONALE: <ul> defines an unordered (bulleted) list,
and <li> defines each list item within the list. <ol> defines an
ordered (numbered) list. <list> and <item> are not valid HTML
elements.