Deck 8: CSS and HTML Style Properties and Syntax
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/22
Play
Full screen (f)
Deck 8: CSS and HTML Style Properties and Syntax
1
Which of the following is the correct syntax for referring the external style sheet?
A)<style src = example.css>
B)<style src = "example.css" >
C)<stylesheet> example.css </stylesheet>
D)<link rel="stylesheet" type="text/css" href="example.css">
A)<style src = example.css>
B)<style src = "example.css" >
C)<stylesheet> example.css </stylesheet>
D)<link rel="stylesheet" type="text/css" href="example.css">
<style src = "example.css" >
2
The property in CSS used to change the---------of an element is -
A)bgcolor
B)color
C)background-color
D)All of the above
A)bgcolor
B)color
C)background-color
D)All of the above
background-color
3
The property in CSS used to change the text-----of an element isSol:-
A)bgcolor
B)color
C)background-color
D)All of the above
A)bgcolor
B)color
C)background-color
D)All of the above
color
4
The CSS property used to control the element's------is -
A)text-style
B)text-size
C)font-size
D)None of the above
A)text-style
B)text-size
C)font-size
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
5
The HTML attribute used to define the inline------is -
A)style
B)styles
C)class
D)None of the above
A)style
B)styles
C)class
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
The HTML attribute used to define the internal style sheet is ------
A)<style>
B)style
C)<link>
D)<script>
A)<style>
B)style
C)<link>
D)<script>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following is the correct syntax to make the background-color of allparagraph elements to yellow?
A)p {background-color : yellow;}
B)p {background-color : #yellow;}
C)all {background-color : yellow;}
D)all p {background-color : #yellow;}
A)p {background-color : yellow;}
B)p {background-color : #yellow;}
C)all {background-color : yellow;}
D)all p {background-color : #yellow;}
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
Which of the following is the correct syntax to display the hyperlinks without any underline?
A)a {text-decoration : underline;}
B)a {decoration : no-underline;}
C)a {text-decoration : none;}
D)None of the above
A)a {text-decoration : underline;}
B)a {decoration : no-underline;}
C)a {text-decoration : none;}
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the following property is used as the shorthand property for the padding properties?
A)padding-left
B)padding-right
C)padding
D)All of the above
A)padding-left
B)padding-right
C)padding
D)All of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
The CSS property used to make the-------is -
A)font-weight : bold
B)weight: bold
C)font: bold
D)style: bold
A)font-weight : bold
B)weight: bold
C)font: bold
D)style: bold
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
Are the negative values allowed in padding property?
A)Yes
B)No
C)Can't say
D)May be
A)Yes
B)No
C)Can't say
D)May be
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following property is used as the shorthand property of marginproperties?
A)margin-left
B)margin-right
C)margin
D)None of the above
A)margin-left
B)margin-right
C)margin
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is used to specify the subscript of text using CSS?
A)vertical-align: sub
B)vertical-align: super
C)vertical-align: subscript
D)None of the above
A)vertical-align: sub
B)vertical-align: super
C)vertical-align: subscript
D)None of the above
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
The-----CSS is also a method to insert style sheets in HTML document. Thismethod mitigates some advantages of style sheets so it is advised to use this method sparingly.
A)CSS
B)inline
C)internal
D)external
A)CSS
B)inline
C)internal
D)external
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
-----style sheet is generally used when you want to make changes on multiple pages. It is ideal for this condition because it facilitates you to change the look of the entire web site by changing just one file.
A)CSS
B)inline
C)internal
D)external
A)CSS
B)inline
C)internal
D)external
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
-----tag is used to display the list in order wise like 1,2 3.. or A,B,C..
A)<meta>
B)<ul>
C)<ol>
D)<map>
A)<meta>
B)<ul>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
17
----tag is used to display the bullet wise list in unordered wise.
A)<meta>
B)<ul>
C)<ol>
D)<map>
A)<meta>
B)<ul>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
-----tag is used to specify the page description ,keyword, author name, it isadditional information about the information.
A)<meta>
B)<ul>
C)<ol>
D)<map>
A)<meta>
B)<ul>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
19
-----tag is used to define the list item.
A)<li>
B)<ul>
C)<ol>
D)<map>
A)<li>
B)<ul>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
-----is used to define the width of border while cellpadding define distance betweencell border and content within it .
A)<cellspacing>
B)<ul>
C)<ol>
D)<map>
A)<cellspacing>
B)<ul>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
cellspacing is used to define the width of border while------define distancebetween cell border and content within it .
A)<cellspacing>
B)<cellpadding>
C)<ol>
D)<map>
A)<cellspacing>
B)<cellpadding>
C)<ol>
D)<map>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
------tag is used to declaring the title or name of the html document.
A)<body>
B)<title>
C)<head>
D)<center>
A)<body>
B)<title>
C)<head>
D)<center>
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck