Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Study Comrade | Web Development

Total questions: 30

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is/are examples of block-level elements in HTML?

a)

<div>

b)

<p>

c)

<h1>

d)

All of these

2.

How many characters can be written in 1KB?

a)

1048

b)

1024

c)

1000

d)

None of these

3.

What are those objects called which are used for storing data on the client provided by the HTML local storage?

a)

window. localStorage

b)

window.sessionStorage

c)

Both A and B

d)

None of these

4.

Which HTML tag is used to set up a Javascript-like client-side scripting language?

a)

<script>

b)

<select>

c)

<anchor>

d)

None of these

5.

If you have used inline, internal, and external all the 3 stylings in HTML for a single element then which style will be applied?

a)

Inline

b)

external

c)

internal

d)

None of the above

6.

Which of the following is the correct HTML syntax for adding background color?

a)

<p style=”backgroundColor: #a7b8c9”></p>

b)

<p style=”background-color= #a7b8c9”></p>

c)

<p style=”background-color: #a7b8c9”></p>

d)

<p style=”color: #a7b8c9></p>

7.

Comments in HTML are done by:

a)

<?-- -->

b)

<!-- -->

c)

<!-- --!>

d)

</-- -->

8.

Which is the correct HTML syntax for adding a link to the image?

a)

<a src=”http://www.xyz.com/image”><img src=”image path” /></a>

b)

<a src=”http://www.xyz.com/image”><img href=”image path” /></a>

c)

<link href=”http://www.xyz.com/image”><img src=”image path” /></link>

d)

<a href=”http://www.xyz.com/image”><img src=”image path” /></a>

9.

Which of the following are not semantic tags?

a)

<div>

b)

<nav>

c)

<article>

d)

<summary>

10.

Using which attribute we can add a tooltip in the HTML element.

a)

Tooltip

b)

title

c)

ref

d)

None of these

11.

Which of the following is not a value of the attribute display?

a)

Inline-fex

b)

fexbox

c)

fex

d)

grid

12.

Which of the following is correct about custom attributes in HTML5?

custom data attribute starts with data- and would be named based on the

requirement.

a)

The values of these attributes can be retrieved using JavaScript APIs or CSS

b)

similar to standard attribute.

c)

Both of these

d)

None of these

13.

Which of the following attribute triggers an event, when all the media data of media element is loaded?

a)

Onloadedmetada

b)

onloadstart

c)

onmessage

d)

Onoffine

14.

Which attribute defnes the accelerator key to be used for keyboard access

to an element.

a)

Data-x

b)

common

c)

accesskey

d)

Src

15.

How to set the playback speed of audio/video?

a)

Playbackrate

b)

defaultPlaybackrate

c)

currentTime

d)

Duration

16.

Which one is not a semantic html5 element?

a)

<article>

b)

<mark>

c)

<section>

d)

<span>

17.

Which of the following method cancels an ongoing watch Position call?

a)

geolocation.watchPosition()

b)

geolocation.getcurrentPosition()

c)

geolocation.clearPosition()

d)

geolocation.clearCurrentPosition()

18.

Which of the following attribute triggers events when the document has

changed?

a)

Onhaschange

b)

onchange

c)

ischanged

d)

inputchange

19.

Why iframe is used?

a)

To display animation within a web page

b)

To display web page without browser

c)

To display web page within a web page

d)

All of these

20.

Which of the following attribute specifes if the user can edit the element's

content or not?

a)

Content

b)

editable

c)

contenteditable

d)

contextmenu

21.

Which of the following attribute triggers events before the document is

printed?

a)

Beforeprint

b)

onbeforeprint

c)

onprint

d)

onafterprint

22.

To add a plain color background to your web page, use

which of the following?

a)

<body bgcolor= “36,24,35”>

b)

<body color= “# FF000”>

c)

<body bgcolor= “# FF000”>

d)

All of the above

23.

Adding a border to your image helps the visitor to

recognize it as what?

a)

A frame

b)

A link

c)

A picture

d)

None of these

24.

WYSIWYG stands for _______

a)

What You See Is What You Get

b)

What you See Is What You Gain

c)

When You Start Is When You Go

d)

None of these

25.

Which tag tells the browser where the page starts and

stops?

a)

<html>

b)

<body>

c)

<head>

d)

<title>

26.

The main container for <TR>, <TD> and <TH> is _______

a)

<DATA>

b)

<GROUP>

c)

<TABLE>

d)

None of these

27.

When is the content of a table shown?

a)

Before the border loads

b)

After the table is loaded

c)

In pieces as it loads

d)

None of the above

29.

Increasing the cellpadding means __________

a)

Increase the softness of your site

b)

Increase the space between cells

c)

Increase the distance between cell and content

d)

All of the above

30.

Which colors consist of equal amounts of all basic

colors?

a)

white, blue and gray

b)

white, black and gray

c)

purple, green and blue

d)

None of these