Online Shiksha

By Savita S. More

MCQ on Introduction to CSS

MCQ on Introduction to CSS – Test your knowledge with these multiple-choice questions covering the fundamentals of CSS, including selectors, properties, and styling techniques. Perfect for reviewing your understanding of CSS basics!”

 

What is the primary purpose of CSS in web development?

  1. A) To structure web content
  2. B) To enhance the visual presentation of web pages
  3. C) To define interactive elements
  4. D) To handle server-side operations

Answer: B) To enhance the visual presentation of web pages

 

Which type of CSS is primarily used when styling multiple web pages with consistent design?

  1. A) External CSS
  2. B) Internal CSS
  3. C) Inline CSS
  4. D) Embedded CSS

Answer: A) External CSS

 

What property in CSS is used to change the color of text?

  1. A) text-color
  2. B) font-color
  3. C) color
  4. D) text-style

Answer: C) color

 

Which property can be used to set the spacing between letters in text?

  1. A) letter-spacing
  2. B) word-spacing
  3. C) text-spacing
  4. D) character-spacing

Answer: A) letter-spacing

 

What property is used to set the alignment of text within an HTML element?

  1. A) text-align
  2. B) align-text
  3. C) text-justify
  4. D) align-content

Answer: A) text-align

 

Which property is used to specify the space between two lines of text?

  1. A) line-spacing
  2. B) text-spacing
  3. C) line-height
  4. D) text-height

Answer: C) line-height

 

How can you add a background image to a webpage using CSS?

  1. A) Using the background-image property
  2. B) Using the image-background property
  3. C) Using the background property
  4. D) Using the image property

Answer: A) Using the background-image property

 

What property is used to set the width of an image border?

  1. A) border-size
  2. B) image-border-width
  3. C) border-width
  4. D) image-width

Answer: C) border-width

 

Which CSS property is used to control the transparency of an image?

  1. A) transparency
  2. B) opacity
  3. C) visibility
  4. D) clear

Answer: B) opacity

 

What is the primary advantage of using External CSS over Inline CSS?

  1. A) Faster loading time
  2. B) Easier maintenance
  3. C) Greater specificity
  4. D) Simpler implementation

Answer: B) Easier maintenance

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

online-shiksha © 2023 Frontier Theme