HTML 2015

1. Which of the following is true about the <!DOCTYPE> tag?
Answers:
• It is deprecated.
• It is an HTML tag.
• It defines the document type (e.g. HTML, CSS, PHP, etc.)
• It is an instruction to the web browser about what version of HTML the page is written in.
2. <A href="http://mysite.com"> creates an HTML...
Answers:
• paragraph.
• image element.
• link element.
• line break.
3. True or False? A <!DOCTYPE> declaration must appear at the very top of an HTML file.
Answers:
• True
• False
4. Which HTML tag creates the largest header text size?
Answers:
• <h1>
• <HEADER>
• <HEADLINE>
• <h6>
5. What is the default character encoding in HTML5?
Answers:
• UTF-8
• UTF-32
• ISO-8859-1
• ASCII
• UTF-16
6. True or False: Based on general best practices, it is better to set font attributes directly in HTML rather than in CSS.
Answers:
• False
• True
7. True or False? The "charset" attribute can be applied to only one <meta> element per HTML document.
Answers:
• True
• False
8. How does a (modern) web browser interpret an unknown HTML element (e.g. <blabla>example</blabla>)?
Answers:
• A blank page will appear.
• The tag is treated as a regular block element (much like a <div>).
• The browser crashes.
9. What does an HTML doctype do?
Answers:
• An HTML doctype allows your HTML document to be validated.
• An HTML doctype tells the browser which version of HTML your document is using.
• All of these answers are correct.
• An HTML doctype makes it possible for browsers to render your document efficiently.
10. What are/is the most important difference between XHTML and HTML?
Answers:
• All of them
• XHTML DOCTYPE is mandatory
• Attribute values must be quoted
• The XML namespace attribute in <html> is mandatory
• <html>, <head>, <title>, and <body> is mandatory
11. Which of the following is a valid doctype?
Answers:
• HTML 3.2 Final
• MathML 2.0
• XHTML 1.0 Strict
• All of these are valid doctypes.
• SVG 1.1 Tiny
12. Which HTML specification contains definitions for the elements: <article>, <nav>, <header> and <footer>?
Answers:
• HTML 3.2
• HTML5
• All of these.
• XHTML 1.0
• HTML 4.01
13. What does the acronym ARIA stand for?
Answers:
• Accessible Robust Internet Applications
• Accessible Rich Internet Applications
• Actualized Robust Internet Applications
• Applicable Rich Interlinked Applications
• Applicable Rich Internet Applications
14. Which of the following will set the text color to #FF0000?
Answers:
• <FONT COLOR="red">
• <BODY TEXT="#FF0000">
• All of these
• <FONT COLOR="FF0000">
15. What is the purpose of the HTML <samp> element?
Answers:
• It's used to markup a variable in a programming context.
• It's used to markup a fragment of computer code.
• None of these.
• It's used to markup example output from a computer program.
16. What is the primary purpose of WAI-ARIA Landmark roles?
Answers:
• Landmark roles define regions of a web page intended to be used as navigational aids.
• Landmark roles are used to describe the various structures that organize content in a page.
• Landmark roles are used to describe standalone user interface widgets.
• Landmark roles typically act as containers for groups of standalone user interface widgets.
17. What is the URL of W3C Markup Validation Service?
Answers:
• http://validator.w3c.org
• http://validator.w3c.com
• http://w3c.validator.com
• http://validator.w3.com
• http://validator.w3.org
18. As of HTML 4.01, which of the following attributes should no longer be applied to <a> elements?
Answers:
• datasrc
• type
• media
• hreflang
• target
19. The <header> element should be used to markup
Answers:
• The header of the website
• The site title and meta tage
• The title and/or sub-title of any content block
• The main navigation
20. Which of the following is NOT an ARIA Landmark role?
Answers:
• navigation
• application
• main
• form
• article
21. What is the purpose of this HTML statement? <SCRIPT type="text/javascript">
Answers:
• To format text
• To define JavaScript code
• To define an applet
• None of these
22. Which element isn't a block level element?
Answers:
• <h1>
• <p>
• <div>
• <blockquote>
• <base>
23. Which HTML tag is used to include an external stylesheet?
Answers:
• <STYLE>
• <CSS>
• <LINK>
• <INCLUDE>
24. Which element represents a caption for the content of its parent <fieldset> ?
Answers:
• <thead>
• <title>
• <legend>
• <header>
• <div>
25. Which of the following HTML tags is used to input more than one line of text?
Answers:
• <INPUT type="textarea" />
• <INPUT type="text" />
• <TEXTBOX></TEXTBOX>
• <TEXTAREA></TEXTAREA>
26. In order to create a list using lowercase letters one would use...
Answers:
• <ol small="a">
• <ol "a">
• <ol type="a">
• <ol letter="a">
27. Increasing the cellpadding value will what ?
Answers:
• Increase the space between cells
• Decrease the softness of your site
• Increase the distance between cell and content
• Increase the softness of your site
• Decrease the space between cells
28. What attribute do you add to a checkbox input field to show that it is initially checked?
Answers:
• checked="checked"
• checked="true"
• checked="yes"
• none of these
29. <AREA> is the HTML element tag for
Answers:
• None of these
• a text area
• a multi-line text area
• an area inside an image-map
30. What does the X in XHTML stand for?
Answers:
• eXact
• eXtensible
• eXtra
• eXtended
31. The <base> element must be contained within the
Answers:
• <head> element.
• <table> element.
• <body> element.
• <style> element.
32. Which HTML attribute is used to set the space between the cell wall and the cell content in an HTML <TABLE> element?
Answers:
• cellspacing
• cellpadding
• cellspan
• margin
33. Which attribute allows  you to add descriptive text to a table?
Answers:
• caption
• display
• info
• content
34. Which HTML form attribute indicates how the form-data should be encoded?
Answers:
• name
• method
• enctype
• None of these
35. What is the purpose of the HTML <COLGROUP> tag?
Answers:
• To group rows in a table for formatting
• To group columns in a table for formatting
• To divide a table into structural row or column groups
• None of these
36. Why would you use an HTML <pre> tag?
Answers:
• All of these
• To preserve the exact spacing of the text
• To use multiple images in one table cell
• To format an image
37. Which of these elements does NOT exist?
Answers:
• <th>
• <title>
• <map>
• <lt>
• <dt>
38. Which HTML element will NOT create a line break by default?
Answers:
• <HR />
• <P>
• <SPAN>
• <BR />
39. How do you make it so that someone can mail me by just clicking on text?
Answers:
• <A HREF="mailto:support@abc.com">E-mail me</A>
• <A mailto="support@abc.com">E-mail me</A>
• <A mailto="support@abc.com"></A>E-mail me
• <A HREF="support@abc.com"></A>E-mail me
• <A HREF="=support@abc.com">E-mail me</A>
40. The right syntax to insert Line Break in HTML is:
Answers:
• <br></br>
• <br/>
• </br>
41. Tags and text that do not show directly on the page are placed where?
Answers:
• Image tag
• Head
• Body
• Tables
42. True or False: <script> tags may only go in between the <head> tags
Answers:
• False
• True
43. Which HTML tag do you use to format text like computer code?
Answers:
• <COMPUTER>
• <FORM>
• <CODE>
• <LI>
• <VAR>
44. What symbol differentiates most opening tags from closing tags?
Answers:
• /
• ;
• !
• #
• .
45. What does the following HTML statement create? <A name="help">Help Section</A>
Answers:
• an external link
• an anchor link
• All of these
• a Javascript link
46. What will this HTML statement create? <INPUT type="IMAGE">
Answers:
• An image that could be edited externally.
• An area that shows the files on your computer.
• An image that acts like a submit button.
47. Which HTML tag is NOT valid in a Strict HTML 4.01 doctype?
Answers:
• <area>
• <a>
• <b>
• <applet>
48. What is a deprecated HTML element or attribute?
Answers:
• An outdated feature that may become obsolete in future versions of HTML.
• A feature that has more than one defined use.
• A feature that can only be used once in the HTML document.
• An underused feature that is only used by experts.
49. Which <form> element attribute is used to control where the input values are sent?
Answers:
• destination
• deposit
• action
• method
• goto
50. Which of the following will display the ampersand(&) on an HTML page?
Answers:
• &amp;
• &ampersand;
• All of these
• &and;
51. When is the content of a table shown?
Answers:
• Before the page loads
• In pieces as it loads
• Before the border loads
• After the table is loaded
52. What does the following HTML statement do? <META name="robots" content="NOINDEX" />
Answers:
• Informs spam filters that your code is safe.
• Tells search engines not to index the page.
• None of these
• Informs antivirus programs that your code is safe.
• Keeps other web designers from changing the page.
53. Why should you specify a background color if you are using an image for the actual background of your page?
Answers:
• The background color will be shown until the image loads
• So the text shows up better
• In case the image doesnt fit right
54. Which attribute is used to specify an inline style for an HTML element?
Answers:
• class
• div
• id
• style
55. How do you create a submit button on an HTML form?
Answers:
• <P> <INPUT type= "submit" value="Send"> </P>
• <P> <INPUT type= "send" value="Submit"> </P>
• <P> <FORMBUTTON> = "send" value= "Submit" > </P>
• <P> <BUTTON = "submit" value= "Send"> </P>
56. An HTML document must contain unique values of which attribute?
Answers:
• image
• class
• font
• id
57. Which of these is not a <img> attribute?
Answers:
• alt
• src
• height
• size
• width
58. Which element is NOT a <table> element?
Answers:
• <tt>
• <thead>
• <th>
• <td>
• <tr>
59. Which of the following creates a valid HTML email link?
Answers:
• <A href="mailto:info@smarterer.com">Email Link</A>
• <A href="info@smarterer.com">Email Link</A>
• All of these
• <A href=(mailto:info@smarterer.com)>Email Link</A>
60. What is the primary difference between a DIV and a SPAN element?
Answers:
• A DIV is used with primary elements while a SPAN is used with secondary elements.
• A DIV is used for block level elements and a SPAN is used for inline elements.
• A DIV is used for inline elements and a SPAN is used for block level elements.
• DIV is commonly used and SPAN is deprecated
61. Which of the following HTML elements does NOT belong in the <HEAD> section of an HTML file?
Answers:
• <LINK>
• <META>
• <TITLE>
• <H1>
62. Which HTML element can be used to draw graphics via scripting?
Answers:
• <span>
• <canvas>
• <script>
• <p>
• <div>
63. What is the correct HTML tag for an inline frame?
Answers:
• <INLINE>
• <INLINEFRAME>
• <INFRAME>
• <IFRAME>
64. Which HTML element displays content from another page?
Answers:
• <DISPLAY>
• <MAP>
• <PAGE>
• <IFRAME>
65. Why would you use the HTML <DIV> tag?
Answers:
• To insert JavaScript code or an applet.
• To apply a <B> or <I> tag to a part of a web page.
• None of these
• To format grouped block-elements with styles.
66. Which HTML tag contains the main visual content of an HTML document?
Answers:
• <HEAD>
• <BODY>
• <DOC>
• <SITE>
67. Which attribute of an <a> tag can specify where it opens a link?
Answers:
• open
• follow
• alt
• title
• target
68. To separate single list items use?
Answers:
• <ul> and </ul>
• <ol> and </ol>
• <ll> and </l>
• <li> and </li>
69. What does  <A href="#title2"> create?
Answers:
• A hyperlink within a web page to an area named title2.
• A caption to an image called title2.
• A named area on the web page called title2.
• The word title in Heading Style 2.
70. <a> and </a> are the tags used for what?
Answers:
• Audio-voiced text
• Assigned links
• Adding links to your page
• Arial font text
• Aligning text
71. To create a bulleted list use...
Answers:
• <table>
• <bulletlist>
• <bullet>
• <ol>
• <ul>
72. What is "HTTP" short for?
Answers:
• HyperText Translated Program
• HyperText Transfer Protocol
• HyperText Transformation Protocol
• Hyper Transient Port
• Hyper Transfer Protocol
73. Which attribute would you use to specify how many columns an HTML table cell should span?
Answers:
• colspan
• column span
• col_span
• clmnspan
74. Which HTML element defines a bullet-point list?
Answers:
• <tablelist>
• <dl>
• <ol>
• <div>
• <ul>
75. Which tag doesn't form a table or a container for table elements?
Answers:
• <tr>
• <table>
• <td>
• <tt>
76. A <title> should appear in which element?
Answers:
• <p>
• <body>
• <head>
• <header>
77. Which organization defines the standards for the world wide web?
Answers:
• Google
• Microsoft
• W3C
• Mozilla
• Apple
78. Which HTML tag creates a horizontal line?
Answers:
• <HL>
• <H>
• <LINE>
• <HR>
79. If the browser can't display the image, the value of which attribute is shown as text instead?
Answers:
• alt
• id
• class
• title
80. What must be the first element in an HTML page?
Answers:
• <HEAD>
• <BODY>
• <TITLE>
• <!DOCTYPE>
81. How can you create an e-mail link?
Answers:
• <a href="mailto:123@gmail.com">
• <a mail="mailto:123@gmail.com">
• <mail href="123@gmail.com">
82. Which HTML element specifies page description, keywords and other information about the data?
Answers:
• <META>
• <TITLE>
• <DESC>
• <INFO>
83. Which of the following is not a valid HTML element tag?
Answers:
• <HEAD>
• <FOOTER>
• <FORM>
• <BLOG>
84. Which of the following sizes the width of a table to half of its containing object?
Answers:
• <TABLE size="50%">
• <TABLE="50%">
• <TABLE width="half">
• <TABLE width="50%">
85. Which of the following tags will NOT be found in the <head> section?
Answers:
• <link>
• <table>
• <title>
• <meta>
86. Which HTML tag is used to group block elements for styling purposes?
Answers:
• <AREA>
• <DIV>
• <SBAR>
• <HEAD>
87. HTML stands for:
Answers:
• Home Text Markup Language
• Hyperlinks Text Markup Language
• None of these
• Hyper Text Markup Language
88. What does the HTML <SUB> tag create?
Answers:
• subscript text
• italicized text
• superscript text
• bold text
89. Which HTML statement creates an <INPUT> element for a single line of text?
Answers:
• <INPUT type="copy" id="firstname">
• <INPUT type="text" id="firstname">
• <INPUT type="string" id="firstname">
• <INPUT type="characters" id="firstname">
90. HTTP stands for...
Answers:
• High Transmission Transfer Protocol
• Hypertext Transmission Protocol
• Hypertext Transfer Protocol
• Hypertext Trend Protocol
91. To add rows to your tables use which tags?
Answers:
• <td> and </td>
• <ti> and </ti>
• <tables > and </tables >
• <cr> and </cr>
• <tr> and </tr>
92. TRUE or FALSE? A <span> defines a section in a document (inline).
Answers:
• FALSE
• TRUE
93. Which of the following represents an HTML comment?
Answers:
• <!-- This is a comment -->
• <-- This is a comment -->
• <com>This is a comment </com>
• <comment> This is a comment </comment>
94. Which of the following HTML statements will display an image in the web browser?
Answers:
• <IMG file="/myimages/flowers.jpg" alt="Roses">
• <IMG link="/myimages/flowers.jpg" alt="Roses">
• <IMG src="/myimages/flowers.jpg" alt="Roses">
• <IMG href="/myimages/flowers.jpg" alt="Roses">
95. When are the HTML tags <TH>  and <TD> used?
Answers:
• When creating a large text area
• When creating forms
• When creating tables
• When creating text boxes
96. Which HTML target attribute value is used to tell the browser to load the document in a new, unnamed window?
Answers:
• _self
• _blank
• _parent
• _top
97. The video and audio HTML elements for media playback are available in...
Answers:
• HTML 4
• HTML 5
• HTML 3
• HTML 4.01
98. Which of the following HTML statements correctly displays a table row?
Answers:
• <TD></TD><TR></TR>
• <TR><TD></TD></TR>
• <TD><TR></TR></TR>
• <TR><TD></TR></TD>
99. What is the primary use for HTML?
Answers:
• Creating a complex relational database application.
• Creating basic elements of a website.
• Creating a fundamental source code control system.
• Creating a complex CRM application.
100. How can you scale an image on a web page?
Answers:
• None of these
• By using a border attribute
• By using a <FORM> tag
• By defining width and height attributes of the <IMG> tag
101. Which of the following will right-align the content inside a table-cell?
Answers:
• <td right>
• <td:right>
• <td valign="right">
• <td align="right">
102. Which of the following is a correct value for the HTML <form> method attribute?
Answers:
• get
• post
• all of these
103. Where can we place the background color tag in your page?
Answers:
• <font>
• <head>
• <body>
104. When do you use an HTML <i> tag?
Answers:
• To define an input field
• To define italic text
• To define inserted text
• None of these
• To define a list item
105. Which attribute of the HTML <A> tag specifies the address of the destination link?
Answers:
• href
• linkdest
• dest
• link
106. How do you make a link to another web page?
Answers:
• <a src="http://www.abc.com"></a>Visit abc.com
• <a href="http://www.abc.com">Visit abc.com</a>
• <a href="http://www.abc.com"></a>Visit abc.com
• <a src="http://www.abc.com">Visit abc.com</a>
107. Which HTML tag do you use to create an ordered list?
Answers:
• <DL>
• <OL>
• <OD>
• <UL>
108. TRUE or FALSE? A <div> defines a section in a document (block-level).
Answers:
• TRUE
• FALSE
109. Which of the following HTML statements inserts a checkbox?
Answers:
• <INPUT menu="checkbox">
• <INPUT type="checkbox">
• <CHECKBOX>
• <A href="checkbox">
110. A web browser interprets every HTML tag until it finds
Answers:
• </END>
• </TERMINATE>
• </HTML>
• </CLOSE>
111. Which HTML element makes text bold?
Answers:
• <BOLD>
• <B>
• <BO>
• <ST>
112. Which HTML element allows authors to insert a frame within a block of text?
Answers:
• <XFRAME>
• <IFRAME>
• <INSET>
• <INLINE>
113. What does this code render in the browser? <B><I>Text</I></B>
Answers:
• Creates bold italic text
• All of these
• Creates a table cell
• Creates italic text
114. Where is a META tag placed?
Answers:
• in the BODY
• in a P tag
• in the HEAD
115. HTML provides web designers with the means to...
Answers:
• edit images online.
• react to user keystrokes or mouse actions on the web page.
• manage credit card transactions.
• publish online documents with headings, text, tables, lists, and photos.
116. The HTML <HEAD> element can contain...
Answers:
• All of these
• scripts
• meta information
• style sheet links
117. What does this HTML statement create? <A HREF="http://microsoft.com">
Answers:
• a link to an external script
• a link to a database
• a link to a web page
• None of these
118. Which tag is used for a paragraph block?
Answers:
• <br>
• <paragraph>
• <p>
• <pb>
119. which of the following HTML tag are used for mp3 file
Answers:
• <embed height="50" width="100" src="horse.mp3">
• <input height="50" width="100" src="horse.mp3">
120. True or false. <h1> is a heading bigger than <h3>
Answers:
• True
• False
121. CSS appears between which tags?
Answers:
• <style> and </style>
• <div> and </div>
• <c> and </c>
• <define> and </define>
• <iframe> and </iframe>
122. What is the correct HTML and XHTML tag for inserting a line break?
Answers:
• <lb> and <lb />
• <br> and <br />
• <tr> and <tr />
• <breakline> and <breakline />
• <break> and <break />
123. What does the HTML <A> tag create?
Answers:
• an area inside an image map
• an article
• None of these
• hyperlink
124. To create an ordered list, use the the following HTML tag
Answers:
• None of these
• <OLIST>
• <O LIST>
• <OL>
125. Which tag will make the text bold?
Answers:
• <dark>
• <super>
• <strong>
• <br>
126. Choose the tag that defines where the HTML document begins and ends:
Answers:
• <DIV></DIV>
• <DOC></DOC>
• <BODY></BODY>
• <HTML></HTML>
127. A simple HTML table consists of the <TABLE> element and...
Answers:
• <TH>
• <TR>
• All of these
• <TD>
128. Which HTML element displays data in columns and rows?
Answers:
• <TABLE>
• <P>
• <HEAD>
• <FORM>
129. Which of the following is an example of an HTML table row?
Answers:
• <CELL>This is a Table Row
• <TR> <TH>This is a Table Row</TH> </TR>
• <TABLE ROW>This is a Table Row</TABLE ROW>
• <ROW>This is a Table Row
130. Which of the following is the correct way to create an HTML link?
Answers:
• <A target="/url">link</A>
• <A link="/url">link</A>
• <A href="/url">link</A>
• <A mailto="/url">link</A>
131. Which of the following HTML elements appear last in an HTML page?
Answers:
• </BODY>
• </HTML>
• </TITLE>
• </HEADER>
132. Which of the following HTML statements inserts an image?
Answers:
• <IMG href="image.jpg" alt="">
• <IMG alt="">"image.jpg"</img>
• <IMG src="image.jpg" alt="">
• <IMAGE="image.jpg" alt="">
133. Which HTML tag starts the creation of a table?
Answers:
• <T>
• <HTMLTABLE>
• <TABLE>
• <TAB>
134. Which attribute is required for the HTML <IMG> tag?
Answers:
• rel
• id
• src
• width
135. What are the default extensions for an html document?
Answers:
• .html and .htm
• .htl and .httm
• .httpm and .htmx
• .http and .htmx
136. How would you set a page title in HTML ?
Answers:
• <pagetitle value="This is a page title" />
• <pagetitle>This is a page title</pagetitle>
• <title value="This is a page title" />
• <page title="This is a page title" />
• <title>This is a page title</title>
137. What does HTML stand for?
Answers:
• Hypertext Manual Language
• Hypertext Markup Language
• Hyperextensible Markup Language
• None of these
138. How will you add an image into a web page?
Answers:
• <immage url="image.gif" height="200" width="200">
• <img url="image.gif" height="200" width="200">
• <image height="200" width="200">
• <img >imagefile.jpg</img>
• <img src="image.gif" height="200" width="200">
139. Which heading element is defined as the most important which usually displays the largest text?
Answers:
• <H1>
• <H3>
• <H6>
• <H9>
140. Which HTML tag is used to reference Javascript files?
Answers:
• <script>
• <link>
• <body>
• <meta>
141. Besides<B>, another way to make text bold is what?
Answers:
• <big>
• <dark>
• <fat>
• <strong>
142. Which HTML element italicizes text?
Answers:
• <ITAL>
• <ITALICS>
• <I>
• <B>
143. Which HTML tag adds line breaks to a web page?
Answers:
• <B>
• <BR>
• <PARAGRAPH>
• <LB>
144. Which of the following is a correct HTML tag?
Answers:
• <p>
• <em>
• All of these
• <strong>
• <span>
145. Which of the following creates an HTML line break?
Answers:
• <BR />
• <BREAK />
• <B />
• <LB />
146. What is the correct HTML for creating a hyperlink?
Answers:
• <a>http://www.abc.com</a>
• <a href="http://www.abc.com">abcTechnologies</a>
• <a url="http://www.abc.com">abcTechnologies</a>
• <a name="http://www.abc.com">abcTechnologies</a>
147. Which HTML tag is correct?
Answers:
• <IMG src="1.jpg" />
• <IMG link="1.jpg" />
• <IMG value="1.jpg" />
• <IMG source="1.jpg" />
148. What is the correct syntax for creating a hyperlink?
Answers:
• <a href="http://smarterer.com">smarterer</a>
• <a name="http://smarterer.com">smarterer</a>
• <a _target="http://smarterer.com">smarterer</a>
• <a title="http://smarterer.com">smarterer</a>
149. Which tag defines a paragraph?
Answers:
• <paragraph>
• <table>
• <list>
• <p>
• <br>
150. Which HTML tag do you use to add a video to your web page?
Answers:
• <FONT>
• <MARQUEE>
• <B>
• <I>
• None of these
151. Which of the following HTML tags is used to display an image?
Answers:
• <PICTURE>
• <IMG>
• <IMAGE>

• <IMAGES>
152. The <title> tag belongs where in your HTML?
Answers:
• <head>
• <embed>
• <arm>
• <body>
153. To change the size of an image in HTML use what?
Answers:
• bigger and smaller
• height and width
• small and big
• pliers
• length and wide
154. Gif and jpg are the two main types of what?
Answers:
• html
• animated effects
• images
• videos
• outlines
155. HTML forms can contain:
Answers:
• All of these
• Checkboxes
• Radio buttons
• Text fields
156. Which image type can you insert into an HTML document?
Answers:
• All of these
• png
• gif
• jpg
157. Which HTML element will display the largest font size by default?
Answers:
• <P>
• <A>
• <H1>
• <B>
158. When do you use an HTML <B> tag?
Answers:
• To define a single line break
• To define bold text
• To define a push button
• None of these
• To define italic text
159. <A href="http://mysite.com"> creates an HTML...
Answers:
• Time's Up!
• line break.
• image element.
• link element.
• paragraph.
160. <I> is the HTML element for
Answers:
• ignore.
• information.
• indent.
• italics.
161. What does the HTML <P> tag define?
Answers:
• parameter of an object
• image
• None of these
• highlighted text
• paragraph
162. Which HTML tag do you use to put an image on a web page?
Answers:
• <IMG>
• <IMAGE>
• <IM>
• <PIC>
163. What does <br /> do?
Answers:
• It indents the current line of text.
• It makes text bold.
• It creates a bubble.
• It creates a line break.
• It creates a bullet outside of an unordered list.
164. Which of the following creates the largest HTML header text?
Answers:
• <H4>
• <H1>
• <H3>
• <H2>
165. The correct file extension used for an HTML file is...
Answers:
• .html
• .exe
• .doc
• .xps
166. All HTML tags are enclosed in what ?
Answers:
• <>
• # and #
• ? and !
167. Which is an example of the correct syntax used to write HTML tags?
Answers:
• <HTML>
• -HTML-
• "HTML"
• (HTML)
168. Which of the following is not a valid html tag?
Answers:
• <h7>
• <strong>
• <table>
• <div>
• <meta>
169. Which of these HTML tags represents the smallest heading?
Answers:
• <H5>
• <H0>
• <H1>
• <H6>
170. <EM> is the HTML element for
Answers:
• extra markup.
• strikethrough text.
• emphasized text.
• keyboard text.
171. In HTML, to add spaces to your text, you can use the
Answers:
• &lt; entity
• &nbsp; entity
• <SPACE> tag
• <EMPTY> tag
172. What of the following HTML tags is used for computer code text?
Answers:
• <CITE>
• <VAR>
• <KBD>
• <CODE>
173. What is the purpose of the <!DOCTYPE> declaration?
Answers:
• None of these
• To enclose the markup tags.
• Notify the browser which version of HTML the page uses.
• To label the page with an appropriate heading.
174. Which of these is not a HTML tag?
Answers:
• <script>
• <center>
• <img>
• <body>
• <con>
175. Which HTML tag do you use to add a horizontal rule?
Answers:
• <TD>
• <HR>
• None of these
• <NOSHADE>
• <TR>
176. Which syntax closes a table cell?
Answers:
• </tc>
• </td>
• </cell>
• </span>
177. What element specifies a row in a HTML table?
Answers:
• td
• tabler
• tr
• tablerow
• trow
178. Which tag do you use in the beginning of an HTML document?
Answers:
• </HTML>
• </BODY>
• <BODY>
• <HTML>
• <BEGIN>
179. What does an example of a hexadecimal color code look like?
Answers:
• rgb(255,0,255)
• (255,0,255)
• #990000
• #blue
180. How can you open a link in a new browser window?
Answers:
• <a href="url" target="new>
• <a href="url" target="self>
• <a href="url" new>
• <a href="url" target="_top">
• <a href="url" target="_blank">
181. True or False: <meta> tags should go between the <body> tags.
Answers:
• True
• False
182. Which of the following would be used in table row coding?
Answers:
• <thd>
• <ty>
• <th>
• tt
• <TR>
183. Which of the following HTML elements denotes the name of the page?
Answers:
• <PAGE NAME>
• <PAGE TITLE>
• <TITLE>
• <NAME>
184. True or False: Checkboxes are used to select multiple choices whereas with radio boxes only one choice can be selected when the submit button is clicked.
Answers:
• False
• True
185. <BR> is the HTML element for
Answers:
• inserting a single line break.
• inserting a page break.
• None of these
• inserting a horizontal rule.
186. What does Web Hosting mean?
Answers:
• storing your website on a public server
• None of these
• accessing your email from a mail server
• creating a web page with HTML
187. To add real spaces to your text, which character entity can you use?
Answers:
• &nbsp;
• &bnsp;
• &bnps;
• &space;
• &bp;
188. Which tag is used to insert images into your web page?
Answers:
• src
• txt
• img
• doc
• pic
189. Which attribute gives a unique identity for an HTML element?
Answers:
• identity
• id
• div
• class
190. Which HTML tag creates a hyperlink?
Answers:
• <LINK>
• <A>
• <HL>
• <L>
191. Which HTML element is typically used for positioning block-elements?
Answers:
• <P>
• <TD>
• <DIV>
• <LAYER>
192. What is a use for the class attribute in HTML?
Answers:
• as a META variable
• to select a class in a style sheet
• as a marker for an HTML function
• as a script defined by XHTML
193. How many values can the class attribute have per HTML element?
Answers:
• 1
• 2
• unlimited
• 0
194. <__________________________ content="A description of your page"> Fill in the blank to create a tag that would give a description of your page.
Answers:
• marquee
• div change="keyword"
• meta name="description"
• description
• cssvalue
195. Which of the following is an example of an HTML hidden field?
Answers:
• <INPUT field="hidden" />
• <INPUT="hidden" />
• <INPUT type="hidden" />
• <INPUT type="hide" />
196. Which answer best describes the following HTML? <OL><LI>1</LI><LI>2</LI><LI>3</LI></OL>
Answers:
• A numbered list with 3 options
• An unnumbered list with 2 options
• A numbered list with 2 options
• An unnumbered list with 3 options
197. What is the default port number for HTTP URL scheme?
Answers:
• 40
• 120
• 60
• 100
• 80
198. Which two meta tags have special relevance for search engines?
Answers:
• Cookies and Keywords
• Description and Name
• Description and Keywords
199. How do you get two div to sit side by side?
Answers:
• left
• right
• Float (left or right)
• align (left or right)
200. Both ordered and unordered lists share which HTML tag to denote a list item?
Answers:
• <LITEM>
• <LI />
• <LIST ITEM>
• <LI>
201. Which attribute of the <IMG> tag tells the browser what to display if a user cannot view the image?
Answers:
• text
• alt
• img info
• info
202. What is the purpose of html?
Answers:
• HTML provides functionality to manipulate the DOM
• HTML adds style to static web elements
• HTML simplifies database connectivity
• HTML provides structure for web pages
• HTML controls the MVC design pattern
203. Which of these will make an image button?
Answers:
• <input type="text" size="25" value="Enter your name here!">
• <input type="image" src="rainbow.gif" name="image">
• <input src="rainbow.gif">
• <input src="rainbow.gif" name="image">
204. Which of the following is not a valid HTML input type?
Answers:
• radio
• video
• checkbox
• text
205. Which of the following is a valid input type in HTML5 forms?
Answers:
• All of these
• range
• url
• search
• datetime-local
206. [True/False] HTML5 can be used for creating games?
Answers:
• False
• True
207. Which of the following defines a multi-line text input control in HTML?
Answers:
• <ml rows="2" cols="20">
• <area rows="2" cols="20">
• <textarea rows="2" cols="20">
• <text rows="2" cols="20">
208. Which attribute would you use to specify how many rows an HTML table cell should span?
Answers:
• row span
• rwspan
• row_span
• rowspan
209. Which attribute would you use on the <A> tag to always open a link in a new window?
Answers:
• TARGET="_blank"
• TARGET="_self"
• TARGET="_new"
• TARGET="open"
210. An HTML list within an HTML list is called a...
Answers:
• inside list.
• double list.
• multi-list.
• nested list.
211. What does the following HTML tag display? <DIV id="text" align="right">content</DIV>
Answers:
• A DIV with an id called text and its content aligned left.
• A DIV with an id called text and its content aligned right.
• A DIV with a class called text and its content aligned center.
• A DIV with a class called text and its content aligned right.
212. Which HTML form attribute do you use to define where to send the form data?
Answers:
• action
• checked
• name
• All of these
213. What are the three major parts of an HTML document?
Answers:
• Doctype, Head, and Body
• Version, Meta data, and Content
• Header, Main, and Footer
• Beginning, Middle, and End
214. Which of the following is NOT an HTML element?
Answers:
• <BEGIN>
• <COLOR>
• All of these
• <WEBSITE>
215. What is the purpose of the HTML <EM> tag?
Answers:
• To define external interactive content
• None of these
• To define emphasized text
• To define a table caption
• To define a body element
216. What tag tells where a link starts?
Answers:
• <link>
• <a>
• <start>
• <links>
217. Which element is used to embed video content in an HTML5 document?
Answers:
• <video>
• <richcontent>
• <videoplayer>
• <vid>
• <player>
218. Unless specifically styled, HTML unordered list items are typically rendered with...
Answers:
• hashtags.
• bullets.
• slashes.
• numbers.
219. Which one of these answers would embed "flash.swf" into your webpage?
Answers:
• <insert src="flash.swf" height="80" width="80" />
• <embed src="flash.swf" height="80" width="80" />
• <flashembed src="flash.swf" height="80" width="80" />
• <SWF src="flash.swf" height="80" width="80" />
220. How can you make a list that lists the items with numbers?
Answers:
• <ol>
• <dl>
• <ul>
• <il>
• <list>
221. What are the three list types in HTML?
Answers:
• Unordered, Ordered, Definitions
• Unordered, Numbered, Definitions
• Random, Numbered, Definitions
• Random, Ordered, Footnotes
222. Which HTML tag is NOT used when formatting text?
Answers:
• <I>
• <SMALL>
• <IMG>
• <STRONG>
• <P>
223. Which HTML tags are used to turn text underlining on and off?
Answers:
• <ULine> and </Uline>
• <STRIKE> and </STRIKE>
• <L> and </L>
• <U> and </U>
224. Which of the following HTML statements will render a horizontal rule?
Answers:
• <horz width="50%" align="center"></horz>
• <line align="center" />
• <hr width="50%" align="center" />
• <br width="50%" />
225. What is the purpose of this HTML statement? <META name="keywords" content="rabbit,cat">
Answers:
• To provide language information to web browsers
• All of these
• To position links on a web page
• To provide specific keywords to search engines
226. What are the two methods for sending form data that you can define for the HTML <FORM> tag?
Answers:
• PROCESS and GET
• None of these
• POST and SUBMIT
• POST and GET
• SUBMIT and GET
227. The HTML <BUTTON> tag
Answers:
• makes an image a link.
• returns the user to the home page.
• specifies when to submit HTML form data.
• creates a push button on a form.
228. What does an HTML <A> element need the href attribute set to in order to open the clients email application when clicked?
Answers:
• mail:user@company.com
• http://emailto:user@company.com
• emailto:user@company.com
• mailto:user@company.com
229. What is the HTML <DD> tag used for?
Answers:
• To create an unordered list.
• All of these
• To describe an item in a definition list.
• To create a nested list.
230. What does the following HTML statement indicate?  <TD colspan="2">
Answers:
• A table cell which spans two rows.
• None of these
• A table cell which spans two columns.
• A table cell which splits off into two sub-cells.
231. Which attribute can be used with the <img> tag to override or reserve the dimensions of the box?
Answers:
• height / width
• vert / horiz
• fallback-dimensions="width" and fallback-dimensions="height"
• x / y
232. What would one use to restrict a user to 100 characters in a text box?
Answers:
• max-length="100px"
• maxlength="100"
• width="100"
• width="100px"
233. Why should you add alternative text to your images?
Answers:
• In case users wish to load a different picture
• So users can save the image using the text as a name
• So it will appear as a tooltip when users see the image
• To describe the content if the image cannot be displayed
234. Which element specifies relationships between the current document and other documents?
Answers:
• <p>
• <div>
• <base>
• <link>
• <meta>
235. What is used to store information typically used to specify page description, keywords, author of the document, last modified, and other data?
Answers:
• Tables
• Meta tags
• Database
• Tabs
• Cookies
236. Choose the valid HTML comment.
Answers:
• <!-- Comment -->
• <!-- Comment --!>
• <-- Comment -->
237. Which of following attributes will always make an HTML link open in a new window?
Answers:
• target="_blank"
• target="blank"
• target=_blank
• target: blank;
238. Imagelinks can show a text label if you add which property?
Answers:
• str
• id
• alt
• name
• alternative
239. When using the FORM tag, what allows users to only select one choice?
Answers:
• check boxes
• radio buttons
• bullet points
• unordered lists
240. Which tag represents a header cell of an HTML table?
Answers:
• None of these
• <TH>
• <TR>
• <COLS>
• <TD>
241. In HTML, outdated elements are referred to as _________.
Answers:
• deprecated
• demised
• dumb
• dead
• done
242. What is a link to a specific part of a web page called?
Answers:
• None of these
• an external link
• an anchor link
• a mailto link
243. By default, an unvisited HTML link is displayed as...
Answers:
• underlined and blue.
• underlined and red.
• None of these
• underlined and purple.
244. What is used to start a numbered list with regular numerals?
Answers:
• <ol type="normal">
• <ol type="I">
• <ol type="a">
• <ol type="1">
245. True or False: It is better to set font attributes directly in HTML rather than in CSS.
Answers:
• True
• False
246. <S> is the HTML 3.0 element for
Answers:
• strikethrough text.
• bold text.
• simple text.
• blink text.
247. Which element represents a nested browsing context, effectively embedding another HTML page into the current page?
Answers:
• <iframe>
• <div>
• <page>
• <nest>
• <html>
248. Which HTML tag creates the largest header section?
Answers:
• <h6>
• <h1>
• <HEADLINE>
• <HEADER>
249. Which two HTML elements must be present in a nested unordered list?
Answers:
• <UL> and <OL>
• <LI> and <H1>
• <UL> and <LI>
• <OL> and <LI>
250. What character should you use to prevent confusion on numbers higher than 9 with hexadecimal colors ?
Answers:
• @
• $
• !
• %
• #
251. Which  HTML tag is an inline element?
Answers:
• <p>
• <div>
• <ul>
• <span>
252. What function does the <HTML> tag perform?
Answers:
• Notifies the browser that this is an HTML document.
• Verifies that the browser supports the current version of HTML.
• Checks to see if the browser supports HTML.
• None of these
253. An <object> tag can be used to embed which of the following?
Answers:
• PDF files
• Java applets
• All are correct
• Another webpage
• Flash
254. Which of these tags would produce a box with the following characteristic: when the viewer typed into it it would show all the characters as little dots?
Answers:
• <input type="checkbox">
• <input type="text">
• <input type="password">
• <input type="radio">
• <input type="robots">
255. What does vlink mean?
Answers:
• very good link
• vertical link
• visited link
• active link
• visual link
256. Given "http://www.site.com/page.html", what type of URL is this?
Answers:
• Filesystem URL
• IP Address URL
• Relative URL
• Absolute URL
257. The Web Hypertext Application Technology Working Group...
Answers:
• makes web browser
• makes code
• works on web standards
258. Defining clickable sub-areas on an image is called?
Answers:
• imagelinking
• multiple linking
• imagemapping
259. Which of the following HTML tags creates a list with bullets by default?
Answers:
• <LI>
• <OL>
• <UL>
• <BL>
260. Which is NOT a predefined target for links ?
Answers:
• _blank
• _son
• _parent
• _self
261. What is the correct term for an HTML element that is no longer part of standard usage?
Answers:
• archaic
• deleted
• out-of-date
• deprecated
262. What does the HTML attribute href contain when used with the <A> tag?
Answers:
• Specifies where to open the target URL.
• The language of the target URL.
• None of these
• The destination of the target URL.
263. The character entity to represent a non-breaking space:
Answers:
• &nbsp;
• &npsb;
• &break;
• %20;
• nspb;
264. Which attribute allows you to make HTML form input elements uneditable?
Answers:
• src
• type
• checked
• disabled
265. In which way can an HTML ordered list be ordered?
Answers:
• Neither of these
• numerical
• alphabetical
• Both of these
266. An <iframe> is used to...
Answers:
• Create a pop-up window.
• define a particular window (frame) within a <frameset>
• embed another document within the current HTML document.
• Draw a border around a group of elements.
267. Which of the following HTML tags are responsible for creating a drop down form input?
Answers:
• <option> and <optgroup>
• <select> and <option>
• <dropdown> and <option>
• <dropdown> and <select>
268. What does the align attribute do when used with the HTML <TD> tag?
Answers:
• Adjusts horizontal alignment of cell content.
• Adjusts vertical alignment of cell content.
269. Can you combine HTML and a Cascading Style Sheet to format a paragraph?
Answers:
• Always
• Never
• Only for legacy web content
• Only when the the Cascading Style Sheet is external
270. By default, a SPAN is displayed as what kind of element?
Answers:
• block-level
• inline
• list-item
• run-in
• table-cell
271. Which of the following HTML link statements is correctly constructed?
Answers:
• <link rel="stylesheet" href="style.css" type="css" />
• <link rel="css" href="style.css" type="text/css" />
• <link rel="style.css" href="text/css" type="stylesheet" />
• <link rel="stylesheet" href="style.css" type="text/css" />
272. When making bulleted lists you have what options?
Answers:
• triangle, square, circle
• disc, circle, square
• square, disc, polygon
273. The <div> element is an example of...
Answers:
• a block element
• a layer
• an inline element
• a diverse element
274. Which attribute is used to format the HTML <IMG> tag?
Answers:
• frame
• enctype
• None of these
• action
• type
275. Which attribute is used to determine where the HTML form data is sent to?
Answers:
• action
• href
• value
• method
276. Which of these can you use to format HTML text?
Answers:
• <P> tag
• Cascading style sheet
• <B> tag
• All of these
277. HTML entities, also called special characters,
Answers:
• begin with an ampersand(&) and end with a semicolon(;).
• begin with a semicolon(;) and end with an ampersand(&).
• cannot be styled.
• cannot be displayed in HTML.
278. What does the HTML <TITLE> tag do?
Answers:
• Defines a title in the browser toolbar.
• All of these
• Displays a title for the page in search-engine results.
• Provides a title for the page when it is bookmarked.
279. Choose a valid value for the type attribute of the HTML <BUTTON> tag.
Answers:
• All of these
• submit
• reset
• button
280. Which standard event attribute does not require a mouse click to trigger the event?
Answers:
• ondblclick
• onclick
• All of these
• onload
281. What is this?  <a href="/some/page#foo">Label</a>
Answers:
• A link to the resource "/some/page#foo" (a file on the web server by that name).
• A link to the resource "/some/page". When visited the browser will attempt to jump the viewport to an element with an id="foo"
• A link to the resource "/some/page". The "foo" is the query string.
282. What is the purpose of the alt attribute on the HTML <IMG> tag?
Answers:
• To define text to wrap around the image
• To define text that should appear if the image cannot be shown
• All of these
• To position an image on the web page
283. What does the HTML tag <UL> create?
Answers:
• A bulleted list.
• An alphabetized list.
• A numbered list.
• All of these
284. What is an absolute URL?
Answers:
• A URL generated by Dreamweaver
• A URL that shows an entire path to the file
• A URL that shows a relative path to a file
• A URL linked to the front page
• None of these
285. What main tag of an HTML document comes after the <html> tag?
Answers:
• <!DOCTYPE>
• <head>
• <body>
• <meta/>
• <title>
286. To encode the SPACE in a URL which character you should use?
Answers:
• %2C
• %4D
• %2D
• %20
• %60
287. Which of these is NOT a valid HTML button type?
Answers:
• reset
• button
• send
• submit
288. What is the definition of a deprecated element?
Answers:
• An element which has been removed from the latest standards.
• A "core" element of the code which must be present on every webpage for a site to function.
• An element verified to behave exactly the same across all browsers.
• An element that breaks when changes are made elsewhere in the code.
289. Which element is used to display content to browsers when scripting is turned off?
Answers:
• <script>
• <canvas>
• <fallback>
• <execute>
• <noscript>
290. When using frames in an HTML page, each frame displays a different
Answers:
• video file.
• audio file.
• web page.
• None of these
291. The statement "hex values are the only way to define colors" is ...
Answers:
• Correct for Internet Explorer. Wrong for Netscape browsers.
• Wrong. Colors can also be specified with names.
• Correct for computer screens that only understands hexadecimal values.
292. Which HTML input type can be used to select multiple, non-mutually exclusive options?
Answers:
• textbox
• checkbox
• radio buttons
• dropdown
293. Which of these elements is responsible for creating table columns?
Answers:
• <th>
• <col>
• <td>
• <tc>
• <tr>
294. What is the HTML attribute valign used for?
Answers:
• Vertically aligns the contents of a table cell
• Horizontally aligns the contents of a table cell
• Vertically aligning data on the web page
• None of these
295. Which of the following is an HTML element?
Answers:
• <bold>
• <underline>
• <strong>
• <string>
296. What does the attribute target=" " on the <A> element do?
Answers:
• Specifies where to open the linked document.
• Specifies the mime-type of the linked document.
• None of the above
• Specifies the URL of the document to open.
297. Which of these is a form tag attribute?
Answers:
• input
• EXE
• file
• method
• version
298. An HTML element attribute name must be immediately followed by
Answers:
• plus(+)
• bracket([)
• comma(,)
• equal(=)
299. According to web standards the <TABLE> ... </TABLE>  element is best used ....
Answers:
• As a parent container for other block-level elements
• For controlling the layout of a web page with structured rows and columns
• When <DIV>s are difficult to position correctly
• To present data in a tabular layout
300. Which of the following creates an HTML image link?
Answers:
• <a href="/smarterer" src="image.jpg"></a>
• <img src="image.jpg"><a href="/smarterer"></a></img>
• <a href="/smarterer"><img src="image.jpg"/></a>

• <img href="/smarterer" src="image.jpg"></img>
301. How do you specify text to appear in an <input type="submit"> of an HTML form?
Answers:
• value attribute
• <LEGEND> tag
• <FIELDSET> tag
• None of these
• name attribute
302. What do you call an element that specifies how the screen should be divided into frames?
Answers:
• setting
• iframe
• frametable
• tablelink
• frameset
303. To add white space along the margins of a long quote, use this element:
Answers:
• <QUOTE>
• <" ">
• <QUOTATION>
• <BLOCKQUOTE>
304. What does the colspan attribute of the HTML <TD> tag represent?
Answers:
• The number of columns a table cell should span.
• The number of columns within a table.
• The number of rows within a table.
• The number or rows a table cell should span.
305. GET and POST are values for which HTML form attribute?
Answers:
• input
• method
• action
• submit
306. Which HTML element automatically creates space before and after it is rendered?
Answers:
• <P>
• <AREA>
• <SPAN>
• <BODY>
307. Which of these HTML tags defines a nested list?
Answers:
• <TABLE>
• <ISO>
• <ALT>
• <NESTED>
• None of these
308. An HTML image-map is an image with
Answers:
• site structure info
• highlighted areas
• clickable areas
• geographic info
309. Can we have two or more actions in the same form ?
Answers:
• yes
• no
310. What does the <link> tag do?
Answers:
• Links two web pages together without using attributes
• Defines the relationship between a document and an external resource
• Provides a hyperlink to another web page
• Uses accessibility standards to allow screen readers prior knowledge of a link
311. What is the proper syntax for the HTML doctype declaration?
Answers:
• <DOCTYPE html>
• <!DOCTYPE html>
• <doctype>html</doctype>
• <!--DOCTYPE html>
• <!DOCTYPE>html</DOCTYPE>
312. In a form, the INPUT tag can have many types. Which one is NOT a valid type?
Answers:
• submit
• password
• text
• hidden
• check
313. What are/is the most important difference between XHTML and HTML?
Answers:
• Time's Up!
• All of them
• Attribute values must be quoted
• XHTML DOCTYPE is mandatory
• <html>, <head>, <title>, and <body> is mandatory
• The XML namespace attribute in <html> is mandatory
314. HTML rendering is performed mostly on the
Answers:
• Web browser client
• Network server
• All of these
• Web server
315. Which property tells how many rows a cell should span?
Answers:
• span=n
• rowspan=n
• Both rowspan=n and colspan=n
• columnspan=n
• colspan=n
316. Where should the <base> element be placed?
Answers:
• After the <html> element
• Above the doctype
• In the <head> section
• In the <body> section
317. What does the GENERATOR meta tag tell?
Answers:
• When designed the page
• Who designed the page
• What type of server your page is on
• Which program was used to produce the page
318. What is the REFRESH meta tag used for ?
Answers:
• Allow search engines to relist your page
• Refresh the page, optionally to a different url
• Refresh your descriptions
• Refresh your keywords
319. Which HTML tag is used to display abbreviated words?
Answers:
• <ABR>
• <A>
• <ABBR>
• <ABBREVIATE>
320. Which attribute would you assign to an HTML <MAP> tag?
Answers:
• max
• name
• method
• action
321. The <param> tag is used in conjunction with which of the following?
Answers:
• <select>
• <frame>
• <fieldset>
• <form>
• <object>
322. To start a list at the count of 3, use which of the following?
Answers:
• <ol begin="3">
• <ol newlist="5">
• <ol list="5">
• <ol start="3">
323. What is the purpose of the HTML <NOSCRIPT> tag?
Answers:
• To inform antivirus programs that your code is safe.
• To inform spam filters that your code is safe.
• To display alternate information to a browser that cannot run scripts.
• To prevent a browser from running a script.
• None of these
324. Which HTML elements are characterized by a line break before and a line break after the element?
Answers:
• Inline elements
• Spans
• Outline elements
• Block elements
325. What describes the <input> tag?
Answers:
• Can have a 'disabled' attribute
• Is used to collect user information
• Does not need a closing tag in HTML strict
• All of these
326. Which attribute, when used with <A> element, will create tooltip text in most browsers?
Answers:
• title
• link
• href
• info
327. Which attribute of the HTML <BODY> tag has been deprecated?
Answers:
• bgcolor
• text
• All of these
• vlink
328. colspan=n can be added to only what tag?
Answers:
• <list>
• <td>
• <table>
• <li>
• <tr>
329. Which attribute do you use to span table cells across table columns?
Answers:
• colspan
• rowspan
• Both colspan and rowspan
330. What is the default value of the "target"  attribute?
Answers:
• _top
• _self
• _blank
• _parent
331. Which element can't be placed inside <table> ... </table>?
Answers:
• <td>
• <th>
• <col>
• <tbody>
• <legend>
332. What does the following HTML statement create? <A name="section1">
Answers:
• None of these
• An internal page anchor named section1.
• An image named section1.
• A link to another page named section1.
333. How does a (modern) web browser interpret an unknown HTML element (e.g. <blabla>example</blabla>)?
Answers:
• The tag is treated as a regular block element (much like a <div>).
• The browser crashes.
• None of these.
• A blank page will appear.
334. Which HTML attribute is used to set the space between cells in an HTML <TABLE> element?
Answers:
• cellspace
• cellspan
• cellpadding
• cellspacing
335. In HTML 4.01, if OL stands for ordered list and UL stands for unordered list, what does the D in DL stand for?
Answers:
• disordered
• direct
• downward
• definition
• denoted
336. What does <dd> mean?
Answers:
• Definition description
• Defined description
• Direct description
• Documented description
337. Which element represents an external resource, which can be treated as an image, a nested browsing context, or a resource to be handled by a plugin?
Answers:
• There is no such element.
• <noscript>
• <div>
• <object>
• <script>
338. When will the alt attribute of an HTML image tag display?
Answers:
• All of these
• A slow internet connection delays the image loading.
• A screen reader user agent is detected.
• There is an error in the <IMG> src attribute.
339. HTML attribute values are usually enclosed in?
Answers:
• quotation marks
• curly braces
• brackets
• parenthesis
340. Which are used to group words or individual characters, and do not create line breaks by default?
Answers:
• Inline elements
• CDATA sections
• DIV elements
• Block elements
341. In the following example, which type of HTML link is defined? <A href="cats.htm">
Answers:
• (Neither of these)
• Absolute
• Relative
• (Both of these)
342. For a radio button to be marked as on what is the recommended attribute and value?
Answers:
• radio="true"
• checked="true"
• radio="checked"
• checked="checked"
• none of these
343. TRUE or FALSE: Entity names (e.g., &copy;, &reg;) are case sensitive.
Answers:
• False
• True
• It depends on your browser
344. Relative paths make your hypertext links______.
Answers:
• Portable
• Uniform
• Discrete
345. TRUE or FALSE? Empty elements are closed in the start tag.
Answers:
• TRUE
• FALSE
346. What does the rel attribute of the HTML <LINK> tag indicate?
Answers:
• The relationship between the current document and the linked document.
• All of these
• The location of the linked document.
• The language of the text in the linked document.
347. HTML Entities. To display a less than sign we must write:
Answers:
• &tl; or &#06;
• &less; or &#60;
• &lt; or &#60;
• &lt; or &#1335;
348. HTML Event Attributes onunload fires
Answers:
• when the browser window is minimized
• when the browser window has changed focus to other window.
• when the browser window has been closed
349. Which element is used to specify multiple media resources for audio and video elements in HTML5?
Answers:
• <resource>
• <location>
• <address>
• <src>
• <source>
350. Which HTML tag is NOT used when creating an image-map?
Answers:
• <IMG>
• <LINK>
• <AREA>

• <MAP>
351. Which of the following is a new feature of HTML5?
Answers:
• Tables
• Client-side image maps
• Form-based file upload
• Local database
352. In HTML 4, which of the following is NOT true regarding the <script> element?
Answers:
• It defines a server-side script.
• It can point to an external script file.
• The "type" attribute is not required.
• It can contain scripting statements in the HTML file.
353. Using &amp; to display an ampersand is an example of...
Answers:
• style
• HTML entity
• extended ascii character
• hex code
354. Favicons, also known as a shortcut icon, is defined in what HEAD level element?
Answers:
• <body>
• <rel>
• <meta>
• <script>
• <link>
355. Which element represents a range of text that has been added to a document?
Answers:
• <ins>
• <inserted>
• <added>
• <add>
356. Text between "<s>" and "</s>" would appear how?
Answers:
• As a superscript
• With a line through it
• As a subscript
357. What is the right way to embed a png image in HTML without an external URL?
Answers:
• <img src="data:image/png;base64,..." />
• <img png-data="..." />
• <img type="image/png" binary="..." />
• It is not possible
• <img src="binary:image/png,..." />
358. What is the usage of the <optgroup> tag?
Answers:
• It groups radio buttons options together
• optgroup is not a valid HTML tag
• It represents a group of option elements
• It is used to make a group of form fields optional
359. A <p> can only contain:
Answers:
• Any other element.
• Almost any other element.
• Inline elements.
• Block-level elements.
360. Which tag specifies a default address or a default target for all links on a page?
Answers:
• <canonical>
• <link>
• <base>
• <recall>
361. Why do you use a summary attribute with tables?
Answers:
• For accessibility
• All of these
• To define a table width
• To define a row height
362. Which of these is not a valid attribute of the HTML <img> tag?
Answers:
• (none of these)
• src
• onerror
• color
363. Does <p> tag allow for nesting block level elements?
Answers:
• Yes, except <div> tags
• Yes, except other <p> tags
• Yes
• No
364. Which of these is NOT a valid meta tag option?
Answers:
• keywords
• description
• author
• refresh
• redirect
365. Which of the following is true about the <blockquote> tag?
Answers:
• Browsers usually indent <blockquote> tags by default.
• Browsers usually put quotation marks around <blockquote> tags by default.
• It is usually used to define quotations less than ten words long.
• <blockquote> is not a valid HTML tag.
366. Which one of these is NOT a valid meta tag http-equiv attribute value?
Answers:
• time
• last-modified
• refresh
• content-type
• location
367. What is the default method of a <form> element if not specified?
Answers:
• NONE
• GET
• POST
• SUBMIT
• There is no default action
368. <ul> is for defining unordered lists, <ol> is for defining ordered lists, but what is <dl> used to define? Is <li> also a valid list item of a <dl>?
Answers:
• <dl> is for defining decimal lists and <li> is a valid list item of a <dl>
• <dl> is for defining directory lists and <li> is a valid list item of a <dl>
• <dl> is for defining definition lists and <li> is NOT a valid list item of a <dl>
• <dl> is for defining directory lists and <li> is NOT a valid list item of a <dl>
• <dl> is for defining definition lists and <li> is a valid list item of a <dl>
369. Which of the following is false regarding the <caption> tag?
Answers:
• The <caption> tag could be inserted immediately after the <table> tag.
• You can only specify 2 captions per table
• The <caption> tag defines a table caption.
370. Which attribute is NOT assigned to the HTML <SCRIPT> tag?
Answers:
• type
• src
• scope
• defer
371. What is the correct order of the following HTML definition list tags?
Answers:
• None of these
• <dt>, <dl>, <dd>
• <dl>, <dt>, <dd>
• <dd>, <dt>, <dl>
372. As of HTML 4.01, which of the following HTML elements has been deprecated?
Answers:
• <p>
• <u>
• <i>
• <b>
373. Given: <label for="first_name">First Name</label>, the label is associated with which input (in the HTML 4.01 specification)?
Answers:
• <input type="text" class="first_name" />
• <input type="text" id="first_name" />
• <input type="text" name="first_name" />
• <input type="text" label="first_name" />
• <input type="text" title="first_name" />
374. If your sample.html file is in the /p/test folder, and your images are in the /p/images folder, how can you reference an image?
Answers:
• ../images/mypic.jpg
• /p/images/mypic.jpg
• Both ways.
375. How can one avoid quirks mode?
Answers:
• put a valid doctype declaration before the <html> tag
• put a valid doctype declaration after the <html> tag
• all answers are correct
• use <html quirks-mode="false"> as your opening tag
• use <html quirks-mode="off"> as your opening tag
376. Strict DTD allows...
Answers:
• semantic, presentational, deprecated, and frameset elements
• semantic and presentational elements
• semantic, presentational, and deprecated elements
• presentational, deprecated, and frameset elements
377. Which of the following is right for frameset tag?
Answers:
• <frameset> <frame1 src="..." /> <frame2 src="..."/> </frameset>
• <frameset> <iframe src="..." /> <iframe src="..." /> </frameset>
• <frameset> <frame src="..." /> <frame src="..." /> </frameset>
• <frameset> <iframe src="...">adsf</iframe> <iframe src="...">adsf</iframe> </frameset>
378. Which element can be used to indicate text to be entered by the user?
Answers:
• <text-keyboard>
• <kbd>
• <font style="keyboard">
• <keyboard>
379. Which of these is NOT an attribute of an HTML <META> tag?
Answers:
• http-equiv
• name
• All of these
• scheme
• doctype
380. Which of the following is a FALSE statement about the <noscript> tag?
Answers:
• It is supported in all major browsers.
• It can only contain block-level elements.
• It will only be displayed if scripts are not supported, or are disabled.
381. How do you use HTML imports to import an HTML file (similar to how in a css file you can do css imports)?
Answers:
• <import type="html" href="/path/to/imports/stuff.html">
• <import-html href="/path/to/imports/stuff.html">
• <import href="/path/to/imports/stuff.html">
• <link rel="import" href="/path/to/imports/stuff.html">
• <link rel="html" href="/path/to/imports/stuff.html">
382. <meta name="_________________" content="_________________________________"> In this tag, which of these is *not* something that could go into the "name" attribute?
Answers:
• description
• keywords
• title
• robots
383. Which HTML tag do you use to reverse the direction of a text?
Answers:
• <b>
• <td>
• <bdo>
• <reversed>
• <tr>
384. Which element is NOT a block element?
Answers:
• <h1>
• <td>
• <p>
• <table>
• <ul>
385. To attach a <label> to a form control you need to?
Answers:
• Add the name attribute. It's value will contain the form control's id
• Add the for attribute. It's value will contain the form control's id
• Add the id attribute. It's value will contain the form control's name
• Add the for attribute. It's value will contain the form control's name
386. Which one of the following is not a valid <table> attribute in the HTML4.01 specification?
Answers:
• cellspacing
• frame
• summary
• width
• rule
387. Is the src value of this image a valid URL in HTML?  <img src="//example.com/img/logo.png"/>
Answers:
• Yes - it redirects to a local network location
• No
• Yes - it's a protocol independent URL
• Yes - it redirects to "https://example.com/img/logo.png"
• Yes - it redirects to "http://example.com/img/logo.png"
388. Which of the following statements is FALSE about the HTML <pre> tag in most web browsers?
Answers:
• Disables bidirectional processing
• Disables automatic word wrap
• Renders text with a fixed-width font
• Preserves spaces and line breaks
389. Which of the following is NOT a valid HTML4 tag?
Answers:
• br
• blink
• bdo
• big
• base
390. Which one of the following HTML statements will create an inline frame without a border?
Answers:
• <iframe src="smarterer.com" width="500" height="500" frameborder="0"></iframe >
• <iframe src="smarterer.com" width="500" height="500" class="noborder"></iframe >
• <iframe src="smarterer.com" width="500" height="500" border="0"></iframe >
• None of these
391. Which of the following statements about <wbr> tag are incorrect?
Answers:
• The browser may insert a line break here
• It doesn't require an ending tag
• It is a void element
• The browser will insert a line break here
392. Which HTML5 tag specifies text that is no longer correct, accurate or relevant?
Answers:
• <strikethrough>
• <strike>
• <delete>
• <del>
393. Which attribute specifies the language of a linked document?
Answers:
• lang
• language-code
• baselang
• language
• hreflang
394. Which one is an inline element?
Answers:
• <br>
• <fieldset>
• <hr>
• <noscript>
• <pre>
395. Which of the following is not a valid value for the http-equiv attribute of the HTML <META> tag?
Answers:
• EXPIRATION
• DATE
• CACHE-CONTROL
• LOCATION
396. Choose the valid HTML tag.
Answers:
• <QUOTATION>
• <Q>
• <QUOTE>
• <QM>
397. Is <textarea> a block level element?
Answers:
• Yes
• No
398. Which attribute is required for the <form> element?
Answers:
• action
• name
• all of these
• method
399. Which is NOT a valid value for the HTML shape attribute?
Answers:
• circle
• rect
• square
• poly
400. What does the <q> elements cite attribute do?
Answers:
• None of these
• It contains the quotation
• It specifies the source URI of the quote
• The <q> does not exist in HTML
401. How many standard color names are defined in HTML 4.01?
Answers:
• 8
• 32
• 16
• 256
402. Why is this NOT valid XHTML Strict? <a href="?page=about" target="_blank" title="Read more about us?"><span>Read more about us!</span></a>
Answers:
• You can't link to "?page=about" Use a proper filename instead like "about.html" or "about.php"
• Target="_blank" isn't valid XHTML Strict! Use JavaScript instead
• You can't have a <span> tag inside a <a> tag, use CSS instead
403. What is a valid value for the HTML <TABLE> frame attribute?
Answers:
• left
• all
• right
• below
404. Which of the following is NOT an HTML event attribute?
Answers:
• ondrop
• all of the above
• onhover
• onmouseover
405. TRUE or FALSE: The HTML Event Attribute "onload"  fires as the page finishes rendering.
Answers:
• False
• True
406. TRUE or FALSE  In HTML, a radio button's value attribute must be defined as "checked"  for it to display as checked.
Answers:
• TRUE

• FALSE

No comments:

Post a Comment