Home CSS Test Preparation Online Mcqs CSS Test Preparation Online Mcqs CSS Test Preparation Online Mcqs With Answer Start Below 12345678910111213141516171819202122232425Show paginator Hide paginator Question 1 of 25Uncategorized 1. Which of the below is the correct way to set a background image?body {background-image:url(‘paper.gif’);}body {background-image:url(paper.gif);}body {background-image:url(‘paper.gif’)};body {background-image:url(‘paper.gif’)}Question 1 of 25 Loading... Question 2 of 25 2. Which of the following ways below is correct to write a CSS?p {color:red; text-align:center};p {color:red; text-align:center}p {color:red; text-align:center;}p (color:red;text-align:center;)Question 2 of 25 Loading... Question 3 of 25 3. Which of the following statements is TRUE for CSS?Both A and B aboveAn external style sheet can be written in HTMLAn inline style sheet should be used when a single document has a unique styleAn external style sheet is ideal when the style is applied to many pagesQuestion 3 of 25 Loading... Question 4 of 25 4. Block elements can be aligned by setting the left and right margins to “align”?TrueFalseQuestion 4 of 25 Loading... Question 5 of 25 5. The ___________ property specifies the stack order of an element?d-indexz-indexs-indexx-indexQuestion 5 of 25 Loading... Question 6 of 25 6. What is CSS Float?element can be pushed to any directionelement can be pushed to the left to rightallows other element to wrap around an elementboth a and b aboveQuestion 6 of 25 Loading... Question 7 of 25 7. To specify table border in CSS, ____________ property is used?tbl-bordertb-bordertable-borderborderQuestion 7 of 25 Loading... Question 8 of 25 8. Which of the below is the correct way to set a font size?both a and b aboveh2{font-size:200px;}h2{font-size:200%;}h2{font-size:200;}Question 8 of 25 Loading... Question 9 of 25 9. Which of the following property is used to set the opacity of an image?BorderHeightWidthMoz-opacityQuestion 9 of 25 Loading... Question 10 of 25 10. Which of the following property specifies the bottom padding of an element?Padding-leftPadding-bottomPadding-topPadding-rightQuestion 10 of 25 Loading... Question 11 of 25 11. Which of the following statements is/are true?Hiding an element can be done by setting visibility property to “hidden”Hiding an element can be done by setting the display property to “none”Both A and B aboveHiding an element can be done by setting block property to “hidden”Question 11 of 25 Loading... Question 12 of 25 12. The _________ property is mostly used to remove underline from links?text-decorationtext-decotext-transformationtext-transQuestion 12 of 25 Loading... Question 13 of 25 13. Which of the following property of a table element controls the placement of the table caption?Caption-sideBorder-collapseBorder-spacingEmpty-cellsQuestion 13 of 25 Loading... Question 14 of 25 14. The ____________ property specifies which sides of an element other floating elements are not allowed?Both A and B aboveFloatClearClearedQuestion 14 of 25 Loading... Question 15 of 25 15. _________ property can be used to Increase or decrease the space between words?Both b and c abovespaceword-spaceword-spacingQuestion 15 of 25 Loading... Question 16 of 25 16. The font-size value can be an absolute, or relative size?TrueFalseQuestion 16 of 25 Loading... Question 17 of 25 17. Which of the following property specifies the top margin of an element?MarginMargin-topMargin-leftMargin-bottomQuestion 17 of 25 Loading... Question 18 of 25 18. A navigation bar needs standard HTML as a base?TrueFalseQuestion 18 of 25 Loading... Question 19 of 25 19. The ____________ selector is used to specify a style for a single, unique element?ClassIdBitTextQuestion 19 of 25 Loading... Question 20 of 25 20. Which of the following property changes the style of bottom border?Border-right-styleBorder-bottom-styleBorder-left-styleBorder-top-styleQuestion 20 of 25 Loading... Question 21 of 25Computer General 21. Which of the following property is used to add or subtract space between the words of a sentence?Letter-spacingDirectionColorWord-spacingQuestion 21 of 25 Loading... Question 22 of 25 22. Which of the following is a component of CSS style rule?PropertySelectorValueAll of the aboveQuestion 22 of 25 Loading... Question 23 of 25 23. Which of the following defines 1% of viewport height?vhvminpxvwQuestion 23 of 25 Loading... Question 24 of 25 24. Which of the following property is used to set the background color of an element?Background-repeatBackground-imageBackground-colorBackground-positionQuestion 24 of 25 Loading... Question 25 of 25 25. Which of the following selector selects all paragraph elements whose lang attribute contains values that are exactly "fr", or begin with "fr-"?p[lang]p[lang~="fr"]p[lang|="fr"]p[lang="fr"]Question 25 of 25 Loading... Loading... Related Study Posts:ASF Written Test Preparation Online McqsOnline ECAT Test Preparation McqsFPSC SST Test Preparation Mcqs OnlinePPSC Lecturer Test Preparation Online McqsTESCO Jobs Online NTS Test Preparation McqsLecturer Test KPPSC Preparation Mcqs OnlineFIA ASI Sub Inspectors Job 2024 OTS Test Preparation…SPSC SST Test Preparation Mcqs Online with SyllabusFPSC Test Preparation Mcqs Online Subject WiseIB Pakistan NTS Jobs 2024 Online Test Preparation Mcqs