Font size
WorksheetsHTML Day-2
Total questions: 25
Worksheet time: 15mins
Which tag is used to create an HTML form?
<input>
<form>
<table>
<fieldset>
Which attribute specifies where form data is sent?
method
name
action
value
Which input type is required to trigger a form submission?
reset
confirm
submit
cancel
Which tag is used to display a dropdown list?
<option>
<select>
<list>
<dropdown>
Multi-line text input uses (a) tag.
Which attribute specifies the image file path?
alt
href
src
link
Which tag is used to add an image caption?
<caption>
<img>
<figcaption>
<p>
Which tag is used to display an image in HTML?
<image>
<img>
<pic>
<src>
The (a) attribute shows text when image is not loaded.
Which attribute is mandatory for <img> tag?
alt
height
width
src
Which tag is used to specify audio file inside <audio>?
<src>
<file>
<track>
<source>
Which attribute repeats the audio after it ends?
autoplay
loop
continue
preload
Which attribute loads audio when page loads?
preload
controls
loop
muted
Which tag is used to add audio in HTML?
<sound>
<audio>
<music>
<audiou>
MP3, WAV, and OGG are (a) formats.
Which tag is used to specify video files inside <video>?
<sourece>
<src>
<source>
<file>
To correctly embed a video using the <video> element, what must the developer provide?
Only the controls attribute.
Either a src attribute or child <source> elements.
A mandatory autoplay attribute.
CSS styling for the video dimensions.
If a developer includes a <video> tag in their HTML without explicitly defining a preload attribute, what is the default behavior of most modern browsers?
The browser will only load the first frame.
The browser treats it as preload="auto" and attempts to load the full video.
The browser treats it as preload="none" to save bandwidth.
The browser will prompt the user for permission to download.
Which attribute shows a preview image before video plays?
poster
thumbnail
image
preview
MP4, WebM, and OGG are (a) formats.
What are semantic elements in HTML5?
Elements with style
Elements that describe meaning
Elements for images only
Elements without tags
Which tag represents the header of a webpage?
<top>
<head>
<header>
<section>
Which tag represents independent content like a blog post?
<section>
<article>
<div>
<aside>
Which tag is used for sidebar content?
<side>
<aside>
<section>
<footer>
The (a) element defines a section that contains navigation links.
