HTML Multiple choice Questions & Answers

Posted On:December 25, 2018, Posted By: Latest Interview Questions, Views: 4706, Rating :

HTML Objective type Questions and Answers

Dear Readers, Welcome to HTML Objective Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of HTML MCQs. These objective type HTML Questions are very important for campus placement test and job interviews. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT companies.

1) Is it possible to set up a browser so it refuse pages that does not have a content rating meta tag?

a) Yes - many companies and parents actually do

b) No

c) Only with a cybersitter add on

Ans: a

MCQs on HTML

2) When images are used as links they get a blue border.

a) Always

b) Never

c) Unless border is set to zero

Ans: c

 

3) A 6 digit Hex color (#FF9966) defines values of Red, Blue and Green in which order ?

a) #BBRRGG

b) #BBGGRR

c) #RRGGBB

Ans: c

 

4) When you count to 15 using hexadecimal numbers, the highest number is what ?

a) F

b) B

c) 15

Ans: a

 

5) The <small> and <big> tags are special in what way ?

a) They can be repeated

b) They work on anything

c) They are for images only

Ans: a

 

6) What does vlink mean ?

a) visited link

b) very good link

c) active link

Ans: a

 

7) Banners, buttons, dividers, clipart and other simple images usually work best as ?

a) fonts

b) gif

c) jpg

Ans: b

 

8) Which format usually works best for photos ?

a) JPG

b) HTML

c) GIF

Ans: a

 

9) <a> and </a> are the tags used for ?

a) Audio-voiced text

b) Adding links to your page

c) Aligning text

Ans: b

 

10) What does the GENERATOR meta tag tell ?

a) What type of server your page is on

b) Which program was used to produce the page

c) Who designed the page

Ans: b

 

11) What tag is used to add columns to tables ?

a) <colspan>

b) <td>

c) <tr>

Ans: b

 

12) Use<td> and </td>to add what to your tables?

a) columns

b) rows

c) steps

Ans: a

 

13) What is the REFRESH meta tag used for ?

a) Refresh your keywords

b) Allow search engines to relist your page

c) Redirect to a new domain

Ans: c

 

14) Screen colors are defined by which colors ?

a) Green, Blue, and Yellow

b) Crayola Colors

c) Red, Green and Blue

Ans: c

 

15) What tag can prevent sites with adult content from being seen on MSIEbrowsers ?

a) <meta refresh> tag

b)<meta keywords> tag

c) icra.org registered <meta http-equiv="pics-label">

Ans: c

 

16) To specify a font for your whole page add which tag ?

a) <targetfont>

b) <defaultfont>

c)<basefont>

Ans: c

 

17) Increasing the cellpadding value will what ?

a) Increase the distance between cell and content

b) Increase the space between cells

c) Increase the softness of your site

Ans: a

 

18) Which of the following is NOT true of metatags use ?

a) Which of the following is NOT true of metatags use ?

b) Do not include words that are not present on your pages

c) Use as many keywords as you can

Ans: c

 

19) To change the size of an image in HTML use what ?

a) pliers

b) height and width

c) bigger and smaller

Ans: b

 

20) Hex-colors are the only way to define colors on the web?

a) True for Internet Explorer, False for Netscape browsers

b) False, colors can also be specified with names and CSS

c) True, computer screens only understands hexadecimal values.

Ans: b

 

21) Is it a common myth that meta tags seriously improve search engine rankings ?

a) no

b) only in Nepal

c) yes

Ans: c

 

22) Choose the correct HTML tag to make a text italic

a) <italic>

b) <i>

Ans: b

 

23) Choose the correct HTML tag to make a text bold

a) <bold>

b) <b>

Ans: b

 

24) If the background image is smaller than the screen, what will happen ?

a) It will be stretched

b) It will leave a blank space at the bottom of your page

c) It will be repeated

Ans: c

 

25) HTML defines colors using hexidecimal values, while graphics programs most often use what ?

a) Names

b) Normal numbers

c) RGB Code

Ans: c

 

26) The <title> tag belongs where in your HTML ?

a) Head

b) Arm

c) Body

Ans: a

 

27) If you don’t want the frame windows to be resizeable, simply add what to the <frame> lines ?

a) save

b) dontresize

c) noresize

Ans: c

 

28)How can you make a list that lists the items with numbers?

a) <dl>

b) <ol>

c)<ul>

d)<list>

Ans: b

 

29) Most search engines give serious importance to meta tags when ranking websites in their listings ?

a) True

b) It depends on the keywords

c) False

Ans: c

 

30) Which colors consist of equal amounts of all basic colors ?

a) purple, green, and red

b) black, blue, and gray

c) white, black and gray

Ans: c

 

31) Which has higher priority, cell settings or table settings ?

a) Neither

b) Cell settings

c) Table settings

Ans: b

 

32)What does HTML stand for?

a) Hyper Text Markup Language

b) Hyperlinks and Text Markup Language

c) Home Tool Markup Language

Ans: a

 

33) What is the correct HTML for adding a background color?

a) <body background="yellow">

b)<background>yellow</background>

c) <body style="background-color:white">

Ans: c

 

34) To make the appearance of the colors more powerful on your site do which of the following ?

a) Do not use colors

b) Limit their use

c) Splash them all over

Ans: b

 

35) When is the content of a table shown ?

a) In pieces as it loads

b) Before the border loads

c) After the table is loaded

Ans: c

 

36) To add rows to your tables use which tags?

a) <td> and </td>

b)<cr> and </cr>

c) <tr> and </tr>

Ans: c

 

37) Gif and jpg are the two main types of what ?

a) animated effects

b) outlines

c) images

Ans: c

 

38) WYSIWYG stands for ?

a) What You See Is What You Get

b) When You Start Is When You Go

c) What You See Is What You Gain

Ans: a

 

39) Choose the correct HTML tag for the largest heading

a) <heading>

b)<h6>

c) <head>

d) <h1>

Ans: d

 

40) Choose the correct HTML to left-align the content inside a tablecell

a) <td valign="left">

b) <tdleft>

c) <td align="left">

d)<td leftalign>

Ans: c

 

41) To create a bulleted list use ?

a) <il>

b) <ul>

c) <ol>

Ans: b

 

42) Besides<B>, another way to make text bold is what ?

a) <strong>

b) <dark>

c) <fat>

Ans: a

 

43) Hexadecimal numbers are numbers based on the value of what ?

a) 10

b) 8

c) 16

Ans: c

 

44) Which is NOT a predefined target for links ?

a) _son

b) _parent

c) _blank

Ans: a

 

45) If you do not include a DESCRIPTION meta tag, most search engine will simply list what ?

a) Nothing

b) All text above the fold of your page

c) The first few words on the page

Ans: c

 

46) How many characters can be written with 1 Kilobyte ?

a) 1024

b) 1

c) Depends on the font used

Ans: a

 

47)To start a list at the count of 3, use which ?

a) <ol start="3">

b) <ol begin="3">

c)<ol list="5">

Ans: a

 

48) Who is making the Web standards?

a) The World Wide Web Consortium

b) Mozilla

c) Microsoft

Ans: a

 

49) Which tag can set the background color for your page?

a) <body>

b)<head>

c)<font>

Ans: a

 

50) What is the correct HTML tag for inserting a line break?

a) <lb />

b) <br />

c)<break />

Ans: b

 

51) The attribute used to choose the type of font in HTML is ?

a) Character

b) Face

c) Text-type

Ans: b

 

52) colspan=n can be added to only what tag?

a)<table>

b)<td>

c)<tr>

Ans: b

 

53) Rather than using Hspace and Vspace you can use which of the following to add spacing to your image ?

a) height and width

b) 1x1 pixel transparent image

c) align=+2

Ans: b

 

54) What is the correct HTML for creating a hyperlink?

a)<a name="http://www.naukrieducation.com">Naukri Education</a>

b) <a href="http://www.naukrieducation.com">Naukri Education</a>

c) <a>http://www.naukrieducation.com</a>

d) <a url="http://www.naukrieducation.com">Naukri Education</a>

Ans: b

 

55) In the code <frameset cols="120,*"> the following would be true.

a) Top frame would be 120 pixels high

b) Left frame would be 120 inches wide

c) Left frame would be 120 pixels wide

Ans: c

 

56) Which program do you need to write HTML?

a) Any text editor

b) HTML-development suite 4

c) A graphics program

Ans: a

 

57) When making bulleted lists you have what options ?

a) disc, circle, square

b) triangle, square, circle

c) square, disc, polygon

Ans: a

 

58) A file that specifies how the screen is divided into frames is called a __________

a) frameset

b) frametable

c) tablelink

Ans: a

 

59) Which of these is not valid HTML?

a) <font face="verdana,arial">

b)<fontface="verdana">

c) <font face="verdana">

Ans: b

 

60) Which of these tags are all <table>tags?

a) <thead><body><tr>

b) <table><tr><td>

c)<table><head><tfoot>

d)<table><tr><tt>

Ans: b

 

61) The <br>tag adds what to your webpage ?

a) Line break

b) Little bubbles

c) Long breaks

Ans: a

 

62) What tag tells where a link starts ?

a) <l>

b) <start>

c) <a>

Ans: c

 

63) Settings for columns(<td> tag) have higher priority than settings for rows(<tr> tag)

a) Sometimes true, sometimes not

b) True

c) False

Ans: b

 

64) Colors in plain HTML can be specified using ?

a) Meta tags

b) Images

c) Hexadecimal Colors

Ans: c

 

65) Relative path make your hypertext links______.

a) Portable

b) Discrete

c) Uniform

Ans: a

 

66) <ol> tags will create what kind of list ?

a) Numbered List

b) Bulleted List

c) Grocery List

Ans: a

 

67) Is it possible to link within the current page ?

a) No

b) Only in framesets

c) Yes

Ans: c

 

68) Tags and text that do not show directly on the page are placed where ?

a) Body

b) Tables

c) Head

Ans: c

 

69) To create a list using lowercase letters use ?

a)<ol "a">

b) <ol letter="a">

c)<ol type="a">

Ans: c

 

70) To seperate single list items use ?

a)<li> and </li>

b)<ol> and </ol>

c) <ul> and </ul>

Ans: a

 

71) Which section is used for text and tags that are shown directly on your web page ?

a) Body

b) Metatags

c) Head

Ans: a

 

72) To set the font for a single link, where do you add the <font></font> tags ?

a)Outside the <a> and </a>

b) In the <body> tag

c) Inside the <a> and </a> tags

Ans: c

 

73) Why should you add alternative text to your images ?

a) In case the user wishes to load a different picture

b) So the user can save the image using the text as a name

c) So the users can get an idea of what the image is before it loads

Ans: c

 

74) What is used to store information usually relevant to browsers and searchengines?

a) Tabs

b) Cookies

c) Metatags

Ans: c

 

75) What tag tells the browser where the page starts and stops ?

a) <head>

b) <body>

c)<html>

Ans: c

 

76) Why should you specify a background color if you are using an image for the actual background of your page ?

a) The background color will be shown until the image loads

b) In case the image doesnt fit right

c) So the text shows up better

Ans: a

 

77) The background image will scroll when the user scrolls down the page, unless you add which property to the <body> tag?

a) bgproperties="holdstill"

b) bgproperties="fixed"

c) bgproperties="stationary"

Ans: b

 

78) Imagelinks can show a text label if you add which property?

a) alternative

b) str

c) alt

Ans: c

 

79) Adding a border to your image helps the visitor to recognize it as what ?

a) A really great picture

b) A frame

c) A Link

Ans: c

 

80) Which of the following is NOT a valid pair for browser safe colors ?

a) AA

b) CC

c) 00

Ans: a

 

81)To start a numbered list with regular numerals use ?

a) <ol type="a">

b) <ol type="1">

c) <ol type="I">

Ans: b

 

82) Defining clickable sub-areas on an image is called?

a) imagelinking

b) imagemapping

c) multiple linking

Ans: b

 

83) How can you open a link in a new browser window?

a) <a href="url" new>

b) <a href="url" target="_blank">

c) <a href="url" target="new

Ans: b

 

84) What tag adds a paragraph break after the text ?

a) <PARAGRAPH>

b) <P>

c) <BR>

Ans: b

 

85) Which property will open a page in a new window?

a) target="_self"

b) target="_blank"

c) target="_top"

Ans: b

 

86) The <i> tag makes text... ?

a) Bold

b) Inline

c) Italic

Ans: c

 

87) Which two meta tags have special relevance for search engines ?

a) Description and Keywords

b) Description and Name

c) Cookies and Keywords

Ans: a

 

88) To start a list using circles use which of these tags ?

a) <ul type="circle">

b)<ul "circle">

c) <ul type="round">

Ans: a

 

89) All normal webpages consist of what two parts ?

a) Head and body

b) Top and bottom

c) Body and frameset

Ans: a

 

90) Use what to prevent confusion on numbers higher than 9 with hexadecimal colors ?

a) #

b) !

c) %

Ans: a

 

91) Why do designers often use slight variations of black and white as background colors ?

a) Personal choice

b) Black and white are ugly colors

c) To make the page more readable

Ans: c

 

92) Which will let text wrap down the side of the image?

a) <img src="myImage.gif" align="wrap">

b)<img src="myImage.gif" align="right">

c) <img src="myImage.gif" wrap="on">

Ans: b

 

93) There are how many "browser safe colors" ?

a) 16 Million

b) 216

c) 256

Ans: c

 

94) How do you add a link which will allow the visitor to send an email from your page ?

a) Add an image of an envelope

b)Add <a href="sendmailtoyouraddress">

c) Add <a href="mailto:youraddress">

Ans: c

 

95) Which tag is used to insert images into your web page ?

a) pic

b) scr

c) img

Ans: c

 

96) One should never combine the "start" and "type" option ?

a) True

b) Sometimes True, sometimes False

c) False

Ans: c

 

97) What is the most important tool for adding colors to certain areas of the page rather than the entire background ?

a) Fonts

b) Tables

c) Images

Ans: b

 

98) All HTML tags are enclosed in what ?

a) <>

b) ? and !

c) # and #

Ans: a

 

99) Which of the following will NOT be found in the <head> section ?

a) Metatags

b) Title

c) Table

Ans: c

 

100) Which property tells how many rows a cell should span ?

a) colspan=n

b) Both rowspan=n and colspan=n

c) rowspan=n

Ans: c

 

101. Which of the following is the correct regarding meta tag in HTML?

A. <meta> … </meta>

B. <meta name = ” ” />

C. <metadata> … </metadata>

D. <metadata name = ” ” />

Ans: B

 

102. Which of the following is correct to set “Black” color as Background of page?

A. <body bgcolor = “#000000?>

B. <body background = “#000000?> 

C. <body Background color = “#000000?>

D. All of Above

Ans: A

 

103. Which of the following is correct to align H1 tag to Right Alignment

A. <h1 align = “right”> … </h1>

B. <h1 alignment = “right”> … </h1>

C. <h1 tag align = “right”> … </h1>

D. H1 cannot make Right Alignment

Ans: A

 

104. Which of the following is correct to change font face in Web Page

A. <font = “font name”> … </font>

B. <font name = “font name”> … </font>

C. <font face = “font name”> … </font>

D. Font Face cannot change

Ans: C

 

105. Which of the following is incorrect regarding Logical styles?

A. Code looks like teletype

B. Sample looks like teletype

C. Keyboard looks like teletype

D. Variable looks like teletype

Ans: D

 

106. Which of the following is correct character entities for “Copyright” symbol?

A. &#149;

B. &#159;

C. &#169;

D. &#179;

Ans: C

 

107. Which tag is used to display Preformatted texts?

A. <pre> … </ pre>

B. <prefor> … </ prefor>

c. <pre text> … </ pre text>

D. <pre format> … </ pre format>

Ans: A

 

108. Which is the correct to create an Arabic numeral list

A. <ul type=”1?>

B. <ol type=”1?>

C. <il type=”1?>

D. <li type=”1?>

Ans: B

 

109. How to add alternative text for an Image?

A. <img src = “http://www.ghumti.com/logo.png” alternate = “Logo of website” />

B. <img src = “http://www.ghumti.com/logo.png” alt text = “Logo of website” />

C. <img src = “http://www.ghumti.com/logo.png” alternate text = “Logo of website” />

D. <img src = “http://www.ghumti.com/logo.png” alt = “Logo of website” />

Ans: D

 

110. How to embedded Audio Files in HTML?

A. <embed src = “myfavsong.mid” width = “100? height = “15?>

B. <embed sound = “myfavsong.mid” width = “100? height = “15?>

C. <embed audio = “myfavsong.mid” width = “100? height = “15?>

D. <embed music = “myfavsong.mid” width = “100? height = “15?>

Ans: A