Name:     ID: 
 
Email: 

HTML5 & CSS3 Quiz 2

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

 1. 

Multiple colors can be used within a radial gradient.
 

 2. 

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

 3. 

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

 4. 

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.
 

 5. 

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

 6. 

A mobile-first strategy employs responsive design principles.
 

 7. 

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.
 

 8. 

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.
 

 9. 

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

 10. 

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

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

 11. 

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

 12. 

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
 

 13. 

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

 14. 

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

 15. 

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
 

 16. 

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
 

 17. 

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

 18. 

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>
 

 19. 

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
 

 20. 

_____ 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
 



 
         Start Over