Top 350+ Solved Web Technology MCQ Questions Answer
Q. To define a style for special types of elements, add a-----attribute is apply to theelement
a. color
b. font-family
c. font -size`
d. class
Q. -------are used to explain the code, and may help when you edit the source code ata later date.
a. color
b. font-family
c. font -size`
d. comments
Q. ------stands for -
a. Cascade style sheets
b. Color and style sheets
c. Cascading style sheets
d. None of the above
Q. 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">
Q. The property in CSS used to change the---------of an element is -
a. bgcolor
b. color
c. background-color
d. All of the above
Q. 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
Q. The CSS property used to control the element's------is -
a. text-style
b. text-size
c. font-size
d. None of the above
Q. The HTML attribute used to define the inline------is -
a. style
b. styles
c. class
d. None of the above
Q. The HTML attribute used to define the internal style sheet is ------
a. <style>
b. style
c. <link>
d. <script>
Q. Which of the following CSS property is used to set the background image of anelement?
a. background-attachment
b. background-image
c. background-color
d. None of the above
Q. 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;}
Q. Which of the following is the correct syntax to display the hyperlinks without anyunderline?
a. a {text-decoration : underline;}
b. a {decoration : no-underline;}
c. a {text-decoration : none;}
d. None of the above
Q. Which of the following property is used as the shorthand property for the paddingproperties?
a. padding-left
b. padding-right
c. padding
d. All of the above
Q. The CSS property used to make the-------is -
a. font-weight : bold
b. weight: bold
c. font: bold
d. style: bold