About CSS
Following are some of the multiple choice questions on the CSS with answers that will help the students in developing their knowledge.
CSS MCQ
1. If we want define style for an unique element, then which css selector will we use ?
2. By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code ?
5. Using Responsive Web Design (RWD) ensures that site will display correctly in all desktop browsers and mobile devices.You used a grid-based layout and resize-able images, which is another RWD technique that you can use in responsive design?
6. If we want to wrap a block of text around an image, which css property will we use ?
8. When we write <img src="img.png">, what "img.png" inside double quote implies?
11. Which css property you will use if you want to add some margin between a DIV's border and its inner text ?
13. John wants the name of his book to appear in search results for Google. Where should this information beplaced within his webpage?
18. Jerry wants to insert a line break into his webpage. Which code should he use?
20. Which element is used in the section on an HTML page, if we want to use an external style sheet file to decorate the page ?
24. Select the code below that uses CSS to configure a background color of #000000 for a web page.
25. A __________ is a protection for any published work that helps to prevent that work from being used without prior authorization.
26. ____________ is a term used to describe how page elements are placed on the screen. For example, elements can be positioned left, right, or center.
27. A shorthand property used to specify the individual border properties: border-width, border-style and border-color.
32. Where in the HTML document is the correct location to insert code to link to your external CSS?
40. Will this code works?
h1 { border-top: 10px dashed violet; border-top: 25cm double green; border-top: 60px white inset; border-top: 30pt solid red; }