Pregunta 1
Pregunta
An HTML element defines the _____of a document while the CSS determines the ____
Pregunta 2
Pregunta
A CSS definition includes three parts:
Respuesta
-
a selector, a property and a value
-
alignment, color, and value
-
red, green and blue
-
selector, color, and value
Pregunta 3
Pregunta
Where in an HTML document is the correct place to refer to an external style sheet?
Respuesta
-
<style> and </style>
-
<css> and </css>
-
<head> and </head>
-
<body> and </body>
Pregunta 4
Pregunta
Which of the following measurements is a relative one?
Respuesta
-
% and px
-
em and in
-
px and in
-
% and em
Pregunta 5
Pregunta
If you want to define different styles for the same selector and use them in different places, you can use ____ selector.
Respuesta
-
numbering
-
class
-
different
-
special
Pregunta 6
Pregunta
How do you add a background color of red to all h1 elements?
Respuesta
-
all h1{background-color:red;}
-
h1.all{background-color:red;}
-
h1{background-color:red;}
-
background-color{h1:red;}
Pregunta 7
Pregunta
How do you select an element with id "myColor"?
Respuesta
-
myColor
-
#myColor
-
.myColor
-
*myColor
Pregunta 8
Pregunta
How do you apply CSS to a group of selectors?
Respuesta
-
separate each selector with space
-
separate each selector with a dot
-
separate each selector with a comma
-
separate each selector with an asterisk
Pregunta 9
Pregunta
How do you select all p elements inside a div element?
Pregunta 10
Pregunta
How do you select all p elements as a child of a div element?
Respuesta
-
div, p
-
div p
-
div. p
-
div>p
Pregunta 11
Pregunta
Which of the following CSS will override the browser default style?
Respuesta
-
embedded
-
external
-
inline
-
all of the above
Pregunta 12
Pregunta
Suppose you have a linked style sheet file named "lesson1.css" that is saved in the same folder as you HTML document. In order to apply the style to the HTML document, you need to insert the following line of code in the _________ section of an HTML file:
<link href="lesson1.css" type="text/css" rel="stylesheet"/>
Pregunta 13
Pregunta
Suppose you want to apply CSS to more than one Web pages, you probably will use _____CSS
Respuesta
-
embedded
-
external
-
inline
-
browser default
Pregunta 14
Pregunta
If you use the embedded style, all the CSS definitions should be included inside_______ element.
Pregunta 15
Pregunta
Which HTML attribute is used to define inline styles?
Respuesta
-
style
-
css
-
inline
-
inlinestyle
Pregunta 16
Pregunta
CSS inheritance means ______.
Respuesta
-
if you apply a property to one element, the property will apply to all related elements.
-
if you apply a property to one element, the property will apply to all nested elements.
-
if you apply a property to one element, the property will apply to all related elements with some exceptions.
-
CSS is not object-oriented, and thus no such thing as inheritance,
Pregunta 17
Pregunta
Which of the following is a correct way to comment out a line of CSS Code?
Respuesta
-
/*This is a line of comment
-
<?This is a line of comment
-
<?This is a line of comment?>
-
/*This is a line of comment*/
Pregunta 18
Pregunta
In CSS color, the RGB stands for ______________?
Respuesta
-
a really good background
-
red gray blue
-
red green blue
-
red green black
Pregunta 19
Pregunta
Which of the following is NOT a valid RGB color?
Respuesta
-
#ff0000
-
#f00
-
rgb (256,0,0)
-
rgb(100%,0%,0%)
Pregunta 20
Pregunta
Which CSS property is used to change the text color of an element?
Respuesta
-
text-color
-
font-color
-
foreground-color
-
color
Pregunta 21
Pregunta
CSS can be specified in three ways. When more than one style information is specified for an HTML element, these styles cascade into a new style sheet by following the cascading order. From highest priority to the lowest priority orders are:
Respuesta
-
embedded, external, and inline
-
inline, embedded, and external
-
embedded, inline, and external
-
external, embedded, and inline
Pregunta 22
Pregunta
Which CSS property determines the text size?
Respuesta
-
text-size
-
font-size
-
text-style
-
font-style
Pregunta 23
Pregunta
What is the CSS definition for making all the <p> elements bold?
Respuesta
-
p{font-size:bold;}
-
p{font-style:bold;}
-
p{text-size:bold;}
-
p{font-weight:bold;}
Pregunta 24
Pregunta
What is the CSS definition for displaying hyperlink without an underline?
Pregunta 25
Pregunta
How do you make each word in a paragraph start with a capital letter?
Pregunta 26
Pregunta
Which CSS property is used to change the font of an element?
Respuesta
-
font
-
font-family
-
text
-
both A) and B)
Pregunta 27
Pregunta
How do you display a border for all paragraphs?
Respuesta
-
p{border: solid 1px red;}
-
p{border-style: solid 1px red;}
-
p{border-visible: solid 1px red;}
-
p{display:solid 1px red;}
Pregunta 28
Pregunta
Which CSS property is used to change the left margin of an element?
Respuesta
-
margin-left
-
indent
-
padding-left
-
space-left
Pregunta 29
Pregunta
CSS padding property allows negative value
Pregunta 30
Pregunta
How do you make a list without its bullet points?
Respuesta
-
ul{list-style-type:none;}
-
li{list-style-type:none;}
-
ul{list-style-type:disappear;}
-
li{list-style-type:disappear;}
Pregunta 31
Pregunta
What is the default value of the position property?
Respuesta
-
absolute
-
relative
-
fixed
-
static