HTML Multiple C-WPS Office
HTML Multiple C-WPS Office
d.None of these
Explanation: HTML is an acronym that stands for HyperText Markup Language, which is used
for creating web pages and web applications.
HyperText simply means "Text within Text." A text has a link within it, is a hypertext. A markup
language is a computer language that is used to apply layout and formatting conventions to a
text document.
Explanation: The correct sequence of HTML tags to start a webpage is html, head, title, and
body.
3) Which of the following element is responsible for making the text bold in HTML?
a. <pre>
b. <a>
c. <b>
d. <br>
Explanation: The <b> (bold tag) tag in HTML is used to display the written text in bold format.
4) Which of the following tag is used for inserting the largest heading in HTML?
a. <h3>
b. <h1>
c. <h5>
d. <h6>
Explanation: The <h1> tag is used to insert the main heading or the highest level heading.
b. <a>
c. <pre>
d. <b>
Explanation: The <br> tag in the HTML document is used to create a line break in a text. If we
place the <br> tag in HTML code, then it works the same as pressing the enter key in a word
processor.
6) How to create an unordered list (a list with the list items in bullets) in HTML?
a. <ul>
b. <ol>
c. <li>
d. <i>
Explanation: The <ul> tag in HTML is used to display the list items in a bulleted format. There
can be four types of an unordered list: disc, circle, square, and none.
a. \
b. !
c. /
d. .
Answer: (c) /
Explanation: The forward-slash (/) character is used to indicate the closing of a tag in HTML.
Explanation: The anchor tag and the href attribute is used to create the link in HTML.
9) How to create an ordered list (a list with the list items in numbers) in HTML?
a. <ul>
b. <ol>
c. <li>
d. <i>
10) Which of the following element is responsible for making the text italic in HTML?
a. <i>
c. <italic>
c. <it>
d. <pre>
Explanation: The <i> (italic tag) tag in HTML is used to display the written text in italic format.
Explanation: The img tag and the src attribute is used to display an image on the webpage.
12) How to add a background color in HTML?
Explanation: The bgcolor attribute is used to set the background color of an HTML element.
13) <input> is -
a. a format tag.
b. an empty tag.
Explanation: The <input> tag in HTML is used to represent a form input control in HTML
document.
14) Which of the following tag is used to make the underlined text?
a. <i>
b. <ul>
c. <u>
d. <pre>
Explanation: The <u> (underline tag) tag in HTML is used to display the underlined text. It
rendered as a solid underlined text, but it can be changed using CSS properties.
c. <checkbox>
Explanation: To create a checkbox in HTML, we have to use the <input> tag and give the value
checkbox to its type attribute.
16) Which of the following tag is used to define options in a drop-down selection list?
a. <select>
b. <list>
d. <dropdown>
d. <option>
Hide Answer Workspace
Explanation: The <option> tag in HTML is used to define options in a dropdown list within
<select> or <datalist> element. A dropdown list must have at least one <option> element.
a. # and #
b. { and }
c. ! and ?
Explanation: All HTML tags must be enclosed within angular < > brackets.
18) Which of the following tag is used to add rows in the table?
a. new line
b. vertical ruler
c. new paragraph
d. horizontal ruler
Explanation: The <hr> tag is used to specify a paragraph-level thematic break in HTML
document. It is called a horizontal rule and draws a horizontal line.
20) Which of the following attribute is used to provide a unique name to an element?
a. class
b. id
c. type
Answer: (b) id
Explanation: The id attribute is used to specify a unique id for an element of the HTML
document. It allocates the unique identifier which can be used by the JavaScript and CSS to
perform certain tasks.
21) Which of the following HTML tag is used to display the text with scrolling effect?
a. <marquee>
c. <scroll>
d. <div>
Explanation: The <marquee> tag is a non-standard HTML element that is used to scroll a text or
image either horizontally or vertically. In simple words, we can say that it automatically scrolls
the image or text in up, down, left, and right direction.
22) Which of the following HTML tag is the special formatting tag?
a. <p>
b. <b>
c. <pre>
Explanation: The HTML <pre> tag is used to specify pre-formatted texts. Texts within
<pre>…</pre> tag is displayed in a fixed-width font. Usually, it is displayed in courier font. It
maintains both line break space.
23) Which of the following is the correct way to send mail in HTML?
c. <mail xy@y</mail>
Explanation: We can use the <a> (anchor tag) tag, and the href attribute to mail a person.
24) Which of the following is the container for <tr>, <th>, and <td> ?
a. <data>
b. <table>
c. <group>
Explanation: The <table> tag in HTML, is generally used to display data in tabular format. We
can create a table to display the data in the tabular form using the <table> element, with the help
of <tr>, <th>, and <td> elements.
c. <bg-image = "img.png">
Explanation: The unordered or bulleted list in HTML is used to display the elements in a bulleted
format. Mainly, there are three types of an unordered list: disc, circle, and square.
27) Which of the following is the correct way to create a list using the lowercase letters?
Explanation: The type attribute is used with the <ol> tag to specify the type of list items.
28) Which of the following is the correct way to start an ordered list with the count of numeric
value 4?
Explanation: The start attribute is used with the <ol> tag to specify where to start the list items.
29) Which of the following HTML attribute is used to define inline styles?
a. style
b. type
c. class
Explanation: The style attribute in HTML is used to change the style of existing HTML elements.
It can be used with any HTML tag. To apply the style on the HTML tag, you should have the
basic knowledge of CSS properties.
a. <p>
b. <b>
c. <pre>
Explanation: The <p> (paragraph tag) tag in HTML is used to define a paragraph in a webpage.
The HTML <p> tag indicates the starting of new paragraph.
a. .ht
b. .html
c. .hml
a. Web browser
b. Server
c. Interpreter
Explanation: HTML programs can be read and rendered by the web browser. A web browser can
support several web pages.
a. case-sensitive
b. in upper case
d. in lowercase
Explanation: HTML is a case-insensitive language, which means we can use tags either in the
upper-case or in lower-case. It is recommended to write all tags in the lowercase for readability,
consistency, etc.
34) Which of the following is the root tag of the HTML document?
a. <body>
b. <head>
c. <title>
d. <html>
Explanation: The <html> tag represents the root of an HTML document, hence also called as the
root element. It is a container of all elements (except !Doctype) such as <head>, <body> and
each element which appears in the HTML document.
35) In HTML5, which of the following tag is used to initialize the document type?
a. <Doctype HTML>
b. <\Doctype html>
c. <Doctype>
d. <!DOCTYPE html>
Explanation: The <!DOCTYPE html> tag is used to inform the browser about the version of
HTML used in the document. It is called as the document type declaration (DTD).
36) Which of the following tag is used to create a combo box (or drop-down box)?
a. <list>
b. <select>
d. <ul>
tag?
a. method
b. action
a. Using ## and #
39) Which HTML tag is used to display the power in expression, i.e., (x2 - y2)?
a. <sup>
b. <sub>
c. <p>
40) Which of the following is the correct way to change the font face in HTML?