0% found this document useful (0 votes)
3 views2 pages

CSS Interview Questions

Uploaded by

mynamrajendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

CSS Interview Questions

Uploaded by

mynamrajendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1)what is CSS?

Cascading styling sheet known as CSS is simply designed language to intended to


simplify the process of making web pages presentable . CSS allows you to apply
styles to web pages.

more importantly , CSS enables you to do this independent of the HTML that makes
up web page. it provides powerful control over the presentation of an HTML
document.
___________________________________________________________________________________
_______________________________________________________________________________
2)why do we use CSS?
saves time ,
Easy Maintenance, Search Engines(clean coding technique means search engines won't
have to struggle to "read" its content.
Superior Styles to HTML : CSS has much wide array of attributes than HTML.
Offline Browsing.
___________________________________________________________________________________
______________________________________________________________________________
3)what are the advantages of CSS?
we can use styles multiple times because CSS will automatically apply the requires
styles.
main advantage is one instruction can control several areas which are advantageous.
few lines of programming.
simplifies the websites but also maintenance.
It reduces file transfer size.
___________________________________________________________________________________
______________________________________________________________________________
4) what are disadvantages of CSS?
CSS,CSS1 upto CSS3 , result in creation confusion among web browsers.
developer need to test for running program across multiple browsers.

These are scarcity of security.


a similar changes will effect the browser.
___________________________________________________________________________________
_____________________________________________________________________________

5)list of CSS frameworks


Bootstrap
Foundation
Bulma
UIkit
Materialize
Pure
___________________________________________________________________________________
_______________________________________________________________________________
6) Syntax of CSS
selector{
property: value;
}
___________________________________________________________________________________
_______________________________________________________________________________
7) How many can we add CSS to HTML
3 ways
inline:- CSS contains the CSS property in the body section attached with the
element known as inline CSS.
Internal:-This can be used when a single HTML document must be styled
uniquely. The CSS ruleset should be within the HTML file in the head section.
External:- External contain separate CSS file which contains only style
property with the help of tag attributes(for Example class, id, heading, body,
div).CSS property is written in a separate file with .css extension and should be
linked to the HTML document using link tag.
___________________________________________________________________________________
______________________________________________________________________________
8)Which type of CSS holds the highest priority?
inline 1st because in the internal and external style sheets are overridden by
inline styles.
internal 2nd , external 3rd
___________________________________________________________________________________
_____________________________________________________________________________
9)What are CSS selectors?
element selector ,id selector, class selector
element_name{
}
#id_name{
}
.class_name{
}
___________________________________________________________________________________
______________________________________________________________________________
10)what are HSL colors?
HSL stands for Hue, Saturation, Lightness
range for Hue is 0 to 360 , 0 represents red, 120 represents green and 240
represents blue
saturation range is 0% to 100%
lightness range is 0%(black) to 100% (white)

syntax:-
h1{
color: hsl(H,S,L);
}
___________________________________________________________________________________
_____________________________________________________________________________

You might also like