WorksheetsStudy Comrade | Web Development
Total questions: 30
Worksheet time: 10mins
Which of the following is/are examples of block-level elements in HTML?
<div>
<p>
<h1>
All of these
How many characters can be written in 1KB?
1048
1024
1000
None of these
What are those objects called which are used for storing data on the client provided by the HTML local storage?
window. localStorage
window.sessionStorage
Both A and B
None of these
Which HTML tag is used to set up a Javascript-like client-side scripting language?
<script>
<select>
<anchor>
None of these
If you have used inline, internal, and external all the 3 stylings in HTML for a single element then which style will be applied?
Inline
external
internal
None of the above
Which of the following is the correct HTML syntax for adding background color?
<p style=”backgroundColor: #a7b8c9”></p>
<p style=”background-color= #a7b8c9”></p>
<p style=”background-color: #a7b8c9”></p>
<p style=”color: #a7b8c9></p>
Comments in HTML are done by:
<?-- -->
<!-- -->
<!-- --!>
</-- -->
Which is the correct HTML syntax for adding a link to the image?
<a src=”http://www.xyz.com/image”><img src=”image path” /></a>
<a src=”http://www.xyz.com/image”><img href=”image path” /></a>
<link href=”http://www.xyz.com/image”><img src=”image path” /></link>
<a href=”http://www.xyz.com/image”><img src=”image path” /></a>
Which of the following are not semantic tags?
<div>
<nav>
<article>
<summary>
Using which attribute we can add a tooltip in the HTML element.
Tooltip
title
ref
None of these
Which of the following is not a value of the attribute display?
Inline-fex
fexbox
fex
grid
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.
The values of these attributes can be retrieved using JavaScript APIs or CSS
similar to standard attribute.
Both of these
None of these
Which of the following attribute triggers an event, when all the media data of media element is loaded?
Onloadedmetada
onloadstart
onmessage
Onoffine
Which attribute defnes the accelerator key to be used for keyboard access
to an element.
Data-x
common
accesskey
Src
How to set the playback speed of audio/video?
Playbackrate
defaultPlaybackrate
currentTime
Duration
Which one is not a semantic html5 element?
<article>
<mark>
<section>
<span>
Which of the following method cancels an ongoing watch Position call?
geolocation.watchPosition()
geolocation.getcurrentPosition()
geolocation.clearPosition()
geolocation.clearCurrentPosition()
Which of the following attribute triggers events when the document has
changed?
Onhaschange
onchange
ischanged
inputchange
Why iframe is used?
To display animation within a web page
To display web page without browser
To display web page within a web page
All of these
Which of the following attribute specifes if the user can edit the element's
content or not?
Content
editable
contenteditable
contextmenu
Which of the following attribute triggers events before the document is
printed?
Beforeprint
onbeforeprint
onprint
onafterprint
To add a plain color background to your web page, use
which of the following?
<body bgcolor= “36,24,35”>
<body color= “# FF000”>
<body bgcolor= “# FF000”>
All of the above
Adding a border to your image helps the visitor to
recognize it as what?
A frame
A link
A picture
None of these
WYSIWYG stands for _______
What You See Is What You Get
What you See Is What You Gain
When You Start Is When You Go
None of these
Which tag tells the browser where the page starts and
stops?
<html>
<body>
<head>
<title>
The main container for <TR>, <TD> and <TH> is _______
<DATA>
<GROUP>
<TABLE>
None of these
When is the content of a table shown?
Before the border loads
After the table is loaded
In pieces as it loads
None of the above
What is the correct HTML for creating a hyperlink?
Increasing the cellpadding means __________
Increase the softness of your site
Increase the space between cells
Increase the distance between cell and content
All of the above
Which colors consist of equal amounts of all basic
colors?
white, blue and gray
white, black and gray
purple, green and blue
None of these
