Programming Interview Question for CSS



      Popular CSS Interview Questions And Answers



1.What is CSS?

CSS outline the style of an HTML web page. it is a language by which we can set the behavior of an HTML webpage. It describes how the HTML content will be shown on screen.
CSS controls the layout of several HTML web pages.CSS is referred to as the Cascading Style Sheets.

2. Name all the modules which are used in the current version of CSS.

There are several modules in CSS as stated below.
  • Selector
  • Box Model
  • Background and Borders 
  • Text Effects 
  • 2D/3D Transformation
  • Animations 
  • Multiple Column Layout
  • User Interface
3. Cite different types of CSS.

There are three type of CSS as mentioned below
  •  External-these are written is separates files.
  • Internal-These are cited in the web page code document.
  • Inline-These are written right next to the text
4. Why is the external style sheet useful?

External style sheet very useful as we write all the styling codes in a single file and us can be used anywhere by just referencing the link of that external file, then the changes can also be observed on the webpage. Sowe can say that it is very useful and it makes your work easy while working on large files.

5. Define CSS image scripts.

CSS image script is a group of images that is placed into one image. It reduces the load time and request number to the server while projecting multiple images into a single web page.

6.Expalin the term Responsive web design.

It is a method in which we design and develop a web page according to the user activities and conditions which are based on various components like the size of the screen, portability of the web page on the different devices, etc.
Hence it is done by using different flexible layouts and grids.

7.Hoe do we make a rounded corner by using CSS?

We can make a rounded corner by using the property "border-radius". We can apply this property to any element.

8.How can we add icons to the web page?

We can add icons to the HTML webpage by using an icon library like font-awesome.
We have to add the name of the given icon class to any inline HTML element . Icons in the icon libraries are scalable vectors that can be customized with CSS.

9.What is navigation bars in CSS.?

By using navigation bars we can male an ordinary HTML page into a user-specific and more dynamic web page.
Basically, it is a list of links, hence use of <ul> and <li> elements makes the perfect sense.

10.Defien 'important' declaration used in CSS.

The important declaration is defined as that declaration that is having more important than the normal declaration.
While executing, these declarations override the declaration which is having less importance.








Comments