Questão 1
Questão
Assume that code:
p { color: red; padding: 10px 5px; background: black;}
.fancy {font-family: Cursive; background: red; color: green;}
.plain {font-family: Times, Serif; color: black; }
<p class="plain fancy">Hi </p>
What color font is used to display "Hi" ?
Responda
-
red
-
green
-
black
-
browser default
Questão 2
Questão
In the following code snippet, what value is given for the right margin?
code:
margin: 5px 10px 3px 8px;
Questão 3
Questão
Which of the following would be used to create class called button which has a width of 750px, a height of 30px, and the color of the text is black ?
Responda
-
.button { height: 30px; width: 750px; text: black; }
-
#button { height: 30px; width: 750px; color: black; }
-
.button { height: 30px; width: 750px; color: black; }
-
#button { height: 30px; width: 750px; text: black; }
Questão 4
Questão
How much width will this div occupy ?
code:
div {
width: 100px;
padding: 10px;
margin-left: 5px;
border: 2px;
}
Questão 5
Questão
What is default font size of the h1 tag ?
Questão 6
Questão
Which key word used to make animation in HTML code ?
Responda
-
@keyframe
-
@animation
-
@keyframes
-
@html-animation
Questão 7
Questão
Assume that code:
<html>
<head>
<style>
div { margin-right:15px; float: left; }
.a { width: 100px; color: #ff00ff; }
.b { width: 100px; margin-right: 15px; float: right;}
<style>
<head>
<body>
<div class="a">It is a division A</div>
<div class="b">It is a division B</div>
</body>
</html>
Total width of the body is 1000px. What is the starting point of division B ?
Questão 8
Questão
Assume the following rule is the only one that styles the body element:
code:
body { font-family: Cursive, Helvetica, Verdana; }
What happens if the browser doesn't support any of the following font families ?
Responda
-
The text will not be displayed
-
The text will be displayed in Cursive
-
The text will be displayed in the default browser font-family
-
None of the above
Questão 9
Questão
Which of these elements are all <table> elements ?
Responda
-
<thead><body><tr>
-
<table><tr><td>
-
<table><tr><tt>
-
<table><head><tfoot>
Questão 10
Questão
The external JavaScript file must contain the <script> tag.
Questão 11
Questão
What is the correct way to write a JavaScript array?
Responda
-
var colors = (1:"red", 2:"green", 3:"blue")
-
var colors = 1=("red"), 2=("green"), 3=("blue")
-
var colors = "red","green","blue"
-
var colors = ["red","green","blue"]
Questão 12
Questão
JavaScript is the same as Java.
Questão 13
Questão
What will the following code return: Boolean(10<9)
Questão 14
Questão
What is the correct HTML for making a drop-down list ?
Responda
-
<input type="list">
-
<list>
-
<select>
-
<input type="dropdown">
Questão 15
Questão
What is the correct html for adding a background color ?
Questão 16
Questão
How can you make a numbered list ?
Questão 17
Questão
Which is the correct css syntax ?
Responda
-
{ body: color=black; }
-
{ body; color: black; }
-
body { color: black; }
-
body: color=black;
Questão 18
Questão
How do you add a background color for all <h1> elements
Responda
-
all.h1 {background-color: #ffffff; }
-
h1 {background-color: #ffffff; }
-
h1.all {background-color: #ffffff; }
-
*h1 {background-color: #ffffff; }
Questão 19
Questão
How do you display hyperlinks without an underline ?
Responda
-
a {underline: none;}
-
a {decoration: no-underline; }
-
a {text-decoration: none;}
-
a {text-decoration: no-underline; }
Questão 20
Questão
How do you display a border like this:
the top border = 10 pixels
the bottom border = 5 pixels
the left border = 20 pixels
the right border = 1 pixels
Responda
-
border-width: 10px 5px 20px 1px;
-
border-width: 10px 20px 5px 1px;
-
border-width: 10px 1px 5px 20px;
-
border-width: 5px 20px 10px 1px;