1) What is CSS?
Ans)The full form of CSS is Cascading Style Sheets. It is a styling language which is simple enough for HTML elements. It is popular in web designing, and its application is common in XHTML also.
2) What is the origin of CSS ?
Ans) Standard Generalized Markup Language marked the beginning of style sheets in 1980s.
3) What are the different variations of CSS ?
Ans)Different css variations are
4) What are the limitations of CSS ?
Ans) Limitations are:
5) What are the advantages of CSS ?
Ans)Advantages are:
6) What are CSS frameworks?
Ans) It is a pre-planned libraries, which allows easier and more standards-compliant webpage styling, using CSS language.
7) How block elements can be centered with CSS1?
Ans) Block level elements can be centered by:
The margin-left and margin-right properties can be set to some explicit value:
8) In how many ways can a CSS be integrated as a web page?
Ans) CSS can be integrated in three ways:
9) Who maintains the CSS specifications?
Ans)World Wide Web Consortium maintains the CSS specifications.
10)What benefits and demerits do External Style Sheets have?
Ans) Benefits:
11) What does CSS selector mean?
Ans) A string equivalent of HTML elements by which declarations or a set of it, is declared and is a link that can be referred for linking HTML and Style sheet is CSS selector.
12) Discuss the merits and demerits of Embedded Style Sheets?
Merits of Embedded Style Sheets:
13) Differentiate logical tags from physical tags?
Ans)Differences are:
14) Enlist the media types CSS allows?
Ans) The design and customization of documents are rendered by media. By applying media control over the external style
sheets, they can be retrieved and used by loading it from the network.
15) Differentiate Style Sheet concept from HTML?
Ans) While HTML provides easy structure method, it lacks styling, unlike Style sheets. Moreover, style sheets have better browser capabilities and formatting options.
16) Comment on the Case-sensitivity of CSS ?
Ans) Although, there are no case-sensitivity of CSS, nevertheless font families, URL’s of images, etc is. Only when XML declarations along with XHTML DOCTYPE are being used on the page, CSS is case -sensitive.
17) Describe ‘ruleset’?
Ans) Ruleset : Selectors can be attached to other selectors to be identified by ruleset. It has two parts: 1.Selector, e.g. R and 2.declaration {text-indent: 11pt}
18) Define Declaration block?
A catalog of directions within braces consisting of property, colon and value is called declaration block. e.g.: [property 1: value 3]
19) Enlist the various fonts’ attributes?
Ans) They are:
20) Why is it easy to insert a file by importing it?
Ans)Importing enables combining external sheets to be inserted in many sheets. Different files and sheets can be used to have different functions. Syntax:
56) Why imported is an easy way to insert the file?
57) What is the difference between class selectors and id selectors?
Ans) An overall block is given to class selector while id selectors take only a single element differing from other elements.
58) What is RWD?
Ans) RWD stands for Responsive Web Design. This technique is used to display the designed page perfectly on every screen size and device. For example: Mobile, Tablet, desktop, laptop etc. You don't need to create a different page for each device.
59) What are the benefits of CSS sprites?
Ans) If a web page has large no. of images that takes a longer time to load because each image separately sends out an http request. The concept of CSS sprites is used to reduce the loading time for a web page because it combines the various small images into one image. It reduces the number of http requests and hence the loading time.
60) What is the CSS Box model and what are its elements?
Ans)The CSS box model is used to define the design and layout of elements of CSS.
The elements are:
61) How to restore the default property value using CSS?
Ans)In short, there is no easy way to restore to default values to whatever a browser uses. The closest option is to use the 'initial' property value, which will restore the default CSS values, rather than the browser's default styles.
62) Explain the difference between visibility: hidden and display: none?
Ans)Differences are:
63) What do you understand by W3C?
Ans) W3C stands for World Wide Web Consortium.
64) What is universal selector?
Ans)Rather than selecting elements of a specific type, the universal selector quite simply matches the name of any element type −
65) What is Descendant Selector?
66) Can you make a class selector particular to an element type?
Ans) You can make it a bit more particular. For example −
67) What is a child selector?
68) What is id selector?
Ans)You can define style rules based on the id attribute of the elements. All the elements having that id will be formatted according to the defined rule. #black { color: #000000; } This rule renders the content in black for every element with id attribute set to black in our document.
69) Can you make a id selector particular to an element type?
70) How to select all paragraph elements with a lang attribute?
71) How to select all paragraph elements whose lang attribute has a value of exactly "fr"?
Ans) p[lang="fr"] - Selects all paragraph elements whose lang attribute has a value of exactly "fr".
72) How to select all paragraph elements whose lang attribute contains the word "fr"?
Ans) p[lang~="fr"] - Selects all paragraph elements whose lang attribute contains the word "fr"
73) How to select all paragraph elements whose lang attribute contains values that are exactly "en", or begin with "en-"?
Ans) p[lang|="en"] - Selects all paragraph elements whose lang attribute contains values that are exactly "en", or begin with "en-".
74)How CSS style overriding works?
75) What is the purpose of % measurement unit?
Ans)% - Defines a measurement as a percentage relative to another value, typically an enclosing element.
76)What is the purpose of cm measurement unit?
Ans)cm − Defines a measurement in centimeters.
77) What is the purpose of em measurement unit?
Ans) em − A relative measurement for the height of a font in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each "em" unit would be 12pt; thus, 2em would be 24pt.
78) What is the purpose of ex measurement unit?
Ans) ex − This value defines a measurement relative to a font's x-height. The x-height is determined by the height of the font's lowercase letter.
79) What is the purpose of in measurement unit?
80) What is the purpose of pc measurement unit?
Ans) pc − Defines a measurement in picas. A pica is equivalent to 12 points; thus, there are 6 picas per inch.
81) What is the purpose of pt measurement unit?
Ans) pt − Defines a measurement in points. A point is defined as 1/72nd of an inch.
82) What is the purpose of px measurement unit?
Ans) px − Defines a measurement in screen pixels.
83) What is the purpose of vh measurement unit?
84) What is the purpose of vw measurement unit?
Ans) vw − 1% of viewport width.
85) What is the purpose of vmin measurement unit?
Ans)vmin 1vw or 1vh, whichever is smaller.
86)What are browser safe colors?
Ans) There is the list of 216 colors which are supposed to be most safe and computer independent colors. These colors vary from hexa code 000000 to FFFFFF. These colors are safe to use because they ensure that all computers would display the colors correctly when running a 256 color palette.
87) Which property is used to set the background color of an element?
88) Which property is used to set the background image of an element?
Ans) The background-image property is used to set the background image of an element.
89) Which property is used to control the repetition of an image in the background?
90) Which property is used to control the position of an image in the background?
Ans) The background-attachment property is used to control the scrolling of an image in the background.
91) Which property is used as a shorthand to specify a number of other background properties?
Ans) The background property is used as a shorthand to specify a number of other background properties.
92) Which property is used to change the face of a font?
Ans) The font-family property is used to change the face of a font.
93) Which property is used to make a font italic or oblique?
Ans) The font-style property is used to make a font italic or oblique.
94) Which property is used to create a small-caps effect?
Ans) The font-variant property is used to create a small-caps effect.
95) Which property is used to increase or decrease how bold or light a font appears?
Ans) The font-weight property is used to increase or decrease how bold or light a font appears.
96) Which property is used to set the color of a text?
Ans) The color property is used to set the color of a text.
97) Which property is used to set the text direction?
Ans) The direction property is used to set the text direction.
98) Which property is used to add or subtract space between the letters that make up a word?
Ans) The letter-spacing property is used to add or subtract space between the letters that make up a word.
99) Which property is used to control the flow and formatting of text?
Ans) The white-space property is used to control the flow and formatting of text
100) Which property of a hyperlink signifies an element that currently has the user's mouse pointer hovering over it?
Ans) The :hover signifies an element that currently has the user's mouse pointer hovering over it.