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 following property specifies the bottom padding of an element?Padding-leftPadding-rightPadding-bottomPadding-topQuestion 1 of 25 Loading... Question 2 of 25 2. The _________ property is mostly used to remove underline from links?text-decotext-decorationtext-transformationtext-transQuestion 2 of 25 Loading... Question 3 of 25 3. Which of the following statements is TRUE for CSS?An inline style sheet should be used when a single document has a unique styleAn external style sheet can be written in HTMLAn external style sheet is ideal when the style is applied to many pagesBoth A and B aboveQuestion 3 of 25 Loading... Question 4 of 25 4. What is CSS Float?allows other element to wrap around an elementboth a and b aboveelement can be pushed to the left to rightelement can be pushed to any directionQuestion 4 of 25 Loading... Question 5 of 25 5. 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 5 of 25 Loading... Question 6 of 25 6. _________ property can be used to Increase or decrease the space between words?word-spacespaceBoth b and c aboveword-spacingQuestion 6 of 25 Loading... Question 7 of 25 7. The ___________ property specifies the stack order of an element?d-indexs-indexx-indexz-indexQuestion 7 of 25 Loading... Question 8 of 25 8. 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 8 of 25 Loading... Question 9 of 25 9. The ____________ selector is used to specify a style for a single, unique element?TextIdClassBitQuestion 9 of 25 Loading... Question 10 of 25 10. Which of the following property changes the style of bottom border?Border-right-styleBorder-top-styleBorder-left-styleBorder-bottom-styleQuestion 10 of 25 Loading... Question 11 of 25 11. Which of the following property specifies the top margin of an element?MarginMargin-bottomMargin-leftMargin-topQuestion 11 of 25 Loading... Question 12 of 25 12. To specify table border in CSS, ____________ property is used?tbl-bordertb-bordertable-borderborderQuestion 12 of 25 Loading... Question 13 of 25 13. Block elements can be aligned by setting the left and right margins to “align”?FalseTrueQuestion 13 of 25 Loading... Question 14 of 25 14. The ____________ property specifies which sides of an element other floating elements are not allowed?ClearedFloatClearBoth A and B aboveQuestion 14 of 25 Loading... Question 15 of 25 15. Which of the following statements is/are true?Hiding an element can be done by setting the display property to “none”Hiding an element can be done by setting visibility property to “hidden”Hiding an element can be done by setting block property to “hidden”Both A and B aboveQuestion 15 of 25 Loading... Question 16 of 25 16. A navigation bar needs standard HTML as a base?FalseTrueQuestion 16 of 25 Loading... Question 17 of 25 17. The font-size value can be an absolute, or relative size?TrueFalseQuestion 17 of 25 Loading... Question 18 of 25 18. Which of the below is the correct way to set a font size?h2{font-size:200;}both a and b aboveh2{font-size:200px;}h2{font-size:200%;}Question 18 of 25 Loading... Question 19 of 25 19. Which of the following property is used to set the opacity of an image?WidthHeightMoz-opacityBorderQuestion 19 of 25 Loading... Question 20 of 25 20. Which of the following property of a table element controls the placement of the table caption?Caption-sideBorder-spacingBorder-collapseEmpty-cellsQuestion 20 of 25 Loading... Question 21 of 25Computer General 21. Which of the following defines 1% of viewport height?pxvhvminvwQuestion 21 of 25 Loading... Question 22 of 25 22. Which of the following property is used to set the background color of an element?Background-positionBackground-repeatBackground-colorBackground-imageQuestion 22 of 25 Loading... Question 23 of 25 23. Which of the following property is used to add or subtract space between the words of a sentence?DirectionLetter-spacingColorWord-spacingQuestion 23 of 25 Loading... Question 24 of 25 24. Which of the following is a component of CSS style rule?All of the aboveSelectorValuePropertyQuestion 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 2025 OTS Test Preparation…SPSC SST Test Preparation Mcqs Online with SyllabusFPSC Test Preparation Mcqs Online Subject WiseIB Pakistan NTS Jobs 2025 Online Test Preparation Mcqs