Font size
WorksheetsQuiz 2 - HTML
Total questions: 100
Worksheet time: 50mins
A student saves a file as hello.HTML instead of hello.html. The file still opens correctly in the browser. What concept explains this behavior?
HTML syntax tolerance
File extension dependency
Case-insensitive file handling
Browser rendering override
A webpage displays correctly on desktop but appears zoomed-in on mobile devices. Which missing configuration MOST likely caused this?
<meta charset="UTF-8">
<html lang="en">
<meta name="viewport">
<title>
A student places visible text inside the
tag, but nothing appears in the browser window. Why?The browser ignores text nodes
The
tag only stores metadataThe
The browser encountered a syntax error
Which situation BEST demonstrates the importance of the declaration?
Styling elements correctly
Enabling JavaScript execution
Preventing browser compatibility issues
Linking external web pages
A student opens an HTML tag last but closes it first, breaking the page structure. Which rule was violated?
Semantic hierarchy
Tag nesting order
Attribute-value pairing
Browser parsing priority
Which scenario BEST justifies the use of ?
Faster page loading
Proper search engine indexing and accessibility
Automatic translation
Enabling responsive design
A student wants text to appear on the browser tab, not on the page itself. Which tag is REQUIRED?
<meta>
<head>
<head>
<h1>
Which content placement will ALWAYS be visible to users by default?
Inside
Inside
Inside
Inside
A developer uses <h1> tags repeatedly for visual size only. What is the MAIN problem with this approach?
It increases file size
It breaks the browser
It damages semantic structure
It disables CSS
A webpage uses <br /> instead of <p>
for paragraphs. Which issue is MOST likely?
Syntax error
Poor document semantics
Browser crash
Image distortion
Which heading structure BEST follows HTML hierarchy rules?
<h3> → <h1> → <h2>
<h1> → <h2> → <h3>
<h6> → <h1>
<h4> → <h2>
Why is <br /> preferred over
for text blocks?
loads faster
improves accessibility and structure
is deprecated
cannot be styled
An image fails to load, but descriptive text appears instead. Which attribute enabled this fallback?
src
alt
title
height
Which image attribute directly affects page layout if misused?
alt
src
width
comment
A student adds comments to explain code logic. Why are comments safe to use?
They load after rendering
They are removed during execution
Browsers ignore them during display
They compile separately
Which comment placement is VALID in HTML?
Inside attribute values
Inside
Anywhere in the HTML document
Inside file names
Which situation BEST fits an unordered list?
Step-by-step instructions
Ranking of students
Grocery items
Chronological events
A list uses bullets instead of numbers by default. Which tag is responsible?
<ol>
<ul>
<li>
<dl>
A developer wants Roman numerals (I, II, III). Which configuration is correct?
<ul type="I">
<li type="I">
<ol type="I">
<ol style="roman">
Which error will break list structure?
Placing
Omitting
Using
- for steps
Nesting lists
Which tag defines the entire table structure?
<thead>
<tbody>
<table>
<tr>
Which tag is used ONLY for header cells?
<td>
<tr>
<thead>
<th>
Why are table headers bold and centered by default?
Browser styling rules
CSS inheritance
HTML semantic meaning
JavaScript formatting
Which structure improves table readability and organization?
Using only
Grouping rows with
andAdding
Using lists inside tables
A student wants a clickable text that opens another webpage. Which tag is REQUIRED?
<link>
<href>
<a>
<nav>
Which attribute defines the destination of a hyperlink?
src
link
href
url
A broken link redirects nowhere. What is the MOST likely issue?
Missing
Incorrect href value
Missing
Invalid
Why are hyperlinks considered essential in web documents?
They add color
They enable document interconnection
They improve speed
They replace navigation
Which scenario BEST demonstrates semantic elements?
<div id="header">
<div class="nav">
<header>
<div>
Why were semantic elements introduced in HTML5?
To reduce file size
To replace CSS
To clarify meaning of page sections
To remove JavaScript
A search engine understands page structure better due to:
usage
Semantic elements
Inline styles
Comments
Which practice BEST improves accessibility?
Using many
Adding images without alt
Proper semantic HTML structure
Using only
Which browser behavior proves HTML files are text-based?
They execute automatically
They open in editors
They require compilation
They encrypt content
Why is Visual Studio Code recommended?
Paid license
Built-in browser
Free and lightweight
Mandatory for HTML
A student saves but forgets to refresh the browser. What happens?
Browser updates automatically
Changes do not appear
File deletes itself
Syntax error occurs
Which action confirms correct HTML file creation?
No errors in code
Browser icon appears on file
Title loads slowly
Code highlights change
Which situation BEST describes HTML’s role?
Styling webpages
Structuring content
Programming logic
Database management
Which error affects responsiveness MOST?
Missing
Missing viewport meta
Missing comments
Missing
Which practice MOST aligns with HTML5 standards?
Using
Ignoring semantics
Using meaningful tags
Repeating headings
Why should content be saved BEFORE coding?
To avoid syntax rules
To ensure file recognition
To reduce errors
To enable CSS
A student nests
tags inside another
tag. The browser still displays text but the structure is incorrect. What does this demonstrate?
HTML enforces strict validation
Browsers correct developer mistakes
HTML requires compilation
Tags must be capitalized
A webpage loads but displays inconsistent spacing across browsers. What is the MOST likely cause?
Missing
Improper HTML structure
Incorrect file extension
Browser cache issue
A developer places tags inside the
element. What is the result?Page fails to load
Metadata is ignored or misinterpreted
Browser crashes
Title changes automatically
Why is saving an HTML file BEFORE writing code emphasized in beginner lessons?
To activate CSS
To ensure correct file association
To prevent tag nesting
To enable JavaScript
A webpage shows content but fails accessibility checks. Which mistake MOST likely caused this?
Missing
Missing alt attributes on images
Incorrect
Overuse of
Which HTML feature MOST helps screen readers understand page layout?
tags
Semantic elements
Comments
A student wants to visually enlarge text and uses
instead of CSS. What principle is violated?
Separation of structure and style
File naming convention
Browser compatibility
Hyperlink hierarchy
Which mistake may still show output but is considered BAD PRACTICE?
Using lowercase tags
Improper tag nesting
Adding comments
Using UTF-8
A table displays data but lacks clear column meaning. What improvement is MOST appropriate?
Add more rows
Use
Add
Insert
Which tag combination BEST improves table structure?
<table> + <tr> only
<table> + <thead> + <tbody>
<table> + <p>
<table> + <ul>
A hyperlink appears as text but does nothing when clicked. What is the MOST likely issue?
Why is HTML described as "fault tolerant"?
It ignores CSS
Browsers attempt to render even with errors
It auto-fixes code
It validates syntax
Which practice MOST supports SEO and accessibility?
Multiple
tags for style
No headings
Proper heading hierarchy
Using
for spacing
A student uses
Styling
Semantic meaning
Browser support
File validation
Which HTML feature helps mobile devices scale content correctly?
Charset meta
Title tag
Viewport meta
Comment tag
Why should
They require attributes
They must belong to a list container
They are deprecated
They cause errors
A student places text directly under without
. What is the consequence?Page fails
Browser restructures content
File deletes content
Syntax error occurs
Why are comments useful in collaborative development?
They reduce loading time
They explain code intent
They affect layout
They encrypt logic
Which HTML component controls what appears on the browser tab?
A student copies HTML code but forgets to refresh the browser. What happens?
Browser auto-refreshes
Old content remains visible
Code resets
File closes
Which error MOST affects document readability but not rendering?
Missing
Incorrect indentation
Missing
Missing
Why should headings not skip levels (e.g.,
to )?
It slows rendering
It confuses document structure
It breaks CSS
It hides content
Which HTML tag is MOST important for defining document language?
A student uses images without alt text. Which group is MOST affected?
Desktop users
Screen reader users
Developers
Browsers
Which practice aligns BEST with HTML5 standards?
Styling with headings
Meaningful semantic tags
Excessive
Inline formatting
Which scenario BEST shows HTML’s structural role?
Coloring text
Arranging content sections
Animating elements
Handling user input
Why is Visual Studio Code preferred over word processors?
It auto-runs HTML
It preserves plain text formatting
It embeds browsers
It compiles code
Which HTML mistake MOST affects accessibility tools?
Missing comments
Missing semantic tags
Extra whitespace
File naming
Which behavior confirms HTML is interpreted, not compiled?
Errors stop execution
Pages render despite errors
Files encrypt automatically
Browser crashes
Why is
required even if it shows no visible content?For styling
For metadata and configuration
For images
For layout
Which is the BEST indicator of a properly structured HTML file?
Colorful output
Correct tag nesting
File size
Number of tags
A student uses
for layout spacing. What is the long-term issue?
Browser incompatibility
Poor maintainability
Syntax error
File corruption
Which HTML element improves meaning WITHOUT changing appearance?
Semantic elements
Which action MOST improves code readability?
More tags
Comments and indentation
Inline styles
Repeated headings
Why is HTML considered beginner-friendly?
It uses variables
It tolerates minor errors
It requires compilers
It encrypts code
Which mistake may NOT immediately break the page but violates standards?
Uppercase tags
Missing semantic structure
Correct nesting
Using UTF-8
Which HTML feature directly supports responsive design?
Tables
Headings
Viewport meta
Comments
Why should
For styling
For browser identification and usability
For images
For scripts
Which BEST summarizes HTML’s main purpose?
Programming logic
Styling web pages
Structuring web content
Managing databases
HTML5 documents must follow a structured skeleton.
TRUE
FALSE
tags directly display content on the page.
TRUE
FALSE
The browser tab text comes from the
TRUE
FALSE
requires a closing tag.
TRUE
FALSE
Comments improve code readability without affecting output.
TRUE
FALSE
- or
- .
TRUE
FALSE
improves table semantics. TRUE FALSE Hyperlinks connect web documents. TRUE FALSE Semantic elements help both browsers and developers. TRUE FALSE HTML controls webpage styling directly. TRUE FALSE HTML is interpreted, not compiled. TRUE FALSE TRUE FALSE TRUE FALSE Proper tag nesting affects page rendering. TRUE FALSE File extension determines browser recognition. TRUE FALSE TRUE FALSE HTML5 supports responsive design via meta viewport. TRUE FALSE TRUE FALSE HTML structures web content. TRUE FALSE Incorrect structure may still display but is bad practice. TRUE FALSE 100 questions Unit 4 Class Test Worksheet • University 105 questions IT2105 - Preliminary Examination Worksheet • University 95 questions Вопросы по Objective-C и ООП (на казахском языке) Worksheet • University 100 questions ÔN THI EXCEL MOS Worksheet • University 102 questions Xác Suất Thống Kê Bài 1-3 Worksheet • University 100 questions Html, CSS and JavaScript Worksheet • University 102 questions Quiz sobre Planilhas Eletrônicas Worksheet • 10th Grade - University 100 questions икт сессия Worksheet • University
creates paragraph structure.Similar Resources on Wayground
