HTML Mcqs
HTML Mcqs
9. The ................... property indicates whether a cell without any content should have a border displayed.
A) blank-cells
B) empty-cells
C) nocontent-cells
D) noborder-cells
10. The ..................... specifies whether a border should be solid, dashed line, doted line, double line,
groove etc.
A) border-layout
B) border-decoration
C) border-style
D) border-weight
Answers:
1. D) All i, ii, iii, iv and v
2. C) i-True, ii-True
3. A) :link, :visited, :hover, :active
4. B) filter: alpha(opacity=x)
5. D) All of the above
6. C) <p style="font: italic bold 15px;"> ....................... </p>
7. B) i-False, ii-True
8. A) top, bottom, left or right
9 B) empty-cells
10 C) border-style
1. A webpage displays a picture. What tag was used to display that picture?
a. picture
b. image
c. img
d. src
2. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
3. Tags and test that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>
4. Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction=horizontal>
d. <tr>
5. What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
6. Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
7. How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
8. How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
IQ. Where can you find best quality multiple choice questions?
a. icttrends.com
b. psexam.com
c. prepare.icttrends.com
d. mcqsets.com
9. How can you make an e-mail link?
a. <a href=xxx@yyy>
b. <mail href=xxx@yyy>
c. <mail>xxx@yyy</mail>
d. <a href=mailto:xxx@yyy>
10. What is the correct HTML for making a hyperlink?
a. <a href=http:// mcqsets.com>ICT Trends Quiz</a>
b. <a name=http://mcqsets.com>ICT Trends Quiz</a>
c. <http://mcqsets.com</a>
d. url=http://mcqsets.com>ICT Trends Quiz
11. Choose the correct HTML tag to make a text italic
a. <ii>
b. <italics>
c. <italic>
d. <i>
12. Choose the correct HTML tag to make a text bold?
a. <b>
b. <bold>
c. <bb>
d. <bld>
13. What is the correct HTML for adding a background color?
a. <body color=yellow>
b. <body bgcolor=yellow>
c. <background>yellow</background>
d. <body background=yellow>
14. Choose the correct HTML tag for the smallest size heading?
a. <heading>
b. <h6>
c. <h1>
d. <head>
15. What is the correct HTML tag for inserting a line break?
a. <br>
b. <lb>
c. <break>
d. <newline>
16. What does vlink attribute mean?
a. visited link
b. virtual link
c. very good link
d. active link
Like mcqsets.com in Facebook & Google+
17. Which attribute is used to name an element uniquely?
a. class
b. id
c. dot
d. all of above
18. Which tag creates a check box for a form in HTML?
a. <checkbox>
b. <input type=checkbox>
c. <input=checkbox>
d. <input checkbox>
19. To create a combo box (drop down box) which tag will you use?
a. <select>
b. <list>
c. <input type=dropdown>
d. all of above
20. Which of the following is not a pair tag?
a. <p>
b. < u >
c. <i>
d. <img>
21. To create HTML document you require a
a. web page editing software
b. High powered computer
c. Just a notepad can be used
d. None of above
22. The special formatting codes in HTML document used to present content are
a. tags
b. attributes
c. values
d. None of above
23. HTML documents are saved in
a. Special binary format
b. Machine language codes
c. ASCII text
d. None of above
24. Some tags enclose the text. Those tags are known as
a. Couple tags
b. Single tags
c. Double tags
d. Pair tags
25. The _____ character tells browsers to stop tagging the text
a. ?
b. /
c. >
d. %
26. In HTML document the tags
a. Should be written in upper case
b. should be written in lower case
c. should be written in proper case
d. can be written in both uppercase or lowercase
27. Marquee is a tag in HTML to
a. mark the list of items to maintain inqueue
36. When should you use path along with file name of picture in IMG tag?
a. path is optional and not necessary
b. when the location of image file and html file are different
c. when image file and html file both are on same location
d. path is always necessary when inserting image
37. Which of the following is not a valid alignment attribute?
a. Left
b. Right
c. Top
d. All of above
38. Which attribute is used with img tag to display the text if image could not load in
browser?
a. description
b. name
c. alt
d. id
39. Which attribute can be used with BODY tag to set background color green?
a. background=green
b. bgcolor=green
c. vlink=green
d. None of above
40. Which attribute youll use with TD tag to merge two cells horizontally?
a. merge=colspan2
b. rowspan=2
c. colspan=2
d. merge=row2
41. A webpage displays a picture. What tag was used to display that picture?
a. picture
b. mage
c. img
d. src
42. <b> tag makes the enclosed text bold. What is other tag to make text bold?
a. <strong>
b. <dar>
c. <black>
d. <emp>
43. Tags and test that are not directly displayed on the page are written in _____ section.
a. <html>
b. <head>
c. <title>
d. <body>
44. Which tag inserts a line horizontally on your web page?
a. <hr>
b. <line>
c. <line direction=horizontal>
d. <tr>
45. What should be the first tag in any HTML document?
a. <head>
b. <title>
c. <html>
d. <document>
46. Which tag allows you to add a row in a table?
a. <td> and </td>
b. <cr> and </cr>
c. <th> and </th>
d. <tr> and </tr>
47. How can you make a bulleted list?
a. <list>
b. <nl>
c. <ul>
d. <ol>
48. How can you make a numbered list?
a. <dl>
b. <ol>
c. <list>
d. <ul>
49. How can you make an e-mail link?
a. <a href=xxx@yyy>
b. <mail href=xxx@yyy>
c. <mail>xxx@yyy</mail>
d. <a href=mailto:xxx@yyy>
50. What is the correct HTML for making a hyperlink?
a. <a href=http://mcqsets.com>MCQ Sets Quiz</a>
b. <a name=http://mcqsets.com>MCQ Sets Quiz</a>
c. <http://mcqsets.com</a>
d. url=http://mcqsets.com>MCQ Sets Quiz
51. Choose the correct HTML tag to make a text italic
a. <ii>
b. <italics>
c. <italic>
d. <i>
52. Choose the correct HTML tag to make a text bold?
a. <b>
b. <bold>
c. <bb>
d. <bld>
1c
2a
3b
4a
5c
6d
7c
8b
9d
11 d
12 a
13 b
14 b
15 a
16 a
17 b
18 b
19 a
21 c
22 a
23 c
24 d
25 b
26 d
27 c
28 c
29 c
31 a
32 b
33 d
34 c
35 a
36 b
37 c
38 c
39 b
41 c
42 a
43 b
44 a
45 c
46 d
47 c
48 b
49 d
51 d
52 a
53 b
54 b
55 a
56 a
57 b
58 b
59 a
61 a
62 a
63 b
64 a
65 c
66 d
67 a
68 b
69 a
71 c
72 b
73 a
74 c
75 a
76 b
77 c
78 a
79 b
81 d
82 d
83 a
84 c
85 d
86 c
87 d
88 c
89 a
91 d
92 c
93 d
94 a
95 b
96 a
97 b
98 c
99 c
1. HTML document has three main elements. Which of the following is not one of them?
a. DTD
b. Head
c. Neck
d. Body
2. Which element contains the Head and Body elements inside it?
a. <!DOCTYPE>
b. <html>
c. <living being>
d. None of above
d. <BODY>
7. How many different type of DOCTYPE are defined for HTML documents in HTML 4?
a. 1
b. 2
c. 3
d. 4
10. Head and Body elements are nested inside which element?
a. DOCTYPE
b. HTML
c. HEAD
d. All of above
12. Where should you write all the elements that you want them to appear in browser window?
a. <!doctype> part
b. <head> part
c. <body> part
d. Anywhere among the above three parts
d. Scripts
15. tells something about the data itself and not about the content
a. Metadata
b. Contents inside head element
c. Footer
d. None of above
16. Which of the following is a mandatory element inside Head element for a good HTML
document?
a. Metadata
b. Title
c. Scripts
d. Styles
17. You can define the character set used in HTML document using
a. Meta
b. Title
c. Script
d. Style
18. When you visit any discussion in ICT Trends (icttrends.com) and dont see a reply box, what
does it indicate?
19. You can log in to ICT Trends using which of the following IDs?
a. Facebook
b. Google
c. Yahoo
d. All of above
20. Which element in HTML document lets you define the document is either HTML or
XHTML?
a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>
Correct Answers of Getting Started chapter
10
1c
2d
3a
4d
5c
6a
7b
8c
9b
c
11
12
13
14
15
16
17
18
1. Which of the following tag aligns the paragraph centered horizontally on browser
window?
a. <p align=center>
b. <p style=align:center>
c. <p style=para-align:center>
d. Both a & b
2. Which of the following HTML code is correct to align following paragraph to the right of
available space on browser window?
a. <p text-align=right>
b. <p style=text-align=right>
c. <p style=align:right>
d. Both a & c
3. The HTML display depends on
a. Large or small screen
b. Maximized or resized widow
c. Both of above
d. None of above
4. If a browser encounters extra spaces or extra lines
a. Renders the spaces or lines
b. Renders the spaces or lines reducing only one space
c. counts them as only one space
d. removes all those spaces or lines
5. The content is defined with tags and the presentation is defined by
a. attributes
b. styles
c. Elements
d. None of the above
6. You can specify multiple values for style attribute by
a. Separating each using semicolon
b. Separating each using comma
c. Separating each using a space
d. Separating each using double quotations
7. Which of the following style aligns the paragraph to the right?
a. para-align:right
b. line-align:right
c. align-paragraph:right
d. text-align:right
8. To effect double line spacing for a paragraph, which of the following style works?
a. line-spacing:double
b. line-spacing:2
c. line-height:2
d. text-height:2
9. When the font size of characters is set to 14 points, which of the following sets double line
spacing?
a. line-spacing:double
b. line-height:200%
c. line-height:2
d. Both b & c
10. You can create indented paragraph in HTML using
a. indent attribute
b. blockquote element
c. Multiple code
d. padding style
11. Which of the following renders 50 pixel right indent?
a. style=padding-right:30
b. style=padding-left:30px
c. style=Padding-right:30px
d. style=padding-right:30px
12. Which of the following is not available for padding?
a. padding
b. padding-left
c. padding-right
d. padding-center
13. padding-top can be used with style attribute of P element in HTML code to
a. create top margin
b. create space before current paragraph
c. create line spacing among lines in a paragraph
d. None of above
14. Which of the following CSS does not exist?
a. inline
b. outline
c. internal
d. external
2c
3a
4c
5d
6b
7a
8d
11 a
12 d
13 c
14 a
15 x
16 x
17 x
18 x
1. An HTML Paragraph is
a. Collection of one or more sentences about same concept
b. The element content started with an opening P tag and closing P tag
c. All the text and object until you press Enter key
d. All of above
9b
19 x
10 d
20 x
When you land to your required category, theres a form to type your question and description
box to explain your problem. Type there and hit submit!
Correct answers of previous set ( Tags Attributes and Elements)
1b
2d
3b
4a
5c
6b
7a
8b
11 c
12 c
13 d
14 b
15 b
16 c
17 a
18 d
9c
19 x
10 d
20 -c
2b
3c
4c
5b
6a
7d
8c
11 c 12 d 13 b 14 b 15 b 16 x 17 a 18 c
1. HTML tags are marked by
a. Greater than sign and less than sign
b. Angle brackets
c. Greater than signs
d. Less than signs
9d
19 d
10 d
20 a
d. All of above
8. If a tag has its corresponding closing tag, such tags are called,
a. single tag
b. paired tags
c. self-closing
d. None of above
b. <p> </p>
c. <hr />
d. All of above
10. Self-closing tag are the remnant method of another markup language
a. HTML 4
b. HTML 3
c. HTML 5
d. XHTML
12. While you write html document in HTML 5 which of the following method is better to
follow?
a. <br> is better than <br />
b. <br /> is better than <br>
c. Both <br> or <br /> are fine. Its just a matter of preference.
d. <br> is fine for HTML 5 but <br /> is not supported anymore
14. Which of the following tag displays a horizontal line in HTML page?
a. <HL>
b. <HR>
c. <line>
d. <>
15. Which attribute is used to control the length of <hr> horizontal line?
a. length=value
b. width=value
c. height=value
d. None of above
16. A paragraph can be aligned left, right, center or justified using <p> tag with attribute
a. text-align
b. alignment
c. align
d. text-direction
2b
3b
4a
5b
6c
7c
8a
9c
10 b
11 b 12 c 13 d 14 a 15 a 16 b 17 a 18 a 19 d 20 a