CSS Interview Questions - Set 1

CSS Interview Questions

Next →

This page consists of CSS interview questions and answers.

Q1: What is CSS?

CSS or Cascading Style Sheet is a styling language that we use to style web pages.

Q2: What is the origin of CSS?

The origin of CSS is SGML or Standard Generalized Markup Language.

Q3: List some of the versions of CSS?

Some of the versions of CSS is listed below.

  • CSS 1
  • CSS 2
  • CSS 2.1
  • CSS 3

Q4: List some of the ways of integrating CSS in a web page?

There are three ways we can integrate CSS to style web pages.

  • Inline method
  • Embedded method
  • External method

Click here to learn more.

Q5: What are some of the advantages of CSS?

Following are some of the advantages of CSS.

Faster page load: When we use CSS to style our page we don't have to use HTML attributes. Thus reducing the page size and helping to load the page faster.

Easy maintenance: Defining a global CSS style helps in applying new changes quickly and easily thus provides easy maintenance of the website style.

Platform independent: CSS is platform independent and works on all latest browsers.

Compatibility with different devices: We can write CSS style rules to render a web page differently in different devices.

Reusability: We can write CSS style rules once in a stylesheet file and then use it to style many web pages.

Q6: What are CSS frameworks?

CSS frameworks are preplanned and web standard compliant toolkit for styling web pages.

Example: Twitter Bootstrap, Ionic, Foundation are some of the CSS frameworks that can be used to style websites.

Q7: Who maintains CSS?

W3C or World Wide Web Consortium maintains the CSS specifications.

Q8: What is RWD?

RWD stands for Responsive Web Design. It is a technique of designing websites that displays perfectly on multiple devices like desktops, laptops, tablets, mobile phones etc.

Q9: What is W3C?

The World Wide Web Consortium or W3C is the main international standards organization for the World Wide Web. It was founded by Tim Berners-Lee on 1st October 1994.

Q10: What is the file extension for CSS?

Stylesheet files are saved with .css extension.

Next →