wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Day-2

Total questions: 25

Worksheet time: 15mins

Name
Class
Date
1.

Which tag is used to create an HTML form?

a)

<input>

b)

<form>

c)

<table>

d)

<fieldset>

2.

Which attribute specifies where form data is sent?

a)

method

b)

name

c)

action

d)

value

3.

Which input type is required to trigger a form submission?

a)

reset

b)

confirm

c)

submit

d)

cancel

4.

Which tag is used to display a dropdown list?

a)

<option>

b)

<select>

c)

<list>

d)

<dropdown>

5.

Multi-line text input uses (a)   tag.

6.

Which attribute specifies the image file path?

a)

alt

b)

href

c)

src

d)

link

7.

Which tag is used to add an image caption?

a)

<caption>

b)

<img>

c)

<figcaption>

d)

<p>

8.

Which tag is used to display an image in HTML?

a)

<image>

b)

<img>

c)

<pic>

d)

<src>

9.

The (a)   attribute shows text when image is not loaded.

10.

Which attribute is mandatory for <img> tag?

a)

alt

b)

height

c)

width

d)

src

11.

Which tag is used to specify audio file inside <audio>?

a)

<src>

b)

<file>

c)

<track>

d)

<source>

12.

Which attribute repeats the audio after it ends?

a)

autoplay

b)

loop

c)

continue

d)

preload

13.

Which attribute loads audio when page loads?

a)

preload

b)

controls

c)

loop

d)

muted

14.

Which tag is used to add audio in HTML?

a)

<sound>

b)

<audio>

c)

<music>

d)

<audiou>

15.

MP3, WAV, and OGG are (a)   formats.

16.

Which tag is used to specify video files inside <video>?

a)

<sourece>

b)

<src>

c)

<source>

d)

<file>

17.

To correctly embed a video using the <video> element, what must the developer provide?

a)

Only the controls attribute.

b)

Either a src attribute or child <source> elements.

c)

A mandatory autoplay attribute.

d)

CSS styling for the video dimensions.

18.

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?

a)

The browser will only load the first frame.

b)

The browser treats it as preload="auto" and attempts to load the full video.

c)

The browser treats it as preload="none" to save bandwidth.

d)

The browser will prompt the user for permission to download.

19.

Which attribute shows a preview image before video plays?

a)

poster

b)

thumbnail

c)

image

d)

preview

20.

MP4, WebM, and OGG are (a)   formats.

21.

What are semantic elements in HTML5?

a)

Elements with style

b)

Elements that describe meaning

c)

Elements for images only

d)

Elements without tags

22.

Which tag represents the header of a webpage?

a)

<top>

b)

<head>

c)

<header>

d)

<section>

23.

Which tag represents independent content like a blog post?

a)

<section>

b)

<article>

c)

<div>

d)

<aside>

24.

Which tag is used for sidebar content?

a)

<side>

b)

<aside>

c)

<section>

d)

<footer>

25.

The (a)   element defines a section that contains navigation links.