TEST-5 CSS TEST-1

Test Date: November 18, 2023

1. What is the primary purpose of CSS in web development, and how does it enhance the presentation of HTML documents?

2. Explain the basic syntax of a CSS rule and provide an example.

3. Differentiate between the various CSS selectors, such as class selectors, ID selectors, and element selectors. When would you use each?

4. Describe the process of adding CSS styles to an HTML document. What are the different methods available?

5. How do you use comments in CSS, and what is their significance in maintaining code?

6. Discuss the ways CSS handles colors. Provide examples of using color names, hex codes, and RGB values.

7. Explain the CSS properties related to backgrounds, and how can you add a background image to an element?

8. Outline the CSS properties for setting borders around elements. Include examples of using different border styles and widths.

9. Discuss the concepts of margins and padding in CSS. How do they influence the layout of elements on a webpage?

10. Describe the CSS properties used to control the height and width of elements. How can you specify dimensions in pixels, percentages, and other units?








SCORE:9.5/10

Previous | Next

Comments

Popular posts from this blog

Python program to sum up the Salary when the Name and Age matches with subsequent rows.

Automation using selenium and python/java interview question to order a product in e commerce website.