Elance HTML Test Answers ( Part-1 ) 2015


What is the purpose of this HTML statement? <SCRIPT type="text/javascript">
To format text
To define an applet
None of these
To define JavaScript code
What does the following HTML statement create? <A name="section1">
An internal page anchor named section1.
An image named section1.
None of these
A link to another page named section1.
What is the usage of the <optgroup> tag?
It is used to make a group of form fields optional
It represents a group of option elements
It groups radio buttons options together
optgroup is not a valid HTML tag
TRUE or FALSE? Empty elements are closed in the start tag.
FALSE
TRUE
Which value preserves the white spaces as specified in the content?
pre
normal
post
nowrap


Given: <label for="first_name">First Name</label>, the label is associated with which input (in the HTML 4.01 specification)?
<input type="text" name="first_name" />
<input type="text" label="first_name" />
<input type="text" title="first_name" />
<input type="text" class="first_name" />
<input type="text" id="first_name" />
Favicons, also known as a shortcut icon, is defined in what HEAD level element?
<link>
<meta>
<script>
<rel>
<body>
What is the default method of a <form> element if not specified?
POST
There is no default action
GET
SUBMIT
NONE
<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>?
<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 a valid list item of a <dl>
<dl> is for defining definition lists and <li> is 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 decimal lists and <li> is a valid list item of a <dl>
Which of the following is true about the <blockquote> tag?
<blockquote> is not a valid HTML tag.
Browsers usually put quotation marks around <blockquote> tags by default.
It is usually used to define quotations less than ten words long.
Browsers usually indent <blockquote> tags by default.


In HTML 4, which of the following is NOT true regarding the <script> element?
It can point to an external script file.
It can contain scripting statements in the HTML file.
The "type" attribute is not required.
It defines a server-side script.
HTML Entities. To display a less than sign we must write:
&lt; or &#60;
&lt; or &#1335;
&tl; or &#06;
&less; or &#60;
Text between "<s>" and "</s>" would appear how?
With a line through it
As a subscript
As a superscript
Using &amp; to display an ampersand is an example of...
HTML entity
style
extended ascii character
hex code
Does <p> tag allow for nesting block level elements?
Yes, except other <p> tags
No
Yes, except <div> tags
Yes
What does the acronym ARIA stand for?
Applicable Rich Interlinked Applications
Accessible Rich Internet Applications
Actualized Robust Internet Applications
Accessible Robust Internet Applications
Applicable Rich Internet Applications
What does the rel attribute of the HTML <LINK> tag indicate?
All of these
The language of the text in the linked document.
The location of the linked document.
The relationship between the current document and the linked document.
HTML Event Attributes onunload fires
when the browser window is minimized
when the browser window has changed focus to other window.
when the browser window has been closed
What does the X in XHTML stand for?
eXtra
eXact
eXtensible
eXtended
When will the alt attribute of an HTML image tag display?
There is an error in the <IMG> src attribute.
All of these
A slow internet connection delays the image loading.
A screen reader user agent is detected.
Which are used to group words or individual characters, and do not create line breaks by default?
Inline elements
DIV elements
Block elements
CDATA sections

Which has higher priority,cell settings or table settings ?
Cell settings
Neither
Table settings
Which of the following is a new feature of HTML5?
Tables
Client-side image maps
Form-based file upload
Local database
Which HTML tag is NOT used when creating an image-map?
<LINK>
<IMG>
<MAP>
<AREA>
Which HTML attribute is used to set the space between cells in an HTML <TABLE> element?
cellspace
cellspan
cellpadding
cellspacing
For a radio button to be marked as on what is the recommended attribute and value?
radio="true"
none of these
checked="checked"
checked="true"
radio="checked"
Which value will continue to display the text on the same line,until the BR element is specified?
post
nowrap
pre
normal
Which of these is a form tag attribute?
file
version
input
method
EXE
The ___________ property allows you to control the shape or style of bullet point in the case of unordered lists, and the style of numbering characters in ordered list.
list-type-style
list-style-layout
list-style-type
list-type
What does <dd> mean?
Direct description
Defined description
Definition description
Documented description
Which of the following is a valid doctype?
HTML 3.2 Final
XHTML 1.0 Strict
MathML 2.0
SVG 1.1 Tiny
All of these are valid doctypes.
The <base> element must be contained within the
<head> element.
<table> element.
<body> element.
<style> element.
Which element isn't a block level element?
<blockquote>
<base>
<p>
<div>
<h1>
Which attribute would you assign to an HTML <MAP> tag?
method
action
name
max
Which HTML elements are characterized by a line break before and a line break after the element?
Inline elements
Outline elements
Block elements
Spans
____________ properties provide several options to place the content on the web page.
Positioning
Location
None
Margin
What is used to store information usually relevant to browsers and search engines?
Metatags
Tabs
Cookies
Which of these HTML tags defines a nested list?
<NESTED>
<ISO>
None of these
<TABLE>
<ALT>
What does the GENERATOR meta tag tell?
Who designed the page
When designed the page
Which program was used to produce the page
What type of server your page is on
The <param> tag is used in conjunction with which of the following?
<fieldset>
<frame>
<object>
<form>
<select>
Which element can't be placed inside <table> ... </table>?
<td>
<th>
<legend>
<tbody>
<col>
In a form, the INPUT tag can have many types. Which one is NOT a valid type?
text
submit
check
hidden
password
<AREA> is the HTML element tag for
a multi-line text area
an area inside an image-map
a text area
None of these
What is the default value of the "target" attribute?
_parent
_blank
_top
_self
Which attribute, when used with <A> element, will create tooltip text in most browsers?
href
link
info
title
colspan=n can be added to only what tag?
<list>
<tr>
<li>
<td>
<table>
What is the purpose of the HTML <NOSCRIPT> tag?
To inform spam filters that your code is safe.
To prevent a browser from running a script.
To display alternate information to a browser that cannot run scripts.
To inform antivirus programs that your code is safe.
None of these
Which attribute allows you to add descriptive text to a table?
caption
display
content
info
In HTML 4.01, if OL stands for ordered list and UL stands for unordered list, what does the D in DL stand for?
disordered
direct
definition
denoted
downward
Settings for columns(<td> tag) have higher priority than settings for rows(<tr> tag)
False
True
Which attribute of the HTML <BODY> tag has been deprecated?
vlink
bgcolor
All of these
text
What does the <link> tag do?
Uses accessibility standards to allow screen readers prior knowledge of a link
Defines the relationship between a document and an external resource
Provides a hyperlink to another web page
Links two web pages together without using attributes

In regards to the CSS box model, where is the margin property located?
Inside the box
It could be inside or outside the box, depending on where you place it in your code
Outside the box
None
An HTML image-map is an image with
clickable areas
geographic info
site structure info
highlighted areas
Relative path make your hypertext links______.
Uniform
Portable
Discrete
p.outset {border-style: outset; } In the code snippet above, which part represents the property?
outset
None
border-style
p
Which attribute is used to format the HTML <IMG> tag?
frame
None of these
action
type
enctype
Where should the <base> element be placed?
Above the doctype
In the <head> section
After the <html> element
In the <body> section
Which HTML attribute is used to set the space between the cell wall and the cell content in an HTML <TABLE> element?
margin
cellpadding
cellspacing
cellspan
Which element represents a caption for the content of its parent <fieldset> ?
<thead>
<div>
<title>
<header>
<legend>
Relative paths make your hypertext links______.
Uniform
Discrete
Portable
In order to create a list using lowercase letters one would use...
<ol type="a">
<ol "a">
<ol letter="a">
<ol small="a">
What are/is the most important difference between XHTML and HTML?
XHTML DOCTYPE is mandatory
<html>, <head>, <title>, and <body> is mandatory
All of them
Attribute values must be quoted
The XML namespace attribute in <html> is mandatory
What is the REFRESH meta tag used for ?
Refresh your descriptions
Refresh the page, optionally to a different url
Refresh your keywords
Allow search engines to relist your page
Which HTML tag is used to display abbreviated words?
<A>
<ABBR>
<ABR>
<ABBREVIATE>
In the code <frameset cols="120,*"> the following would be true.
Left frame would be 120 pixels wide
Left frame would be 120 inches wide
Top frame would be 120 pixels high
What is the HTML attribute valign used for?
Vertically aligning data on the web page
None of these
Vertically aligns the contents of a table cell
Horizontally aligns the contents of a table cell
The possible values of white-space are
<p style="whitespace:normal"> Use of normal white-space. </p>
<p style="white-space:normal"> Use of normal white-space. </p>
<p style=white-space:"normal"> Use of normal white-space. </p>
<p style="white-space->normal"> Use of normal white-space. </p>
Which HTML input type can be used to select multiple, non-mutually exclusive options?
radio buttons
textbox
dropdown
checkbox
According to web standards the <TABLE> ... </TABLE> element is best used ....
For controlling the layout of a web page with structured rows and columns
As a parent container for other block-level elements
When <DIV>s are difficult to position correctly
To present data in a tabular layout
Which HTML form attribute indicates how the form-data should be encoded?
name
enctype
method
None of these
What does the colspan attribute of the HTML <TD> tag represent?
The number of columns a table cell should span.
The number of rows within a table.
The number of columns within a table.
The number or rows a table cell should span.
GET and POST are values for which HTML form attribute?
input
action
submit
method
What entity name will you use to insert a copyright symbol - © in an html file?
&copy;
you need to use other markup language in order to insert copyright symbol
&cpy;
&cpyright;

To add white space along the margins of a long quote, use this element:
<QUOTE>
<BLOCKQUOTE>
<" ">
<QUOTATION>
Which HTML element automatically creates space before and after it is rendered?
<AREA>
<SPAN>
<P>
<BODY>
Which attribute do you use to span table cells across table columns?
Both colspan and rowspan
colspan
rowspan
To encode the SPACE in a URL which character you should use?
%2D
%20
%2C
%60
%4D
What attribute do you add to a checkbox input field to show that it is initially checked?
checked="checked"
checked="yes"
checked="true"
none of these
Can we have two or more actions in the same form ?
yes
no
What does an HTML doctype do?
An HTML doctype makes it possible for browsers to render your document efficiently.
An HTML doctype tells the browser which version of HTML your document is using.
An HTML doctype allows your HTML document to be validated.
All of these answers are correct.
When making bulleted lists you have what options?
disc, circle, square
triangle, square, circle
square, disc, polygon
The ____ and ____ properties defines the exact position of our layer.
bottom,left
top,left
bottom,right
top,right
To set the font for a single link, where do you add the <font></font> tags ?
In the <body> tag
Outside the <a> and </a>
Inside the <a> and </a> tags
How do you specify text to appear in an <input type="submit"> of an HTML form?
<LEGEND> tag
<FIELDSET> tag
None of these
value attribute
name attribute

The statement "hex values are the only way to define colors" is ...
Wrong. Colors can also be specified with names.
Correct for computer screens that only understands hexadecimal values.
Correct for Internet Explorer. Wrong for Netscape browsers.
Which HTML specification contains definitions for the elements: <article>, <nav>, <header> and <footer>?
All of these.
XHTML 1.0
HTML5
HTML 3.2
HTML 4.01
How does a (modern) web browser interpret an unknown HTML element (e.g. <blabla>example</blabla>)?
The tag is treated as a regular block element (much like a <div>).
The browser crashes.
A blank page will appear.
What does the attribute target=" " on the <A> element do?
Specifies the mime-type of the linked document.
Specifies the URL of the document to open.
None of the above
Specifies where to open the linked document.
Which of the following HTML tags is used to input more than one line of text?
<TEXTAREA></TEXTAREA>
<INPUT type="text" />
<INPUT type="textarea" />
<TEXTBOX></TEXTBOX>

Which of the following creates an HTML image link?
<img href="/smarterer" src="image.jpg"></img>
<img src="image.jpg"><a href="/smarterer"></a></img>
<a href="/smarterer" src="image.jpg"></a>
<a href="/smarterer"><img src="image.jpg"/></a>
What is the proper syntax for the HTML doctype declaration?
<DOCTYPE html>
<!--DOCTYPE html>
<!DOCTYPE html>
<!DOCTYPE>html</DOCTYPE>
<doctype>html</doctype>
Which concept uses the CSS from which implies that every HTML element is a box?
box model
frame model
table model
none
Which HTML tag is used to include an external stylesheet?
<CSS>
<LINK>
<INCLUDE>
<STYLE>
Which of these elements does NOT exist?
<dt>
<map>
<th>
<title>
<lt>
An HTML element attribute name must be immediately followed by
plus(+)
comma(,)
equal(=)
bracket([)
Which HTML element will NOT create a line break by default?
<SPAN>
<BR />
<P>
<HR />
HTML rendering is performed mostly on the
Network server
Web browser client
Web server
All of these
Which element is used to display content to browsers when scripting is turned off?
<script>
<execute>
<noscript>
<fallback>
<canvas>
What does the HTML <TITLE> tag do?
Defines a title in the browser toolbar.
Provides a title for the page when it is bookmarked.
All of these
Displays a title for the page in search-engine results.
Which of the following is an HTML element?
<underline>
<string>
<bold>
<strong>
What do you call an element that specifies how the screen should be divided into frames?
tablelink
frametable
iframe
setting
frameset
colspan=n can be added to only what tag ?
<td>
<tr>
<table>
Which of these is NOT a valid HTML button type?
send
submit
button
reset
What is the purpose of the alt attribute on the HTML <IMG> tag?
To define text to wrap around the image
All of these
To define text that should appear if the image cannot be shown
To position an image on the web page
Which properties allow specifying the formatting rules for the textual content on a Web page?
None
CSS textual
CSS text
CSS texting
Which type of border attribute can be used to have a unique look for each side of the border?
. border-(downwarddirection)
border-(direction)
border-(location)
border-(upwarddirection)
What is this? <a href="/some/page#foo">Label</a>
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.
Can you combine HTML and a Cascading Style Sheet to format a paragraph?
Never
Always
Only for legacy web content
Only when the the Cascading Style Sheet is external
The completion of a CSS Transition generates a corresponding
OMD Event
none
DOM Event
MOD Even
What does the HTML tag <UL> create?
An alphabetized list.
A numbered list.
All of these
A bulleted list.
What main tag of an HTML document comes after the <html> tag?
<!DOCTYPE>
<meta/>
<title>
<head>
<body>
Which is the correct CSS syntax?
<p style="direction:lltr"> This text is in left direction. </p>
<p style="direction:ltr"> This text is in left direction. </p>
<p "style=direction:lttr"> This text is in left direction. </p>
<p style:"direction=ltr"> This text is in left direction. </p>
An <iframe> is used to...
Create a pop-up window.
Draw a border around a group of elements.
embed another document within the current HTML document.
define a particular window (frame) within a <frameset>
What is the definition of a deprecated element?
An element that breaks when changes are made elsewhere in the code.
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 which has been removed from the latest standards.
A shorthand property for setting the four transition properties into a single property
transition
transition-delay
transition-duration
Which attribute is used to determine where the HTML form data is sent to?
method
value
href
action
A ............ (year, month, day, hour, minute, second, fractions of a second) encoded according to ISO 8601 with the time zone set to UTC.
datesecond
datetime
datetime-local
dateminute
True or False: <script> tags may only go in between the <head> tags
True
False
Which properties specifying whether to write the text from left to right or from right to left?
letter-spacing
white-space
direction
All of them
Which of the following HTML tags are responsible for creating a drop down form input?
<option> and <optgroup>
<select> and <option>
<dropdown> and <option>
<dropdown> and <select>
When using frames in an HTML page, each frame displays a different
None of these
web page.
audio file.
video file.
How do you make it so that someone can mail me by just clicking on text?
<A HREF="mailto:support@abc.com">E-mail me</A>
<A mailto="support@abc.com"></A>E-mail me
<A HREF="=support@abc.com">E-mail me</A>
<A HREF="support@abc.com"></A>E-mail me
<A mailto="support@abc.com">E-mail me</A>
Tags and text that do not show directly on the page are placed where?
Head
Body
Image tag
Tables
Which property tells how many rows a cell should span ?
rowspan=n
Both rowspan=n and colspan=n
colspan=n
What is an absolute URL?
A URL linked to the front page
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
None of these
Why would you use an HTML <pre> tag?
To format an image
To preserve the exact spacing of the text
To use multiple images in one table cell
All of these
Which HTML tag is an inline element?
<ul>
<span>
<div>
<p>
Choose a valid value for the type attribute of the HTML <BUTTON> tag.
button
reset
All of these
submit
What is the purpose of the HTML <COLGROUP> tag?
To group rows in a table for formatting
None of these
To group columns in a table for formatting
To divide a table into structural row or column groups
Increasing the cellpadding value will what ?
Decrease the softness of your site
Increase the distance between cell and content
Increase the softness of your site
Increase the space between cells
Decrease the space between cells
Which of the following HTML tags creates a list with bullets by default?
<LI>
<OL>
<BL>
<UL>
What would one use to restrict a user to 100 characters in a text box?
max-length="100px"
width="100px"
maxlength="100"
width="100"
Which of the syntax is correct?
<div style="position:rel; font-size:50px; z-index:2;">LAYER 1</div>
<div style="position:relative; font-size:50px; z-ind:2;">LAYER 1</div>
<div style="position:relative; font-size:50px; z-index:2;">LAYER 1</div>
<div style="position:relative; font-size:50px; yz-index:2;">LAYER 1</div>

HTML entities, also called special characters,
begin with an ampersand(&) and end with a semicolon(;).
cannot be displayed in HTML.
cannot be styled.
begin with a semicolon(;) and end with an ampersand(&).
Which attribute allows you to make HTML form input elements uneditable?
checked
src
type
disabled
What tag tells the browser where the page starts and stops ?
<body>
<head>
<html>
It is not necessary to give the coordinates for an image or object defined within an area tag, if the value of its shape attribute is:
rect
default
circle
poly
To alter the thickness of border use the _______________attribute
border-height
border-margin
border-width
None
Which value of the cursor property specifies a cursor as an hourless that indicates that some process is being carried out and the user should wait?
wait
not-allowed
move
auto
Given "http://www.site.com/page.html", what type of URL is this?
Absolute URL
Filesystem URL
Relative URL
IP Address URL
Which HTML tag do you use to format text like computer code?
<COMPUTER>
<VAR>
<FORM>
<LI>
<CODE>
Which of the following will display the ampersand(&) on an HTML page?
&ampersand;
&and;
&amp;
All of these
What does the HTML attribute href contain when used with the <A> tag?
The destination of the target URL.
Specifies where to open the target URL.
None of these
The language of the target URL.
Which properties is used to change the case of the text?
text-spacing:
text-shadow:
text-transform:
text-decoration:
What tag adds a paragraph break after the text ?
<P>
<PARAGRAPH>
<BR/>
True or False: Based on general best practices, it is better to set font attributes directly in HTML rather than in CSS.
False
True
Which property tells how many rows a cell should span?
Both rowspan=n and colspan=n
columnspan=n
rowspan=n
span=n
colspan=n
Defining clickable sub-areas on an image is called ?
multiple linking
imagemapping
imagelinking
What is the correct term for an HTML element that is no longer part of standard usage?
deprecated
deleted
out-of-date
archaic
Which is NOT a predefined target for links ?
_self
_son
_blank
_parent
Which of these is not valid HTML ?
<font face="verdana">
<fontface="verdana">
<font face="verdana,arial">
What is a deprecated HTML element or attribute?
A feature that can only be used once in the HTML document.
An underused feature that is only used by experts.
An outdated feature that may become obsolete in future versions of HTML.
A feature that has more than one defined use.
<pre> tag defines:
preformatted text
prerequisites for a new block of text
block of code for presentation
<S> is the HTML 3.0 element for
blink text.
bold text.
simple text.
strikethrough text.
By default, an unvisited HTML link is displayed as...
underlined and purple.
underlined and red.
None of these
underlined and blue.
What function does the <HTML> tag perform?
Checks to see if the browser supports HTML.
Verifies that the browser supports the current version of HTML.
None of these
Notifies the browser that this is an HTML document.
Which of the following HTML link statements is correctly constructed?
<link rel="stylesheet" href="style.css" type="text/css" />
<link rel="style.css" href="text/css" type="stylesheet" />
<link rel="stylesheet" href="style.css" type="css" />
<link rel="css" href="style.css" type="text/css" />
The right syntax to insert Line Break in HTML is:
<br></br>
<br/>
</br>
The Web Hypertext Application Technology Working Group...
works on web standards
makes code
makes web browser
What will this HTML statement create? <INPUT type="IMAGE">
An area that shows the files on your computer.
An image that acts like a submit button.
An image that could be edited externally.
Which of the following is true about the <!DOCTYPE> tag?
It is an instruction to the web browser about what version of HTML the page is written in.
It is an HTML tag.
It defines the document type (e.g. HTML, CSS, PHP, etc.)
It is deprecated.
What does vlink mean?
vertical link
visited link
active link
very good link
visual link
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?
<input type="password">
<input type="text">
<input type="checkbox">
<input type="radio">
<input type="robots">
Hexadecimal numbers are numbers based on the value of what ?
8
10
16
You can add names to each frame window using which setting ?
ur
name
src
What does the following HTML statement create? <A name="help">Help Section</A>
an anchor link
a Javascript link
All of these
an external link
In which way can an HTML ordered list be ordered?
alphabetical
Neither of these
Both of these
Numerical

Defining clickable sub-areas on an image is called?
imagemapping
multiple linking
imagelinking
An <object> tag can be used to embed which of the following?
Flash
Java applets
All are correct
PDF files
Another webpage
By default, a SPAN is displayed as what kind of element?
block-level
run-in
list-item
table-cell
inline
The character entity to represent a non-breaking space:
nspb;
%20;
&nbsp;
&npsb;
&break;
Increasing the cellpadding value will effect
Increase the distance between cell and content
Increase the softness of your site
Increase the space between cells
In HTML, outdated elements are referred to as _________.
deprecated
dumb
demised
done
dead
What are the two methods for sending form data that you can define for the HTML <FORM> tag?
POST and GET
PROCESS and GET
None of these
SUBMIT and GET
POST and SUBMIT
Which of the following HTML statements will render a horizontal rule?
<line align="center" />
<hr width="50%" align="center" />
<br width="50%" />
<horz width="50%" align="center"></horz>
Which of these elements is responsible for creating table columns?
<td>
<tc>
<th>
<col>
<tr>
Which <form> element attribute is used to control where the input values are sent?
action
method
goto
deposit
destination
What is a link to a specific part of a web page called?
an anchor link
an external link
a mailto link
None of these
Which of these can you use to format HTML text?
Cascading style sheet
All of these
<P> tag
<B> tag
What symbol differentiates most opening tags from closing tags?
;
!
#
.
/
How do you create a submit button on an HTML form?
<P> <INPUT type= "submit" value="Send"> </P>
<P> <BUTTON = "submit" value= "Send"> </P>
<P> <INPUT type= "send" value="Submit"> </P>
<P> <FORMBUTTON> = "send" value= "Submit" > </P>
When using the FORM tag, what allows users to only select one choice?
check boxes
unordered lists
radio buttons
bullet points
Which two HTML elements must be present in a nested unordered list?
<UL> and <OL>
<OL> and <LI>
<UL> and <LI>
<LI> and <H1>
Which attribute specifies the submit URL in a form tag?
id
action
name
method
To start a list at the count of 3, use which of the following?
<ol list="5">
<ol begin="3">
<ol start="3">
<ol newlist="5">
The HTML <BUTTON> tag
specifies when to submit HTML form data.
makes an image a link.
creates a push button on a form.
returns the user to the home page.
Imagelinks can show a text label if you add which property?
str
id
alt
name
alternative
Choose the valid HTML comment.
<!-- Comment -->
<!-- Comment --!>
<-- Comment -->
What are the three list types in HTML?
Unordered, Ordered, Definitions
Unordered, Numbered, Definitions
Random, Ordered, Footnotes
Random, Numbered, Definitions
What is used to start a numbered list with regular numerals?
<ol type="normal">
<ol type="a">
<ol type="I">
<ol type="1">
Which element represents a nested browsing context, effectively embedding another HTML page into the current page?
<html>
<nest>
<page>
<iframe>
<div>
Which tag represents a header cell of an HTML table?
<TR>
<TH>
<COLS>
<TD>
None of these
Which is the correct syntax of css border?
.two { border: solid 6px #fff position: relative z-index: 1
.two { border: solid 6px #fff; position: relative; z-index: 1; }
.two { border->solid 6px #fff; position-> relative; z-index-> 1; }
.two { border= solid 6px #fff; position=relative; z-index=1; }
What is the default character encoding in HTML5?
UTF-32
UTF-8
ISO-8859-1
UTF-16
ASCII
What does the align attribute do when used with the HTML <TD> tag?
Adjusts horizontal alignment of cell content.
Adjusts vertical alignment of cell content.
To interpret the HTML code, and get a visual layout we need a:
Turbo-C Compiler
Any Text Editor
Google's V8 engine
Any Web-Browser
What is used to store information typically used to specify page description, keywords, author of the document, last modified, and other data?
Database
Tabs
Tables
Cookies
Meta tags
What does the following HTML statement do? <META name="robots" content="NOINDEX" />
Keeps other web designers from changing the page.
Informs spam filters that your code is safe.
Informs antivirus programs that your code is safe.
None of these
Tells search engines not to index the page.
Which attribute is used to specify an inline style for an HTML element?
div
class
style
id
Why should you add alternative text to your images ?
So the user can save the image using the text as a name
So the users can get an idea of what the image is before it loads
In case the user wishes to load a different picture
Which attribute can be used with the <img> tag to override or reserve the dimensions of the box?
height / width
vert / horiz
fallback-dimensions="width" and fallback-dimensions="height"
x / y
The <div> element is an example of...
a diverse element
a block element
a layer
an inline element
Which of the following is the correct cursor syntax?
xlink {cursor->crosshair}
xlink {cursor:crosshair}
.xlink {cursor=crosshair}
True or False? The "charset" attribute can be applied to only one <meta> element per HTML document.
True
False
Which of these is not a <img> attribute?
width
alt
height
src
size
What is the purpose of this HTML statement? <META name="keywords" content="rabbit,cat">
All of these
To position links on a web page
To provide language information to web browsers
To provide specific keywords to search engines
Tags and text that do not show directly on the page are placed where ?
Body
Head
Tables
Which HTML form attribute do you use to define where to send the form data?
action
checked
name
All of these
To start a list at the count of 3, use which ?
<ol begin="3">
<ol list="5">
<ol start="3">
Which of following attributes will always make an HTML link open in a new window?
target=_blank
target="_blank"
target: blank;
target="blank"

What does an HTML <A> element need the href attribute set to in order to open the clients email application when clicked?
http://emailto:user@company.com
mail:user@company.com
emailto:user@company.com
mailto:user@company.com
Which HTML tag is NOT valid in a Strict HTML 4.01 doctype?
<area>
<applet>
<b>
<a>
Which HTML tag is NOT used when formatting text?
<SMALL>
<P>
<STRONG>
<I>
<IMG>
The designer can create picture frames by specifying multiple borders using the
css border properties
css line properties
None
css margin properties
The ________ property is used alongwith position property to create an effect of layers
y-index
z-index
x-index
None
What does the following HTML statement indicate? <TD colspan="2">
A table cell which spans two columns.
A table cell which spans two rows.
None of these
A table cell which splits off into two sub-cells.
Which CSS property can provide to add an effect when changing from one style to another,without using Flash animations or javascript?
transistor
Transitions
None
Associations
Which element specifies relationships between the current document and other documents?
<link>
<base>
<div>
<p>
<meta>
How can you make a list that lists the items with numbers?
<dl>
<ul>
<list>
<ol>
<il>
A ___________ property can help you to create more complex webpage layouts
. x-index
z-index
None
y-index
Which attribute would you use to specify how many rows an HTML table cell should span?
row span
rwspan
rowspan
row_span
To create a bulleted list use...
<ul>
<bulletlist>
<ol>
<bullet>
<table>
Which HTML tags are used to turn text underlining on and off?
<ULine> and </Uline>
<U> and </U>
<STRIKE> and </STRIKE>
<L> and </L>
Which HTML element can be used to draw graphics via scripting?
<canvas>
<p>
<span>
<script>
<div>
Use what to prevent confusion on numbers higher than 9 with hexadecimal colors ?
!
&
#
%
When is the content of a table shown?
Before the border loads
Before the page loads
After the table is loaded
In pieces as it loads
Why should you add alternative text to your images?
So it will appear as a tooltip when users see the image
To describe the content if the image cannot be displayed
In case users wish to load a different picture
So users can save the image using the text as a name
Which of the following is NOT a valid value for the type attribute of the input tag?
password
icon
text
reset
Which section is used for text and tags that are shown directly on your web page ?
Metatags
Body
Head
Which of the following creates a valid HTML email link?
<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>
What is the primary difference between a DIV and a SPAN element?
A DIV is used with primary elements while a SPAN is used with secondary 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
A DIV is used for block level elements and a SPAN is used for inline elements.
What tag tells where a link starts?
<start>
<a>
<links>
<link>
What is the HTML <DD> tag used for?
All of these
To create a nested list.
To describe an item in a definition list.
To create an unordered list.
Transition effects can be applied to a wide variety of CSS properties, including
height
background-color
All of them
opacity
What does the following HTML tag display? <DIV id="text" align="right">content</DIV>
A DIV with an id called text and its content aligned right.
A DIV with a class called text and its content aligned right.
A DIV with a class called text and its content aligned center.
A DIV with an id called text and its content aligned left.
Which one of these answers would embed "flash.swf" into your webpage?
<embed src="flash.swf" height="80" width="80" />
<flashembed src="flash.swf" height="80" width="80" />
<SWF src="flash.swf" height="80" width="80" />
<insert src="flash.swf" height="80" width="80" />
Which two meta tags have special relevance for search engines ?
Description and Keywords
Cookies and Keywords
Description and Name
What is the purpose of the HTML <EM> tag?
To define emphasized text
To define external interactive content
None of these
To define a body element
To define a table caption
Which of the following HTML elements does NOT belong in the <HEAD> section of an HTML file?
<H1>
<TITLE>
<LINK>
<META>
Which is NOT a predefined target for links
_parent
_son
_blank
Which property can be used to decorate links by specifying no underline with the text?
text-decoration:overline
text-decoration:underline
text-decoration:none
text-decoration:line-through
What is the correct HTML tag for an inline frame?
<IFRAME>
<INFRAME>
<INLINE>
<INLINEFRAME>
Which element is NOT a <table> element?
<tt>
<th>
<thead>
<tr>
<td>
What is the correct HTML for adding a background color?
<body style="background-color:white">
<body background="yellow">
<background>yellow</background>
Which of the following is NOT an HTML element?
<COLOR>
All of these
<WEBSITE>
<BEGIN>
Which of the following defines a multi-line text input control in HTML?
<text rows="2" cols="20">
<ml rows="2" cols="20">
<area rows="2" cols="20">
<textarea rows="2" cols="20">
Which HTML element displays content from another page?
<PAGE>
<DISPLAY>
<MAP>
<IFRAME>
How do you get two div to sit side by side?
left
align (left or right)
right
Float (left or right)
Which of the following is not a valid HTML input type?
video
checkbox
radio
text
How to apply the text-shadow around the text?
<all.p style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
<p style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
None      
<p.all style="text-shadow:6px 6px 10px #FF0000 "> Text-shadow is of red color. </p>
The ________________ specifies whether a border should be solid, dashed line, doted line, double line, groove etc.
border-weight
border-layout
border-style
border-decoration
What are the three major parts of an HTML document?
Beginning, Middle, and End
Version, Meta data, and Content
Header, Main, and Footer
Doctype, Head, and Body
Which attribute of the <IMG> tag tells the browser what to display if a user cannot view the image?
img info
alt
info
text
HTTP stands for...
Hypertext Transfer Protocol
Hypertext Transmission Protocol
Hypertext Trend Protocol
High Transmission Transfer Protocol
Unless specifically styled, HTML unordered list items are typically rendered with...
hashtags.
bullets.
numbers.
slashes.
An HTML document must contain unique values of which attribute?
id
image
class
font
Which is the correct CSS syntax?
<p style="text-align:left;color:#00CC00"> This text is in left. </p>
<p style="text-align:left,color:#00CC00"> This text is in left. </p>
<p style="text-align:left and color:#00CC00"> This text is in left. </p>
<p style="text-align:left or color:#00CC00"> This text is in left. </p>


<ol> tags will create what kind of list ?
Numbered List
Grocery List
Bulleted List
Both ordered and unordered lists share which HTML tag to denote a list item?
<LI />
<LIST ITEM>
<LITEM>
<LI>
If you don’t want the frame windows to be resizeable, simply add what to the <frame> lines
dontresize
save
noresize
Which attribute would you use on the <A> tag to always open a link in a new window?
TARGET="open"
TARGET="_blank"
TARGET="_self"
TARGET="_new"
Which answer best describes the following HTML? <OL><LI>1</LI><LI>2</LI><LI>3</LI></OL>
An unnumbered list with 2 options
An unnumbered list with 3 options
A numbered list with 3 options
A numbered list with 2 options
What does vlink mean ?
unvisited link
visited link
active link
vertical link
What is the default port number for HTTP URL scheme?
80
60
120
100
40
<a> and </a> are the tags used for what?
Aligning text
Arial font text
Audio-voiced text
Adding links to your page
Assigned links
Which of these will make an image button?
<input type="text" size="25" value="Enter your name here!">
<input type="image" src="rainbow.gif" name="image">
<input src="rainbow.gif" name="image">
<input src="rainbow.gif">
Why would you use the HTML <DIV> tag?
To apply a <B> or <I> tag to a part of a web page.
To format grouped block-elements with styles.
None of these
To insert JavaScript code or an applet.
Which HTML element defines a bullet-point list?
<ol>
<tablelist>
<ul>
<div>
<dl>
Which attribute of an <a> tag can specify where it opens a link?
title
alt
open
follow
target
What is a use for the class attribute in HTML?
as a marker for an HTML function
as a script defined by XHTML
to select a class in a style sheet
as a META variable
Which of the following tags can be used in place of a button tag?
ol
input
dl
legend
The ____________ property allows to specify how much space appear between the content of an element and it's border.
Padding
Marking
Spacing
Content-border
Negative values for transition-duration are treated as
1
0
3
2
A <title> should appear in which element?
<head>
<header>
<p>
<body>
Which is the correct CSS syntax?
<p "style=direction->inherit"> Possible values are ltr,rtl and inhert. </p>
<p"style=direction:inherit"> Possible values are ltr,rtl and inhert. </p>
<p "style:direction=inherit"> Possible values are ltr,rtl and inhert. </p>
<p style="direction:inherit"> Possible values are ltr,rtl and inhert. </p>
A table can be spanned either in
rows
columns
columns or rows
All of these
Which two meta tags have special relevance for search engines?
Description and Name
Cookies and Keywords
Description and Keywords
An HTML list within an HTML list is called a...
double list.
inside list.
nested list.
multi-list.
Which of the following is an example of an HTML hidden field?
<INPUT type="hidden" />
<INPUT="hidden" />
<INPUT field="hidden" />
<INPUT type="hide" />
To add real spaces to your text, which character entity can you use?
&bnsp;
&space;
&bp;
&nbsp;
&bnps;
Which HTML element specifies page description, keywords and other information about the data?
<TITLE>
<INFO>
<DESC>
<META>
Which attribute gives a unique identity for an HTML element?
class
identity
div
id
Which attribute would you use to specify how many columns an HTML table cell should span?
colspan
clmnspan
column span
col_span
There is one difference between div and span.
a div is a low-level element whereas a span is not
a div is a high-level element whereas a span is not
a div is a block-level element whereas a span is inline element
A file that specifies how the screen is divided into frames is called a __
frameset
frametable
tablelink
To separate single list items use?
<ll> and </l>
<ol> and </ol>
<li> and </li>
<ul> and </ul>
HTML provides a ....... tag to creating online form for the purpose of collectiong infromation from user.
<frame>
None of these
<div>
<form>
The background image will scroll when the user scrolls down the page, unless you add which property to the <body> tag ?
bgproperties="stationary"
bgproperties="holdstill"
bgproperties="fixed"
Which HTML element is typically used for positioning block-elements?
<DIV>
<TD>
<P>
<LAYER>
What does <A href="#title2"> create?
The word title in Heading Style 2.
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.
Which tag doesn't form a table or a container for table elements?
<table>
<tt>
<tr>
<td>
How many values can the class attribute have per HTML element?
unlimited
2
1
0
To start a list using circles use which of these tags ?
<ul type="circle">
<ul type="round">
<ul "circle">
True or False: <meta> tags should go between the <body> tags.
False
True
Which Specifies the maximum number of characters for the text field?
None
maximumlength
maxlength
largelength
Which HTML tag creates a horizontal line?
<H>
<LINE>
<HL>
<HR>
Which syntax closes a table cell?
</cell>
</td>
</span>
</tc>
If the browser can't display the image, the value of which attribute is shown as text instead?
title
alt
id
class
An Ordered List can be represented as
<ul>
<el>
<ol>
<li>
Why should you specify a background color if you are using an image for the actual background of your page?
So the text shows up better
In case the image doesnt fit right
The background color will be shown until the image loads
Which states whether the text is underlined or not?
text-decoration:
text-spacing:
text-transform:
text-shadow:
What does the HTML <SUB> tag create?
bold text
italicized text
superscript text
subscript text
Which of the following sizes the width of a table to half of its containing object?
<TABLE size="50%">
<TABLE width="50%">
<TABLE="50%">
<TABLE width="half">
What is the purpose of html?
HTML controls the MVC design pattern
HTML provides structure for web pages
HTML simplifies database connectivity
HTML adds style to static web elements
HTML provides functionality to manipulate the DOM

Which HTML tag contains the main visual content of an HTML document?
<BODY>
<HEAD>
<DOC>
<SITE>
Which HTML tag creates the largest header text size?
<h6>
<HEADER>
<h1>
<HEADLINE>
Which one is the mandatory attribute of the <img> tag?
ALT
SRC
HREF
ID
<__________________________ content="A description of your page"> Fill in the blank to create a tag that would give a description of your page.
meta name="description"
description
div change="keyword"
cssvalue
marquee
Which HTML tag creates a hyperlink?
<HL>
<A>
<LINK>
<L>
HTML provides a ....... tag to creating online form for the purpose of collecting information from user.
None
<form>
<div>
<frame>
What is "HTTP" short for?
HyperText Transfer Protocol
Hyper Transfer Protocol
Hyper Transient Port
HyperText Transformation Protocol
HyperText Translated Program
What does an example of a hexadecimal color code look like?
rgb(255,0,255)
(255,0,255)
#blue
#990000
Which tag is used to insert images into your web page ?
img
scr
pic
<BR> is the HTML element for
inserting a single line break.
inserting a page break.
inserting a horizontal rule.
None of these
What of the following HTML tags is used for computer code text?
<CITE>
<VAR>
<KBD>
<CODE>
In HTML, comment line is as :
/* Comment Line */
-- Comment Line --
// Comment Line
<!-- Comment Line -->
Which tag is used to insert images into your web page?
src
pic
doc
txt
img
All the controls of a form should be enclosed within the
none
opening and closing <form> tag
opening and closing <frm> tag
opening and closing <firm> tag

Which of the following is not a valid HTML element tag?
<FORM>
<BLOG>
<FOOTER>
<HEAD>
What must be the first element in an HTML page?
<TITLE>
<HEAD>
<!DOCTYPE>
<BODY>
Which of the following HTML elements denotes the name of the page?
<PAGE NAME>
<TITLE>
<NAME>
<PAGE TITLE>
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.
True
False
Colors in plain HTML can be specified using ?
Meta tags
Hexadecimal Colors
Images
Which of the following will NOT be found in the <head> section ?
Title
Metatags
Table
Which type of parameter specify the path where your image is placed?
path
src
scr
Which organization defines the standards for the world wide web?
Apple
Mozilla
W3C
Microsoft
Google
What does Web Hosting mean?
accessing your email from a mail server
storing your website on a public server
creating a web page with HTML
None of these
Which element is a block-level element?
span element
div element
strong element
Which of these HTML tags represents the smallest heading?
<H5>
<H1>
<H6>
<H0>
HTML provides a functionality to connect one or more pages in web-pages or resources.
tree
src node
link
node
which of the following HTML tag are used for mp3 file
<embed height="50" width="100" src="horse.mp3">
<input height="50" width="100" src="horse.mp3">
How can you open a link in a new browser window?
<a href="url" target="self>
<a href="url" new>
<a href="url" target="new>
<a href="url" target="_blank">
<a href="url" target="_top">
Which attribute of the HTML <A> tag specifies the address of the destination link?
dest
link
linkdest
href
Which tag can set the background color for your page?
<body>
<head>
<font>
TRUE or FALSE? A <span> defines a section in a document (inline).
TRUE
FALSE
What is the primary use for HTML?
Creating a fundamental source code control system.
Creating a complex relational database application.
Creating a complex CRM application.
Creating basic elements of a website.
HTML stands for:
Hyperlinks Text Markup Language
Home Text Markup Language
None of these
Hyper Text Markup Language
Choose the correct HTML to left-align the content inside a tablecell
<td valign="left">
<tdleft>
<td align="left">
<td leftalign>
Which of the following will right-align the content inside a table-cell?
<td align="right">
<td valign="right">
<td right>
<td:right>
To seperate single list items use ?
<ul> and </ul>
<ol> and </ol>
<li> and </li>
Which property can be used to control the flow and formatting of text?
red-space
green-space
blue-space
white-space
Which of the following tags will NOT be found in the <head> section?
<link>
<meta>
<table>
<title>

The value of type attributes are:
radio
checkbox
text
All of them
How do you add a link which will allow the visitor to send an email from your page ?
Add an image of an envelope
Add <a href="sendmailtoyouraddress">
Add <a href="mailto:youraddress">
Which tag do you use in the beginning of an HTML document?
<BEGIN>
<HTML>
</BODY>
<BODY>
</HTML>
In HTML, to add spaces to your text, you can use the
<EMPTY> tag
<SPACE> tag
&nbsp; entity
&lt; entity
How can you create an e-mail link?
<a href="mailto:123@gmail.com">
<a mail="mailto:123@gmail.com">
<mail href="123@gmail.com">
What is the purpose of the <!DOCTYPE> declaration?
To label the page with an appropriate heading.
None of these
To enclose the markup tags.
Notify the browser which version of HTML the page uses.
Which of these tags are all <table>tags?
<thead><body><tr>
<table><tr><tt>
<table><head><tfoot>
<table><tr><td>