HTML and CSS Reference
In-Depth Information
Correct answer: C
3.
Incorrect: word-margin is not a valid option.
A.
Incorrect: letter-margin is not a valid option.
B.
Correct: word-spacing will set the amount of space between words.
C.
Incorrect: word-padding is not a valid option.
D.
Objective 4.2: Thought experiment
The following code demonstrates how to alter an element's position using jQuery.
<html>
<head>
<script src="jquery-2.0.3.min.js" type="text/javascript"></script>
<style>
p {
position:fixed;
left: 1px;
}
</style>
<script>
var pos = 1;
$("document").ready(function () {
setInterval(function () {
var newPos = (pos + 1) + "px";
$("#scrollMe").css("left", newPos);
pos += 1;
}, 20);
});
</script>
</head>
<body>
<p id="scrollMe">This text moves accross the screen.</p>
</body>
</html>
Objective 4.2: Review
Correct answer: D
1.
Incorrect : div{height: 50px; width: 50%;} is valid.
A.
Incorrect : div{height: 50px; width: 50px;} is valid.
B.
Incorrect : div{height: 50cm; width: 50px; is valid.
C.
Correct : div{height: 50ft; width: 50ft;} ft is not a valid unit of measurement.
D.
Search WWH ::




Custom Search