Font size
WorksheetsFE METER REVIEW 5
Total questions: 15
Worksheet time: 1hrs 15mins
Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?
div{
background-color:#900;
}
h2{
background-color:#900;
}
div>h2{
background-color:#900;
}
h2>div{
background-color:#900;
}
div,h2{
background-color:#900;
}
Which CSS property defines which sides of an element where other floating elements are not allowed?
float
position
display
clear
You write the following code to create a page. (Line numbers are included for reference only.)
You need to apply the SVG blur filter to the text tag on the page. Which HTML/CSS code should you insert at line 02?
<style>
Text{font:48px arial bold; fill:blur;}
</style>
<style>
Text{font:48px arial bold; filter:url(#blur);}
</style>
<style>
Text{font:48px arial bold; filter:#blur;}
</style>
<style>
Text{font:48px arial bold; filter:url(blur);}
</style>
Which layout can you create by using a single CSS3 region?
a table layout
a snaked-column layout
a multiple column liquid layout
a multiple column fixed layout
In CSS, the flow-into property deposits:
the flow into the content.
the regions into a flow.
the flow into the regions.
content into the flow.
Which CSS code fragment centers an image horizontally?
img.center{text-align:center;}
img.center{display:block; text-align:center;}
img.center{display:block;}
img.center{display:block;margin-left:auto; margin-right:auto;
Which positioning scheme places an object in normal document flow?
absolute
relative
fixed
float
The variable named "ctx" is the context of an HTML5 canvas object. What does the following code fragment draw? ctx.arc(x, y, r, 0, Math.PI, true);
a circle at the given point
a square at the given point
a semi-circle at the given point
a line from one point to another
Which three are valid JavaScript variables? (Choose three.)
xyz1
.Int
int1
_int
1xyz
Your code includes the following fragment:
<input type="text" name="text1" id="myText" />
You need to add code that will retrieve the contents of the INPUT element. Which JavaScript code fragment will accomplish this?
vartxtContents =document.getElementById('text1').value;
vartxtContents = document.getEIementyById('myText').value;
vartxtContents =document.getElementById('text1');
vartxtContents = document.getElementById('myText');
Which two events are supported on touch devices? (Choose two.)
click
touchstart
selection
drag
The data in a specific HTML5 local storage database can be accessed from:
Different browsers on the same device.
Different browsers on different devices.
The same browser on different devices.
The same browser on the same device.
You are creating a page by using HTML5. You add script tags to the page. You need to use JavaScript to access an element by id and add a class to the element. Which property or attribute should you use?
the tagName property
the className property
the style property
the class attribute
Which code fragment sets up a timer that calls a function named "adjust" every second?
setTimeout(adjust, 1000);
setInterval(adjust, 1000);
setInterval(adjust, 1);
setTimeout(adjust, 1);
Which two HTML properties can JavaScript access to change the text value of an HTML element? (Choose two.)
innerHTML
nodeType
title
nodeValue
