Thursday 26 April 2018

CSS3 Interview Questions

Question1. What Is Wrapping In CSS3?

Answer : Wrapping is a vital property for proper display of contents in web pages. If wrapping is disabled then the user could not display and view long lines that goes outside the window boundary and thus becomes useless.

Question2. What Is The Syntax Of Opacity In Css3?

Answer : style="opacity:0.4;filter:alpha(opacity=40)"
Firefox uses the property opacity:x for transparency, while IE uses filter:alpha (opacity=x).

Question3. How Do You Manage The Complete Site In Center Of The Browser, Which Is Completely Using Divs Using The Help Of Css2 Or Css3?

Answer : In CSS file
1. body{width:100%;}
2. Create a div tag and assign a class, say 'container' and place all your content in this div tag.
3. Assign properties to this class in CSS file
container{width:777px; margin:auto;}

Question4. How Is Multi-column Feature Used In Css3?

Answer : By using the Multi-Column feature of CSS3 the web designers can get their output in multiple columns with definitions defined for each column like column-width, column-count.

Question5. What Is The Syntax Of Word Wrap In Css3?

Answer :The general syntax word-wrap property of CSS3 is as follows:
word-wrap: normal| break-word
The default initial value is normal in the above syntax.

Question6. How Flexibility Is Achieved More In Css3?

Answer : Flexibility achieved is in greater ratio in CSS3 because of the feature of handling multiple style sheets in CSS3 and because of the modularized approach of CSS3.

Question7. What Are The Values That Can Be Taken By Property White-space Of Css3?

Answer : The five values that can be taken by property white-space of CSS3 are normal, pre, no wrap, pre-wrap and pre-line.

Question8. What Are Cascading Style Sheets?

Answer : Cascading style sheets help the designer in various ways. It primarily helps to design style sheets for content and HTML pages. It can be applied to any XML document or markup language.

Question9. Explain About Some Of The Features Of Css?

Answer : Some of the features used by CSS are to define a layout, colors, fonts, etc. It separates the content from the design part which makes the content much more visible thereby improving productivity of the entire process. It can make the same page appear in different formats.

Question10. Explain About The Rules Present In Style Sheets?

Answer : A huge list of rules is defined for style sheets. Each rule consists of selectors and declaration block. A declaration block consists of declarations which can be defined and separated by using a semicolon within curly braces. Also each declaration consists of a colon, a property and a semicolon.

Question11. Explain About The Hover Element?

Answer : A hover element is activated when the user moves a pointer over the area where HTML coding is defined. This style is being extensively used for online advertising. It is appended to #elementid:hover.

Question12. State Some Of The Uses Of Css?

Answer : CSS offers many possibilities to a designer and developer. Some of them are
1) Moving of the entire style sheet coding to a separate external folder.
2) Repetition and code reuse features make CSS rich.
3) Presentation and structure are made different by CSS etc.

Question13. State The Different Type Of Author Styles?

Answer : A web page author, developer, designer, etc can describe styles in three different forms they are
1) External style sheets
2) Embedded style
3) Inline styles
4) Local and default style sheet.
A default style sheet consists of the style imparted by the browser which the user is accessing for the information.

Question14. What Are The Main Goals Of Applying Style Sheets?

Answer : The main use of style sheet is to give the user a greater degree of control over his presentation. If the user does not like a certain font he can change it with flexibility without any difficulty.
Also a developer can minimize the effects which a browser can have on the application or the text part of the webpage.
Control over the entire web page without any external influences, separation of the page from the HTML code part.

Question15. Explain About Css1?

Answer : W3C recommended adoption of CSS1in 1996. Some of the capabilities and features present in CSS1 are as follows.
1) Font properties
2) Background colors, text colors, etc
3) Spacing between text, words, etc
4) Tables, images alignment
5) Border, margin, padding and positioning of elements
6) Attributes are uniquely identified and classified generically.

More about CSS3:

No comments:

Post a Comment