Font size
WorksheetsHTML Day-3
Total questions: 25
Worksheet time: 18mins
What does XHTML stand for?
Extended Hyper Text Markup Language
Extra Hyper Text Markup Language
Extensible Hyper Text Markup Language
Example Hyper Text Markup Language
XHTML is based on which language?
HTML
CSS
XML
JavaScript
XHTML requires tags to be written in (a) case.
Which element is used to draw graphics using JavaScript?
(a)
Which HTML5 feature is used for drawing vector graphics?
Canvas
SVG
Video
Audio
The (a) API is used to get user location.
Where are meta tags placed in HTML?
<header>
<footer>
<head>
<html>
What is web accessibility?
Making websites faster
Making websites attractive
Making websites usable for everyone
Making websites smaller
Which HTML element improves page structure for accessibility?
(a)
Which element is keyboard accessible by default?
<div>
<span>
<button>
<p>
What does SEO stand for?
Search Easy Option
Search Engine Optimization
Site Engine Operation
Search Entry Order
Sitemap file extension is (a) .
What is Responsive Web Design?
Designing only for desktop
Designing for mobile & Tablet
Designing websites that adapt to different screen sizes
Designing fast websites
Which element represents independent content?
<section>
<article>
<aside>
<main>
Task completion is shown using the (a) element.
Which practice improves accessibility?
Using <div> everywhere
Adding alt text to images
Using inline styles
Using tables for layout
Why should semantic HTML be used?
For styling
For animation
For readability and accessibility
For database connection
(a) allow running JavaScript in the background without blocking the main thread.
WebSockets enable real-time, _____ communication between the client and server.
multi-directional
bidirectional
directional
unidirectional
HTML5 introduced the <picture> element and (a) attribute for responsive images.
_____ allows embedding machine-readable data in HTML documents.
bigdata
macrodata
largedata
Microdata
A drawing surface for rendering 2D graphics, (a) , and animations using JavaScript.
The HTML (a) tag specifies an inline frame.
What is the key distinction between `localStorage` and `sessionStorage` in the HTML5 Web Storage API?
localStorage data is cleared when the browser tab is closed, whereas sessionStorage data persists indefinitely.
localStorage can only store strings, while sessionStorage can store objects.
localStorage data persists even after the browser is closed, while sessionStorage data is cleared with the session.
localStorage is more secure than sessionStorage.
What is the primary function of the HTML5 Web Workers API?
To store key-value data on the client-side for the duration of a session.
To enable native drag-and-drop functionality for HTML elements.
To run JavaScript in a background thread, preventing the user interface from freezing
To embed external documents or webpages within the current page.
