Name:     ID: 
 
Email: 

HTML5 & CSS3 Quiz 2

Multiple Choice
Identify the choice that best completes the statement or answers the question.
 

 1. 

The _____ attribute of a link element uses the stylesheet value to indicate that a document is linked to a style sheet.
a.
rel
c.
href
b.
lnk
d.
span
 

 2. 

The _____ property rounds the corners of a block element’s border.
a.
border
c.
border-radius
b.
border-style
d.
box-shadow
 

 3. 

Initially loading the correct layout for each device is particularly helpful for mobile devices because it eliminates extra _____.
a.
stacking
c.
clicking
b.
indexing
d.
zooming
 

 4. 

The code:
<head>
<title>My Website</title>
?3?
<style>
?3?
body {
                       background-color: green;
           }
?3?
           </style>
           </head>
exemplifies a(n) _____ style sheet where the style rule is placed between the opening <style> and closing </style> tags.
a.
embedded
c.
inline
b.
external
d.
linked
 

 5. 

Identify a pseudo-class used to style an unvisited link.
a.
:link
c.
:hover
b.
:active
d.
:visited
 

 6. 

The _____ element allows one to use Cascading Style Sheets (CSS) to format a length of text separately from its surrounding text.
a.
span
c.
length
b.
ismap
d.
label
 

 7. 

An _____ style takes precedence over other styles defined in a style sheet.?3?
a.
embedded
c.
inline
b.
external
d.
internal
 

 8. 

An embedded style sheet includes the style sheet within the _____ tags of the HTML document.
a.
<body> and </body>
c.
<html> and </html>
b.
<head> and </head>
d.
<style> and </style>
 

 9. 

_____ gradients are specified by their center and a color begins in the center and transitions in a circular direction to other colors.
a.
Horizontal
c.
Radial
b.
Linear
d.
Diagonal
 

 10. 

One _____ is equal to one dot on a display screen.
a.
pixel
c.
em
b.
pica
d.
rem
 

True/False
Indicate whether the statement is true or false.
 

 11. 

The mobile website approach means that developers revamp an existing website to suit small mobile viewports instead of building a new and parallel website from scratch.
 

 12. 

The only thing that should change while designing a tablet viewport is the appearance of the website.
 

 13. 

A mobile-first strategy employs responsive design principles.
 

 14. 

Multiple colors can be used within a radial gradient.
 

 15. 

A breakpoint is where different styles are applied to a webpage to cause it to change in a way that makes it easier to read and navigate for a particular situation.
 

 16. 

If a logical expression evaluates to “false,” the media query applies the styles that follow.
 

 17. 

When an image is floated to the right or left of elements containing text content, the effect is to wrap the text around the image.
 

 18. 

According to the World Wide Web Consortium (W3C), with Hypertext Markup Language (HTML) 5, the type attribute is highly essential.
 

 19. 

When the value is zero for a property, the unit of measurement does not matter.
 

 20. 

Initially loading the correct layout for each device is particularly helpful for mobile devices because it eliminates extra zooming.
 



 
         Start Over