0% found this document useful (0 votes)
98 views110 pages

Midterm Exam Review

This document contains a midterm exam review covering various topics about HTML, XHTML, CSS and web design. It includes over 30 multiple choice questions about topics such as HTML tags, image formatting, links, lists and more. The review is intended to help students prepare for an upcoming midterm exam on web technologies and standards.

Uploaded by

Altaa Tungaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views110 pages

Midterm Exam Review

This document contains a midterm exam review covering various topics about HTML, XHTML, CSS and web design. It includes over 30 multiple choice questions about topics such as HTML tags, image formatting, links, lists and more. The review is intended to help students prepare for an upcoming midterm exam on web technologies and standards.

Uploaded by

Altaa Tungaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 110

MIDTERM EXAM REVIEW

What does HTML stand for?


MIDTERM EXAM REVIEW
What does HTML stand for?
Hyper-Text Mark-up Language
MIDTERM EXAM REVIEW
What is the syntax for an XHTML comment?
a.<comment>This is a comment</comment>
b.<com: This is a comment>
c.<!-- This is a comment -->
d.<comment:"This is a comment" />
MIDTERM EXAM REVIEW
What is the syntax for an XHTML comment?
a.<comment>This is a comment</comment>
b.<com: This is a comment>
c.<!-- This is a comment -->
d.<comment:"This is a comment" />
MIDTERM EXAM REVIEW
What is the difference between a start tag and an end
tag?
a. An end tag starts with a forward slash.
b. They are identical.
c. An end tag is capitalized.
d. An end tag is mandatory but a start tag is optional.
MIDTERM EXAM REVIEW
What is the difference between a start tag and an end
tag?
a. An end tag starts with a forward slash.
b. They are identical.
c. An end tag is capitalized.
d. An end tag is mandatory but a start tag is optional.
MIDTERM EXAM REVIEW
Which file extension is used with standard web pages?
a. .doc
b. .xhtml
c. .txt
d. .html
MIDTERM EXAM REVIEW
Which file extension is used with standard web pages?
a. .doc
b. .xhtml
c. .txt
d. .html
MIDTERM EXAM REVIEW
What should be the first element in any web page?
a.<head>
b.<body>
c.<html>
d.<page>
MIDTERM EXAM REVIEW
What should be the first element in any web page?
a.<head>
b.<body>
c.<html>
d.<page>
MIDTERM EXAM REVIEW
Which is not a valid location for CSS declarations?
a. Inline
b. CSS div after the opening <body> tag
c. External Style Sheet
d. Internal Style Sheet
MIDTERM EXAM REVIEW
Which is not a valid location for CSS declarations?
a. Inline
b. CSS div after the opening <body> tag
c. External Style Sheet
d. Internal Style Sheet
MIDTERM EXAM REVIEW
What type of content can be placed into a <td> table
cell element?
a. Text only
b. Text and links only
c. Text, links, and lists only
d. Text, links, lists, and images
MIDTERM EXAM REVIEW
What type of content can be placed into a <td> table
cell element?
a. Text only
b. Text and links only
c. Text, links, and lists only
d. Text, links, lists, and images
MIDTERM EXAM REVIEW
What will happen if we specify an image's height and width
outside of its true original proportion?
a. The web browser will not display the image.
b. The web browser will ignore the height and width and display
the image normally.
c. The web browser will display the alternate text instead of the
image.
d. The web browser will display a distorted version of the image.
MIDTERM EXAM REVIEW
What will happen if we specify an image's height and width
outside of its true original proportion?
a. The web browser will not display the image.
b. The web browser will ignore the height and width and display
the image normally.
c. The web browser will display the alternate text instead of the
image.
d. The web browser will display a distorted version of the image.
MIDTERM EXAM REVIEW
What is generally considered the best format to use for
color photographs on the web?
a. .jpg
b. .pic
c. .gif
d. .bmp
MIDTERM EXAM REVIEW
What is generally considered the best format to use for
color photographs on the web?
a. .jpg
b. .pic
c. .gif
d. .bmp
MIDTERM EXAM REVIEW
Which of the following is not an available attribute for
the <img> element?
a. alt
b. filename
c. height
d. width
MIDTERM EXAM REVIEW
Which of the following is not an available attribute for
the <img> element?
a. alt
b. filename
c. height
d. width
MIDTERM EXAM REVIEW
Which image format best can support animation?
a. .jpg
b. .gif
c. .png
d. .mov
MIDTERM EXAM REVIEW
Which image format best can support animation?
a. .jpg
b. .gif
c. .png
d. .mov
MIDTERM EXAM REVIEW
A bookmark link starts with which symbol in the href
attribute?
1. #
2. $
3. :
4. @
MIDTERM EXAM REVIEW
A bookmark link starts with which symbol in the href
attribute?
1. #
2. $
3. :
4. @
MIDTERM EXAM REVIEW
What does target="_blank" do when specified
in an <a> element?
a. Tells the browser not to underline a link.
b. Tells the browser to open a link in the same window.
c. Tells the browser to display a blank screen.
d. Tells the browser to open a link in a new window.
MIDTERM EXAM REVIEW
What does target="_blank" do when specified
in an <a> element?
a. Tells the browser not to underline a link.
b. Tells the browser to open a link in the same window.
c. Tells the browser to display a blank screen.
d. Tells the browser to open a link in a new window.
MIDTERM EXAM REVIEW
What CSS technique could we use to force a <div>
element to center itself horizontally in the browser
window, no matter what the screen dimensions are?
a. Set the text-align property of the <div> to center.
b. Set the right and left margins of the <div> to auto.
c. Set the screen property of the <div> to horizontal-
center.
d. Set the width property of the <div> to be 50%.
MIDTERM EXAM REVIEW
What CSS technique could we use to force a <div>
element to center itself horizontally in the browser
window, no matter what the screen dimensions are?
a. Set the text-align property of the <div> to center.
b. Set the right and left margins of the <div> to auto.
c. Set the screen property of the <div> to horizontal-
center.
d. Set the width property of the <div> to be 50%.
MIDTERM EXAM REVIEW
The key difference between HTML and XHTML is:
a. XHTML has special tags for animation.
b. You can only use CSS with XHTML.
c. XHTML is stricter in enforcing rules than HTML.
d. XHTML must be used with the current versions of
web browsers.
 
MIDTERM EXAM REVIEW
The key difference between HTML and XHTML is:
a. XHTML has special tags for animation.
b. You can only use CSS with XHTML.
c. XHTML is stricter in enforcing rules than HTML.
d. XHTML must be used with the current versions of
web browsers.
 
MIDTERM EXAM REVIEW
Which of the following is not an XHTML element
related to displaying lists?
a.<li>
b.<list>
c.<ul>
d.<ol>
 
MIDTERM EXAM REVIEW
Which of the following is not an XHTML element
related to displaying lists?
a.<li>
b.<list>
c.<ul>
d.<ol>
 
MIDTERM EXAM REVIEW
Which is not part of an XHTML element?
a. Anchor
b. Start tag
c. End tag
d. Attributes
 
MIDTERM EXAM REVIEW
Which is not part of an XHTML element?
a. Anchor
b. Start tag
c. End tag
d. Attributes
 
MIDTERM EXAM REVIEW
What is the start tag for an individual item in a list?
a.<list>
b.<ol>
c.<li>
d.<item>
 
MIDTERM EXAM REVIEW
What is the start tag for an individual item in a list?
a.<list>
b.<ol>
c.<li>
d.<item>
 
MIDTERM EXAM REVIEW
Which of the following will create a bulleted list?
a. <blist>
b. <ol>
c. <bullet>
d. <ul>
 
 
MIDTERM EXAM REVIEW
Which of the following will create a bulleted list?
a. <blist>
b. <ol>
c. <bullet>
d. <ul>
 
 
MIDTERM EXAM REVIEW
What will happen if we specify an image's height and
width outside of its true original proportion?
a. The web browser will not display the image.
b. The web browser will ignore the height and width and
display the image normally.
c. The web browser will display the alternate text instead of the
image.
d. The web browser will display a distorted version of the
image.
MIDTERM EXAM REVIEW
What will happen if we specify an image's height and
width outside of its true original proportion?
a. The web browser will not display the image.
b. The web browser will ignore the height and width and
display the image normally.
c. The web browser will display the alternate text instead of the
image.
d. The web browser will display a distorted version of the
image.
MIDTERM EXAM REVIEW
Which of the following statements is incorrect?
a. The <h1> header element should be used only once per page.
b. An <h3> header element indicates that something is more
important than what is in an <h4> header element.
c. A lower header element, such as <h4>, should not be used
unless all the higher ones, <h1> through <h3>, have been
used first.
d. Generally, a higher header element, such as <h1>, will display
in larger text than a lower header element, such as <h3>.
MIDTERM EXAM REVIEW
Which of the following statements is incorrect?
a. The <h1> header element should be used only once per page.
b. An <h3> header element indicates that something is more
important than what is in an <h4> header element.
c. A lower header element, such as <h4>, should not be used
unless all the higher ones, <h1> through <h3>, have been
used first.
d. Generally, a higher header element, such as <h1>, will display
in larger text than a lower header element, such as <h3>.
MIDTERM EXAM REVIEW
If you wanted to display the actual characters <p> on
your web page, which would accomplish this?
a.&lt; p &gt;
b.lt;pgt;
c.&lessthan; p &greaterthan;
d.&lt;p&gt;
 
MIDTERM EXAM REVIEW
If you wanted to display the actual characters <p> on
your web page, which would accomplish this?
a.&lt; p &gt;
b.lt;pgt;
c.&lessthan; p &greaterthan;
d.&lt;p&gt;
 
MIDTERM EXAM REVIEW
What would a blind person hear in a screen reader in the
place of a web image?
a. The name of the actual image file.
b. Nothing.
c. The caption text in the <p> element that precedes or follows
the image.
d. Whatever text is specified in the alt attribute.
 
MIDTERM EXAM REVIEW
What would a blind person hear in a screen reader in the
place of a web image?
a. The name of the actual image file.
b. Nothing.
c. The caption text in the <p> element that precedes or follows
the image.
d. Whatever text is specified in the alt attribute.
 
MIDTERM EXAM REVIEW
When you move your mouse over a web link and it
changes color, which CSS property has been set?
a.a:link
b.a:hover
c.a:mouseover
d.a:active
 
MIDTERM EXAM REVIEW
When you move your mouse over a web link and it
changes color, which CSS property has been set?
a.a:link
b.a:hover
c.a:mouseover
d.a:active
 
MIDTERM EXAM REVIEW
What does the element <p> stand for?
a. Paragraph
b. Person
c. Page
d. Presentation
 
MIDTERM EXAM REVIEW
What does the element <p> stand for?
a. Paragraph
b. Person
c. Page
d. Presentation
 
MIDTERM EXAM REVIEW
Which property determines the font (e.g. Arial, Tahoma) a
text element is displayed in?
a.text-family
b.font-style
c.font-family
d.text-type

 
MIDTERM EXAM REVIEW
Which property determines the font (e.g. Arial, Tahoma) a
text element is displayed in?
a.text-family
b.font-style
c.font-family
d.text-type

 
MIDTERM EXAM REVIEW
 
Where is an internal style sheet located?
a. In a separate file from the XHTML document
b. In the <body> section of the XHTML document
c. In the <head> section of the XHTML document
d. In the <title> section of the XHTML document

 
MIDTERM EXAM REVIEW
 
Where is an internal style sheet located?
a. In a separate file from the XHTML document
b. In the <body> section of the XHTML document
c. In the <head> section of the XHTML document
d. In the <title> section of the XHTML document

 
MIDTERM EXAM REVIEW
 
What will happen if we do not specify the border attribute for
a <table> element?
a. There will be an error and the table will not display.
b. The table will show the default value of 1 pixel cell borders.
c. The browser will ask the user to supply a border size.
d. The table will show without any cell borders.
 
MIDTERM EXAM REVIEW
 
What will happen if we do not specify the border attribute for
a <table> element?
a. There will be an error and the table will not display.
b. The table will show the default value of 1 pixel cell borders.
c. The browser will ask the user to supply a border size.
d. The table will show without any cell borders.
 
MIDTERM EXAM REVIEW
 
The correct syntax for using a colspan attribute in an
XHTML document is:
a.<td colspan:3>
b.<td colspan="3">
c.<td colspan=3>
d.<td colspan=100%>
 
MIDTERM EXAM REVIEW
 
The correct syntax for using a colspan attribute in an
XHTML document is:
a.<td colspan:3>
b.<td colspan="3">
c.<td colspan=3>
d.<td colspan=100%>
 
MIDTERM EXAM REVIEW
 
What does CSS stand for?

 
MIDTERM EXAM REVIEW
 
What does CSS stand for?

Cascading Style Sheets

 
MIDTERM EXAM REVIEW
 
Which are all valid table elements?
a.<tr>, <tc>, and <table>
b.<td>, <row>, and <table>
c.<tr>, <th>, and <table>
d.<cell>, <row>, and <table>

 
MIDTERM EXAM REVIEW
 
Which are all valid table elements?
a.<tr>, <tc>, and <table>
b.<td>, <row>, and <table>
c.<tr>, <th>, and <table>
d.<cell>, <row>, and <table>

 
MIDTERM EXAM REVIEW
 

Going from the outside in, what is the order of components


in the box model?
a.Content, padding, border, margin
b.Border, padding, margin, content
c.Border, margin, padding, content
d.Margin, border, padding, content

 
MIDTERM EXAM REVIEW
 

Going from the outside in, what is the order of components


in the box model?
a.Content, padding, border, margin
b.Border, padding, margin, content
c.Border, margin, padding, content
d.Margin, border, padding, content

 
MIDTERM EXAM REVIEW
 
Which element is used to define a column?
a.<td>
b.<tr>
c.<tc>
d.<col>

 
MIDTERM EXAM REVIEW
 
Which element is used to define a column?
a.<td>
b.<tr>
c.<tc>
d.<col>

 
MIDTERM EXAM REVIEW
 
If we applied the CSS style {padding: 10px 0px;} to a div
element, what would happen?
a. 10 pixels of padding would be added to the top and bottom of
the div.
b.10 pixels of padding would be added on all sides of the div.
c. 10 pixels of padding would be added to the right and left of the
div.
d.10 pixels of padding would be added to the bottom of the div.
MIDTERM EXAM REVIEW
 
If we applied the CSS style {padding: 10px 0px;} to a div
element, what would happen?
a. 10 pixels of padding would be added to the top and bottom of
the div.
b.10 pixels of padding would be added on all sides of the div.
c. 10 pixels of padding would be added to the right and left of the
div.
d.10 pixels of padding would be added to the bottom of the div.
MIDTERM EXAM REVIEW
How would you create a link to another web page named
"page2.html"?
a.<a ref=page2.html>Link to Page 2</a>
b.<a href="page2.html">Link to Page 2
c.<a href="page2.html">Link to Page 2</a>
d.<a>Link to Page 2</a>

 
MIDTERM EXAM REVIEW
How would you create a link to another web page named
"page2.html"?
a.<a ref=page2.html>Link to Page 2</a>
b.<a href="page2.html">Link to Page 2
c.<a href="page2.html">Link to Page 2</a>
d.<a>Link to Page 2</a>

 
MIDTERM EXAM REVIEW
If you were on a web page and some of the links
looked blue and some looked purple, what is the
most likely explanation for this?
a. The web designer styled some links to be blue and others to
look purple.
b. The links that are in purple are dead or inactive.
c. The purple links are sites that you have already visited.
d. The browser is having a problem and needs to be closed and
restarted.
 
MIDTERM EXAM REVIEW
If you were on a web page and some of the links
looked blue and some looked purple, what is the
most likely explanation for this?
a. The web designer styled some links to be blue and others to
look purple.
b. The links that are in purple are dead or inactive.
c. The purple links are sites that you have already visited.
d. The browser is having a problem and needs to be closed and
restarted.
 
MIDTERM EXAM REVIEW
If a div has a defined width of 200px, a border of 5px,
padding of 10px, and a margin of 5px, what would
be the overall width taken up by the div element on
the screen?
a. 200px
b. 205px
c. 220px
d. 240px
 
MIDTERM EXAM REVIEW
If a div has a defined width of 200px, a border of 5px,
padding of 10px, and a margin of 5px, what would
be the overall width taken up by the div element on
the screen?
a. 200px
b. 205px
c. 220px
d. 240px… 200 + 5 + 5 + 10 + 10 + 5 + 5 = 240
 
MIDTERM EXAM REVIEW
Which is the preferred way to italicize text in your
web page?
a. The <em> element
b. By using font-style: italic; in CSS
c. The <i> element
d. The <ital> element
 
 
MIDTERM EXAM REVIEW
Which is the preferred way to italicize text in your
web page?
a. The <em> element
b. By using font-style: italic; in CSS
c. The <i> element
d. The <ital> element 
MIDTERM EXAM REVIEW
Which of the following is not true about XHTML
comments?
a. They can be read by anyone who views the source
code in their browser.
b. They help web designers understand other
designers’ code.
c. They are required for closing <div> tags to indicate
which <div> is being closed.
d. They can span multiple lines without causing errors.
MIDTERM EXAM REVIEW
Which of the following is not true about XHTML
comments?
a. They can be read by anyone who views the source
code in their browser.
b. They help web designers understand other
designers’ code.
c. They are required for closing <div> tags to indicate
which <div> is being closed.
d. They can span multiple lines without causing errors.
MIDTERM EXAM REVIEW
If we floated one div to the right and another to the
left, where would the next page content display on
the page?
a. In between the two divs, in all circumstances
b. In between the two divs, but only if there is
sufficient space
c. Beneath the div on the right
d. Beneath the div on the left
 
MIDTERM EXAM REVIEW
If we floated one div to the right and another to the
left, where would the next page content display on
the page?
a. In between the two divs, in all circumstances
b. In between the two divs, but only if there is
sufficient space
c. Beneath the div on the right
d. Beneath the div on the left
 
MIDTERM EXAM REVIEW
What will happen if we use CSS to set both a
background image and a background color for the
same element?
a. The background image will show with a border around it in the
background color.
b. The background image and the background color will be blended and
both will show.
c. Only the background color will show.
d. Only the background image will show, unless the image cannot be found,
in which case the background color will show.

 
MIDTERM EXAM REVIEW
What will happen if we use CSS to set both a
background image and a background color for the
same element?
a. The background image will show with a border around it in the
background color.
b. The background image and the background color will be blended and
both will show.
c. Only the background color will show.
d. Only the background image will show, unless the image cannot be found,
in which case the background color will show.

 
MIDTERM EXAM REVIEW
Why is the .gif format such a poor choice for a
photographic image?
a. It has limited color support.
b. It results in a much larger file than other formats.
c. It isn't supported by many browsers.
d. It is reserved solely for cartoon animations.
 
 
 
MIDTERM EXAM REVIEW
Why is the .gif format such a poor choice for a
photographic image?
a. It has limited color support.
b. It results in a much larger file than other formats.
c. It isn't supported by many browsers.
d. It is reserved solely for cartoon animations.
 
 
 
MIDTERM EXAM REVIEW
Which of the following can we use to indicate that the
cells in the first row of a table are labels for the data
below and should be formatted differently?
a.<td special>
b.<td first>
c.<th>
d.<table header>
 
 
MIDTERM EXAM REVIEW
Which of the following can we use to indicate that the
cells in the first row of a table are labels for the data
below and should be formatted differently?
a.<td special>
b.<td first>
c.<th>
d.<table header>
 
 
MIDTERM EXAM REVIEW
How many times can a CSS class be applied to
elements in an XHTML document?
a. Once
b. Twice
c. Once for each type of element in the page
d. An unlimited number of times for each type of element
in the page
 
 
MIDTERM EXAM REVIEW
How many times can a CSS class be applied to
elements in an XHTML document?
a. Once
b. Twice
c. Once for each type of element in the page
d. An unlimited number of times for each type of element
in the page
 
 
MIDTERM EXAM REVIEW
CSS classes and IDs are defined by which
starting character, respectively, in the <style>
section?
a. Colon and period
b. Period and pound sign
c. Pound sign and period
d. Pound sign and colon
 
MIDTERM EXAM REVIEW
CSS classes and IDs are defined by which
starting character, respectively, in the <style>
section?
a. Colon and period
b. Period and pound sign
c. Pound sign and period
d. Pound sign and colon
 
MIDTERM EXAM REVIEW
What is the purpose of clearing a float?
a. To display the next content to the right of the floated
div
b. To display the next content to the left of the floated
div
c. To display the next content below the floated
content.
d. To display the next content on top of the floated div.
MIDTERM EXAM REVIEW
What is the purpose of clearing a float?
a. To display the next content to the right of the floated
div
b. To display the next content to the left of the floated
div
c. To display the next content below the floated
content.
d. To display the next content on top of the floated div.
MIDTERM EXAM REVIEW
Which is not a direct benefit of using CSS?
a. Gaining more control over how we style our web
pages
b. The ability to make multiple changes to a website
from a single location
c. The ability to place tables and images into our web
pages
d. Separating the content of our web pages from its
presentation
MIDTERM EXAM REVIEW
Which is not a direct benefit of using CSS?
a. Gaining more control over how we style our web
pages
b. The ability to make multiple changes to a website
from a single location
c. The ability to place tables and images into our web
pages
d. Separating the content of our web pages from its
presentation
MIDTERM EXAM REVIEW
If you wanted to add a footnote reference like this1 to a
word, which element would you use?
a. <foot>
b. <sup>
c. <up>
d. <sub>
 
 
 
MIDTERM EXAM REVIEW
If you wanted to add a footnote reference like this1 to a
word, which element would you use?
a. <foot>
b. <sup>
c. <up>
d. <sub>
 
 
 
MIDTERM EXAM REVIEW
What will happen if we try to apply more than one
class to the same, specific XHTML element?
a. The styles from only the first class will be applied.
b. The styles from only the final class will be applied.
c. No styles will be applied.
d. The styles from all the classes will be combined and
applied.
 
 
MIDTERM EXAM REVIEW
What will happen if we try to apply more than one
class to the same, specific XHTML element?
a. The styles from only the first class will be applied.
b. The styles from only the final class will be applied.
c. No styles will be applied.
d. The styles from all the classes will be combined and
applied.
 
 
MIDTERM EXAM REVIEW
Why is it a bad idea to name a class "underline"?
a. Class names should reflect meaning and not describe
appearance.
b. The word 'underline' is reserved for the text-decoration
property.
c. Underlining is allowed only in links in XHTML
documents.
d. For older browsers, there is a seven character limit for
class names.
 
MIDTERM EXAM REVIEW
Why is it a bad idea to name a class "underline"?
a. Class names should reflect meaning and not describe
appearance.
b. The word 'underline' is reserved for the text-decoration
property.
c. Underlining is allowed only in links in XHTML
documents.
d. For older browsers, there is a seven character limit for
class names.
 
MIDTERM EXAM REVIEW
Write a single CSS shorthand statement that would
accomplish the same as the following three CSS
lines:
 
border-style: solid;
border-width: 3px;
border-color: red;
 
 
MIDTERM EXAM REVIEW
Write a single CSS shorthand statement that would
accomplish the same as the following three CSS
lines:
 
border: 3px solid red;
 
 
 
MIDTERM EXAM REVIEW
Which CSS property sets the background color for an
XHTML element, such as a table row?
a. bg:
b. bgcolor:
c. background:
d. background-color:
 
 
 
MIDTERM EXAM REVIEW
Which CSS property sets the background color for an
XHTML element, such as a table row?
a. bg:
b. bgcolor:
c. background:
d. background-color:
 
 
 
MIDTERM EXAM REVIEW
How can setting table column widths by percent hold
an advantage over setting them by pixels?
a. If the overall table width is modified, the column widths will
be modified in the same proportion.
b. Setting column widths by percent prevents tables from
flowing off the page.
c. Text size can be made to display larger only in columns set
by width, not by pixels.
d. If the viewer’s computer screen does not use pixels, columns
set in pixels will not display.
MIDTERM EXAM REVIEW
How can setting table column widths by percent hold
an advantage over setting them by pixels?
a. If the overall table width is modified, the column widths will
be modified in the same proportion.
b. Setting column widths by percent prevents tables from
flowing off the page.
c. Text size can be made to display larger only in columns set
by width, not by pixels.
d. If the viewer’s computer screen does not use pixels, columns
set in pixels will not display.
MIDTERM EXAM REVIEW
If a CSS class and a CSS ID are both assigned to the
same page element, and each specifies a different
text color, which of the styles will apply?
a. Both will be applied and the text will appear in the
average of the two colors.
b. Neither will be applied. The browser default color will
show.
c. The ID style will be applied.
d. The class style will be applied.
 
MIDTERM EXAM REVIEW
If a CSS class and a CSS ID are both assigned to the
same page element, and each specifies a different
text color, which of the styles will apply?
a. Both will be applied and the text will appear in the
average of the two colors.
b. Neither will be applied. The browser default color will
show.
c. The ID style will be applied.
d. The class style will be applied.
 
MIDTERM EXAM REVIEW
Which XHTML elements can be floated right or left
on the page?
a. None.
b. Only the <div> element.
c. Only the <img> element.
d. Many elements, including both the <div> and <img>
elements.
 
MIDTERM EXAM REVIEW
Which XHTML elements can be floated right or left
on the page?
a. None.
b. Only the <div> element.
c. Only the <img> element.
d. Many elements, including both the <div> and <img>
elements.
 

You might also like