Вы находитесь на странице: 1из 34

HTML

1. Which of the following are the background properties in CSS?


i) background-color ii) background-image iii) background-repeat
iv) background-position v) background
A) i, ii, iii and iv only
B) i, ii, iii and v only
C) i, ii, iv and v only
D) All i, ii, iii, iv and v
2. State whether the statement is/are True.
i) font-family property is used to change the face of a font.
ii) font-variant property is used to create small-caps effects.
A) i-True, ii-False
B) i-False, ii-True
C) i-True, ii-True
D) i-False, ii-False
3. The CSS links properties are
A) :link, :visited, :hover, :active
B) :link, :visit, :hover, :active
C) :link, :visited, :over, :active
D) :link, :visited, :hover, :active, :inactive
4. Internet Explorer uses ....................... property to create transparent images.
A) -moz-opacity:x
B) filter: alpha(opacity=x)
C) Both of the above

D) None of the above


5. The different ways to associate styles with a HTML document is/are
A) Embedded CSS with <style> element
B) Inline CSS with style attribute.
C) External CSS with <link> element.
D) All of the above
6. Which of the following is correct CSS syntex for using font property?
A) <p style="font: italic, bold, 15px;"> ................ </p>
B) <p style="font-style: italic font-weight: bold font-size: 15px;"> ................... </p>
C) <p style="font: italic bold 15px;"> ....................... </p>
D) None of the above
7. State True of False for the CSS table properties.
i) The border-spacing specifies the width that should appear between table rows.
ii) The empty-cells specifies whether the border should be shown if a cell is empty.
A) i-True, ii-False
B) i-False, ii-True
C) i-True, ii-True
D) i-False, ii-False
8. In CSS tables, the possible values for the caption-side property can have the following values.
A) top, bottom, left or right
B) top, bottom, center, left or right
C) top or bottom
D) left or right

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

b. Mark the text so that it is hidden in browser


c. Display text with scrolling effect
d. None of above
28. There are ____ different of heading tags in HTML
a. 4
b. 5
c. 6
d. 7
29. To create a blank line in your web page
a. press Enter two times
b. press Shift + Enter
c. insert <BR> tag
d. insert <BLINE>
30. Which of the following is not a style tag?
a. <b>
b. <tt>
c. <i>
d. All of above are style tags
31. The way the browser displays the object can be modified by _____
a. attributes
b. parameters
c. modifiers
d. None of above
32. Which of the following HTML code is valid?
a. <font colour=red>
b. <font color=red>
c. <red><font>
d. All of above are style tags
33. Which of the following is an attribute related to font tag?
a. size
b. face
c. color
d. All of above are style tags
34. HTML supports
a. ordered lists
b. unordered lists
c. both type of lists
d. does not support those types
35. What tag is used to list individual items of an ordered list?
a. LI
b. OL
c. UL
d. None of above

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>

53. 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>
54. Choose the correct HTML tag for the smallest size heading?
a. <heading>
b. <h6>
c. <h1>
d. <head>
Visit http://mcqsets.com for more MCQ Banks, answers to the subjective questions, online quiz
and much more!
55. What is the correct HTML tag for inserting a line break?
a. <br>
b. <lb>
c. <break>
d. <newline>
56. What does vlink attribute mean?
a. visited link
b. virtual link
c. very good link
d. active link
57. Which attribute is used to name an element uniquely?
a. class
b. d
c. dot
d. all of above
58. Which tag creates a check box for a form in HTML?
a. <checkbox>
b. <input type=checkbox>
c. <input=checkbox>
d. <input checkbox>
59. 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
60. Which of the following is not a pair tag?
a. <p>
b. < u >
c. <i>
d. <img>

61. What is the full form of HTML?


a. Hyper text markup language
b. Hyphenation text markup language
c. Hyphenation test marking language
d. Hyper text marking language
62. What is the full form of HTTP?
a. Hyper text transfer protocol
b. Hyper text transfer package
c. Hyphenation text test program
d. none of the above
63. What is a search engine?
a. a program that searches engines
b. a web site that searches anything
c. a hardware component
d. a machinery engine that search data
64. What is the full form of TCP/IP?
a. transmission control protocol / internet protocol
b. telephone call protocol / international protocol
c. transport control protocol / internet protocol
d. none of the above
65. HTML document start and end with which tag pairs?
a. <HEAD>.</HEAD>
b. <BODY>.</BODY>
c. <HTML>.</HTML>
d. <WEB>.</WEB>
Visit http://mcqsets.com for more MCQ Banks, answers to the subjective questions, online quiz
and much more!
66. Which tag is used to create body text in HTML?
a. <HEAD>
b. <TEXT>
c. <TITLE>
d. <BODY>
67. Yahoo, Infoseek and Lycos are _________?
a. Search Engines
b. Browsers
c. News groups
d. None of the above
68. What does the .com domain represents?
a. Education domain
b. Commercial domain
c. Network
d. None of the above
69. In Satellite based communication, VSAT stands for?

a. Very Small Aperture Terminal


b. Varying Size Aperture Terminal
c. Very Small Analog Terminal
d. None of the above
70. Outlook Express is a _________
a. E-Mail Client
b. Browser
c. Search Engine
d. None of the above
71. <TITLE> </TITLE> tag must be within ________
a. Title
b. Form
c. Header
d. Body
72. Text within <EM> </EM> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
73. Text within <STRONG> </STRONG> tag is displayed as ________
a. bold
b. italic
c. list
d. indented
74. <UL> </UL> tag is used to ________
a. display the numbered list
b. underline the text
c. display the bulleted list
d. bold the text
75. Which tag is used to display the numbered list?
a. <OL></OL>
b. <DL></DL>
c. <UL></UL>
d. <LI></LI>
76. Which tag is used to display the large font size?
a. <LARGE></LARGE>
b. <BIG></BIG>
c. < SIZE ></SIZE>
d. <FONT></FONT>
77. <SCRIPT> </SCRIPT> tag can be placed within ________
a. Header
b. Body
c. both A and B

d. none of the above


78. using <P> tag will
a. start a new paragraph
b. break the line
c. end the current paragraph
d. none of the above
79. <TD> </TD> tag is used for ________
a. Table heading
b. Table Records
c. Table row
d. none of the above
80. Which is true to change the text color to red?
a. <BODY BGCOLOR=RED>
b. <BODY TEXT=RED>
c. <BODY COLOR=RED>
d. none of the above
81. With regards to e-mail addresses:
a. hey must always contain an @ symbol
b. hey can never contain spaces
c. they are case-insensitive
d. all of the above
82. A homepage is __________
a. an index of encyclopedia articles
b. where all Internet data is stored
c. required for access to the Internet
d. the first page of a website
83. Which of the following is used to explore the Internet?
a. Browser
b. Spreadsheet
c. Clipboard
d. Draw
84. What is Internet Explorer?
a. An Icon
b. A File Manager
c. A Browser
d. The Internet
85. What do I need to get onto the Internet?
a. Computer
b. Modem
c. Browser
d. All of the above
86. What is an ISP?
a. nternet System Protocol

b. nternal System Program


c. Internet Service Provider
d. None of the above
87. Which of the following is valid IP address?
a. 984.12.787.76
b. 192.168.321.10
c. 1.888.234.3456
d. 192.168.56.115
88. Which is not a domain name extension
a. mil
b. org
c. .int
d. .com
89. What is a FTP program used for?
a. Transfer files to and from an Internet Server
b. Designing a website
c. Connecting to the internet
d. None of the above
90. Which of the following are commonly found on web pages?
a. nternet
b. hyperlinks
c. intranet
d. all of the above
91. What is the correct syntax in HTML for creating a link on a webpage?
a. <LINK SRC= mcqsets.html>
b. <BODY LINK = mcqsets.html>
c. <A SRC = mcqsets.html >
d. < A HREF = mcqsets.html>
92. Which of the following is an attribute of <Table> tag?
a. SRC
b. LINK
c. CELLPADDING
d. BOLD
93. Choose the correct HTML tag to make the text bold?
a. <B>
b. <BOLD>
c. <STRONG>
d. Both A) and C)
94. Which HTML tag would be used to display power in expression (A+B)2 ?
a. <SUP>
b. <SUB>
c. <B>
d. <P>

95. Choose the correct HTML code to create an email link?


a. <A HREF = admin@mcqsets.com></A>
b. <A HREF = admin:suresh@mcqsets.com></A>
c. <MAIL>admin@mcqsets.com </MAIL>
d. MAILHREF = admin@mcqsets.com>
96. Choose the correct HTML tag for the largest heading?
a. <H1>
b. <H6>
c. <H10>
d. <HEAD>
97. Output of XML document can be viewed in a
a. Word Processor
b. Web browser
c. Notepad
d. None of the above
98. What is the correct way of describing XML data?
a. XML uses a DTD to describe data
b. XML uses a description node to describe data
c. XML uses XSL to describe the data
d. XML uses a validator to describe the data
99. Comments in XML document is given by:
a. <? _ _>
b. <!_ _ _ _!>
c. <!_ _ _ _>
d. </_ _ _ _>
100. Which statement is true?
a. An XML document can have one root element
b. An XML document can have one child element
c. XML elements have to be in lower case
d. All of the above
Answers:

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

3. Which of the following element cant be contained in any other elements?


a. <!DOCTYPE>
b. <HTML>
c. <HEAD>

d. <BODY>

4. Which of the following is not an element in HTML document?


a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>

5. Which element is also known as root element in any HTML document?


a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
d. <BODY>

6. In which part of HTML document we can define meta data?


a. <!DOCTYPE>
b. <HTML>
c. <HEAD>
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

8. How many different type of DOCTYPE are defined in HTML 5?


a. 1
b. 2
c. 3
d. 4

9. Which of the following is not a DOCTYPE in HTML 4?


a. Strict
b. Transitional
c. Transactional
d. Frameset

10. Head and Body elements are nested inside which element?
a. DOCTYPE
b. HTML
c. HEAD
d. All of above

11. What is the use of Head part of a HTML document?


a. To make the document look better
b. to provide information to browser about how document should be rendered correctly
c. to separate some part from body of document
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

13. Which of the following is not a part of HTML element?


a. Opening tag
b. Closing tag
c. Contents
d. None of above

14. Which of the following tag cant go inside <head> element?


a. Headings
b. Titles
c. Meta Data

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?

a. You are not logged in to ICT Trends


b. You are first time visitor to ICT Trends
c. You have already replied to this discussion
d. All of above

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 &nbsp; 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

15. Which kind of CSS is not written in current HTML file?


a. Internal
b. External
c. Inline
d. None of above
17. The Internal CSS is written inside
a. P tag
b. Style element
c. separate file with .css extension
d. All of above
18. Which of the following is considered best practice for defining styles?
a. inline styles
b. internal styles
c. external styles
d. None of the above
19. To specify line-height, which of the following value you can write?
a. multiples
b. pixels
c. percentage
d. all of above
20. Identify the false statement
a. Space before and after can be achieved using padding-left and padding-right styles for P
element
b. Left and right indentation can be achieved using padding-left and padding-right styles for P
element
c. Line spacing can be achieved by using line-height style for P element
d. Style is a global attribute
Correct answers of previous set ( HTML Paragraph)
1b

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

2. Which of the following is NOT true?


a. In HTML, we use <p> and </p> tags to enclose a paragraph
b. An HTML paragraph can be a few sentences, only one sentence or no sentence at all
c. To create a new paragraph in HTML you should press Enter
d. P tag in HTML is a pair tag
3. Which of the following code displays a less than symbol while loaded in browser?
a. &lt;
b. &gt;
c. &copy;
d. &nbsp;
4. Which of the following code you should type in HTML to display a copyright symbol?
a. &lt;
b. &gt;
c. &copy;
d. &nbsp;
5. Multiple spaces in HTML code are removed while displaying in web browser. Then, how can
you display multiple spaces in browser?
a. It is not possible in HTML
b. You should type Shift+Space if you need to display multiple spaces
c. You should type &lt; then space and &gt; to display multiple spaces
d. Type &nbsp; multiple times where you need to display multiple spaces
6. What does &nbsp; stand for?
a. Non-Blocked Space
b. Non-Breaking Space
c. Non-Baked Space
d. Never-Broken Space
7. An empty paragraph in HTML is
a. A paragraph that does not have any content
b. A paragraph that is written without P tag
c. The HTML document that does not contain any paragraph
d. None of above
8. You cant use P tag in
a. Head element
b. Title element
c. Body element
d. Both a & b

9. Which key reloads a web page already loaded?


a. F11 key
b. F5 key
c. F1 key
d. F10 key
10. Which of the following tag displays the content in the middle of browser horizontally?
a. <p alignment=centered>
b. <p text-align=center>
c. <p aligned=center>
d. <p align=center>
11. Which of the following is no longer supported in HTML 5?
a. <p align=left>
b. <p align=center>
c. <p align=right>
d. None of above
12. Identify the false statement
a. <p align=justify> will display the lines of paragraph that extend from left to the right of
available browser width
b. <p align=center> will align the content to the center of browser
c. <p dir=rtl align=center> will display content from right to left aligned centered
d. use align=rifht attribute with P tag to display a paragraph to the right
13. Inserting <br> tag inside a paragraph
a. Adds a new paragraph
b. Breaks a paragraph into two
c. Adds a line break so that new line is started within same paragraph
d. Makes it an empty paragraph
14. Which of the following is invalid code for inserting a break?
a. <br></br>
b. <br>
c. <br />
d. None of above
Note: How can you post questions in ICT Trends?
Its pretty simple. First of all remember, you should log in to ICT Trends. There are Facebook,
Google, Yahoo buttons on the right side bar under Login with heading. Click any of those
buttons to log in your selected service. Logging there will log you in to ICT Trends also.
Now after youre logged in, choose your required category from Discussion menu at the top.

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

1. The number of level HTML supports to tag headings in a document is


a. 4
b. 6
c. 8
d. 10
2. Headings are important in HTML because
a. Screen readers can recognize your document structure and useful for blind readers
b. They format your document automatically saving you a time
c. Search engines read your heading to learn the topic you are presenting about
d. Both a & c
3. Which of the following statement is true for HTML headings?
a. Heading tags are pair tags but can render correctly even if you skip closing tag
b. There are six level of headings supported in HTML being H6 for the most prominent one
c.HTML supports only align attribute apart from global attributes
d. All of above
4. Which of the following are affected by heading elements in HTML rendering?
a. Font changes
b. Paragraph breaks before and after
c. Any white spaces necessary to render
d. All of above
5. Up to how many times the tag <h1> can be used in an HTML document as good
practice?
a. 1
b. 2
c. 3
d. Use as many times as there are main headings
6. You can use <h2> to <h6> as many times as you need but you are suggested to
a. follow the order as they were intended
b. use them only up to 3 times for SEO benefits

c. use them according to your formatting requirements


d. All of above
7. In HTML 5, which of the following values can be used for align attribute of heading
tags?
a. Left
b. Right
c. Center
d. align is not supported in HTML 5
8. In HTML 5, you are better suggested to align paragraphs and headings using
a. align attribute
b. style
c. Justified
d. None of above
9. The heading tags in HTML documents are written inside
a. <head> </head> block
b. <body> </body> block
c. Before <html> element
d. after </body>
10. Heading tags support
a. align attribute
b. global attribute
c. line-heigth attribute
d. Both a & b
Correct answers of previous set ( HTML Paragraph Formatting)
1a

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

2. Opening tags are marked by


a. forward slash
b. backward slash
c. Both of above
d. None of above

3. An element is marked ended by


a. An opening tag
b. A closing tag
c. The content
d. All of above

4. The element content is written


a. In between opening and closing tags
b. Just before the opening tag
c. Immediately after the closing tag
d. Anywhere in HTML document

5. The HTML document title is defined using


a. <head> </head> tags
b. <h1> </h1> tags
c. <title> </title> tags

d. All of above

6. Which of the following is true?


a. Every tag has its closing tag but its not mandatory
b. Every tag dont have closing tag but theres XHTML way to close it
c. HTML is so flexible that you can create your own tags
d. None of above

7. Which of the following is not a single tag?


a. <p> tag
b. <br> tag
c. <hr> tag
d. <img> tag

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

9. Which of the following is an example of self-closing tag?


a. <br>

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

11. Which of the following is based on XML markup language?


a. XML
b. XGML
c. XHTML
d. HXML

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

13. Which of the following is true for attributes


a. Attributes are extra bit of information to add to html tags
b. Attributes appear inside the opening tag
c. Attributes are specified in name=value pair format
d. All of above

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

17. In an HTML code <hr width=300px>,


a. width is attribute
b. 300px is attribute
c. width is the tag
d. None of above

18. Which of the following is NOT true?


a. Attributes are enclosed within double quotes
b. Attributes are enclosed within single quotes
c. You can write attribute values without any quotation marks too
d. You can write attribute values using accent grave (`) too

20. An element can contain


a. Opening tags, content and closing tag
b. Other elements
c. Both of above
d. None of above
Okey, those were the multiple choice questions from HTML tags, attributes and elements
chapter. Hope you can answer them all. Im expecting your answers in the comment below.
Correct Answers of MCQ Questions from HTML Document Structures
1c

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

Вам также может понравиться