You are on page 1of 10

1.What does the abbreviation HTML stand for?

HyperText Markup Language.


HighText Markup Language.
HyperText Markdown Language.
None of the above.
Hide
Wrong Answer
HTML stands for HyperText Markup Language.
2. How many sizes of headers are available in HTML by default?
5
1
3
6
Hide
Wrong Answer
6 headers are available in HTML by default ranging from h1 to h6.
3. What is the smallest header in HTML by default?
h1
h2
h6
h4
Hide
Wrong Answer
h6 is the smallest header in HTML by default.
4. What are the types of lists available in HTML?
Ordered, Unordered Lists.
Bulleted, Numbered Lists.
Named, Unnamed Lists.
None of the above.
Hide
Wrong Answer
The lists available in HTML are Ordered and Unordered List.
5. How to create an ordered list in HTML?
<ul>
<ol>
<href>
<b>
Hide
Wrong Answer
An ordered list is created in HTML by using the <ol> tag.
6. HTML files are saved by default with the extension?
.html
.h
.ht
None of the above
Hide
Wrong Answer
HTML files are saved by the .html or .htm extension.

7. We enclose HTML tags within?


{}
<>
!!
None of the above
Hide
HTML tags are enclosed within < > according to syntax.
8. What is the effect of the <b> tag?
It converts the text within it to bold font.
It is used to write black-colored font.
It is used to change the font size.
None of the above.
Hide
Wrong Answer
<b> is used to convert the text within it to bold font.
9.
Which of the following is correct about HTML?
HTML uses User Defined Tags.
HTML uses tags defined within the language.
Both A and B.
None of the above.
Hide
Wrong Answer
HTML can only use the tags defined within the language.
10.
How to display preformatted text in HTML?
<p>
<pre>
<hr>
All of the above
Hide
Wrong Answer
<pre> tags is used to handle preformatted text in HTML.
11.
Which of the following tags doesn’t require a closing tag?
<br>
<hr>
Both A and B
None of the above
Hide
Wrong Answer
Both the <hr> and the <br> tag doesn’t require a closing tag.
12.
What is meant by an empty tag in HTML?
There is no such concept of an empty tag in HTML
An empty tag does not require a closing tag
An empty tag cannot have any content within it
None of the above
Hide
Wrong Answer
In HTML, empty tags are those tags that don’t require a closing tag for completion.

13.
What are the attributes used to change the size of an image?
Width and height
Big and Small
Top and bottom
None of the above
Hide
Wrong Answer
Width and Height attributes are used to change the size of an image.

14.
Which attribute is used to provide a unique name to an HTML element?
id
class
type
None of the above
Hide
Wrong Answer
An id is used to provide a unique name for an HTML element that can be used to identify it.
15.
What is the function of the HTML style attribute?
It is used to add styles to an HTML element.
It is used to uniquely identify some specific styles of some element.
Both A and B.
None of the above.
Hide
Wrong Answer
The HTML style attribute is used to add styles like font, color, and size to an HTML element.
16.
Which of the following is the correct syntax for using the HTML style attribute?
<tagname style = “property: value;”>
<tagname style = “property;”>
<tagname style >
None of the above
Hide
Wrong Answer
The correct syntax for the style attribute is shown in Option A.
17.
Which HTML element is used to define description data?
<li>
<ol>
<dd>
<dl>
Hide
Wrong Answer
Description data is defined by <dd> tag.
18.
Which of the following properties is used to change the font of text?
font-family
font-size
text-align
None of the above
Hide
Wrong Answer
The font-family property is used to change text font in HTML
19.
How are quotations defined in HTML?
<quote>
<block>
<blockquote>
None of the above
Hide
Wrong Answer
The <blockquote> tag is used to define a section that is quoted from another source.
20.
What tag is used to render an image on a webpage?
img
src
image
None of the above
Hide
Wrong Answer
The img tag is used to display an image on a webpage.
21.
Apart from <i> tag, which of the following tag is used to render a text in italics?
<em>
<strong>
<b>
None of the above
Hide
Wrong Answer
The <em> tag is used to emphasize text, which puts same effect as <i> tag.
22.
What is the correct syntax to write an HTML comment?
<!-- Comment -->
// Comment
# Comment
/* Comment */
Hide
Wrong Answer
The correct syntax of writing an HTML comment is shown in option A.
23.
Colors are defined in HTML using?
RGB Values
HEX Values
RGBA values
All of the above
Hide
Wrong Answer
Colors are defined using RGB, HEX, HSL, RGBA, HSLA values or with predefined color
names.
24.
Which property is used to set colors in HTML?
color
background-color
font-color
text-color
Hide
Wrong Answer
The color property is used to set and change colors in HTML.
25.
What are the types of unordered lists in HTML?
Circle, square, disc.
Triangle, Square, disc.
Triangle, Circle, Disc.
All of the above.
Hide
Wrong Answer
The unordered lists in HTML can form bullets of form Circle, Square and Disc.
26.
Which property is used to set border colors in HTML?
border-color
border
Both A and B
None of the above
Hide
Wrong Answer
The border property is used to change the border properties, including color in HTML.
27.
Which of the following things are necessary to create an HTML page?
A text editor.
Web Browser
Both A and B
None of the above
Hide
Wrong Answer
With a text editor and a web browser we can create an HTML page.
28.
Which of the following tags is used to indicate the page’s start and endpoints?
<body>
<html>
<head>
<doctype>
Hide
Wrong Answer
<html> tag indicates the web browser where a webpage starts and ends.
29.
Which of the following is true about HTML tags?
Are case sensitive
Are not case sensitive
Are in uppercase
Are in lowercase
Hide
Wrong Answer
HTML tags are not case-sensitive in nature.
30.
Which HTML tag is called the root element of an HTML document?
<html>
<body>
<title>
<head>
Hide
Wrong Answer
The <html> tag is the root element of an HTML document, which means that it contains all the
contents and tags of the HTML document within it.
31.
How is black color represented in terms of RGB values?
RGB(0, 0, 0)
RGB(100, 100, 100)
RGB(100, 100, 0)
RGB(100, 0, 0)
Hide
Wrong Answer
RCB(0, 0, 0) is equivalent to black color in terms of RGB values.
32.
What does the Alpha value in RGBA represent?
Opacity value for a color.
The shade of a color.
Both A and B.
None of the above.
Hide
Wrong Answer
A in RGBA represents the value of the Alpha Channel which is a measure of the Opacity of a
color.
33.
What does the Alpha value of 0.0 represent?
Fully Opaque.
Fully Transparent.
50% transparent.
None of the above.
Hide
Wrong Answer
The Alpha value varies between 0.0 (fully transparent) to 1.0(fully opaque).
34.
How to set a font for a whole page?
<targetfont>
<defaultfont>
<font>
None of the above
Hide
Wrong Answer
<defaultfont> tag is used to set up a default font type for a whole page.
35.
The CSS inside HTML elements used alongside style attribute is called?
Inline CSS
Internal CSS
External CSS
None of the above
Hide
Wrong Answer
The CSS used alongside the style attribute with HTML elements is called Inline CSS.
36.
Which of the following colors contain equal amounts of RBG?
White
Gray
Black
All of the above
Hide
Wrong Answer
Gray is RGB(50, 50, 50), White is RGB(100, 100, 100) and Black is RGB(0, 0, 0).
37.
What is the speciality about the <small> and <big> tags in HTML?
They work on anything.
They can be used for text only.
They can be repeated.
None of the above.
Hide
Wrong Answer
The tags can be repeated and their effects and stacked on top of each other.
38.
Which of the following tags is used to add a row to a table in HTML?
<tr>
<td>
<th>
None of the above
Hide
Wrong Answer
<tr> is used to add a row to a table in HTML.
39.
Which property allows an image link to show a text label?
alt
str
alternative
None of the above
Hide
Wrong Answer
The alt property allows an image link to show a text label.
40.
If a background image is smaller than the screen on which it is being displayed, what will
occur on the webpage?
The blank space will be shown in black.
The image will be stretched
The image will be repeated
The image won’t be displayed
Hide
Wrong Answer
By default on most screens, if the background image is smaller than the screen on which it is
being displayed, the image will be repeated.
41.
What are the properties of block-level elements?
It always starts on a new line.
It always takes the full width available.
It has a top and bottom margin.
All of the above.
Hide
Wrong Answer
All the above properties are valid properties of block-level elements.
42.
Which of the following are examples of block-level elements in HTML?
<div>
<p>
<h1>
All of the above
Hide
Wrong Answer
All the above examples satisfy the properties in Prob. 41 and hence are block-level elements

43.
How many characters can be written in 1KB?
1048
1024
1000
None of the above
Hide
Wrong Answer
1024 characters can be written in a file of size 1KB.

44.
What are some valid character sets available?
UTF-8
ANSI
ASCII
All of the above
Hide
Wrong Answer
All of the above options are examples of valid character sets.
45.
The default value of the BORDER attribute is?
1pixel
2pixel
4pixel
8pixel
Hide
Wrong Answer
1pixel is the default value for the BORDER attribute in HTML.
46.
What are those objects called which are used for storing data on the client provided by the
HTML local storage?
Windows.localStorage
Window.sessionStorage
Both A and B
None of the above
Hide
Wrong Answer
Such objects with the property mentioned above are called as Windows.localStorage or
Window.sessionStorage.
47.
The most basic part of any HTML page is?
ASCII Text
Binary Text
Text
None of the above
Hide
Wrong Answer
ASCII Text comprises the most basic part of any HTML page, as it is the simplest character set a
webpage can use.
48.
What is the select tag used for?
Creates a combo box.
Select some attributes and change their style.
Change text font.
None of the above.
Hide
Wrong Answer
A HTML combo box is created using the select tag.
49.
What are the main components of the front end of any working website?
HTML, CSS, Javascript.
HTML only.
Javascript only.
Node.js.
Hide
Wrong Answer
HTML, CSS, and Javascript combined to form the basic components of any working website’s
frontend.
50.
Which HTML tag is used to set up a Javascript-like client-side scripting language?
<script>
<select>
<anchor>
None of the above
Hide
Wrong Answer
<script> tag is used for the purpose of setting up a client-side scripting language.

You might also like