February 17, 2018

Sreekanth B

CSS3 Advanced Interview Questions And Answers

CSS3 IS THE LATEST STANDARD FOR CSS.

Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g., fonts, colors, spacing) to
Web documents.

Along with HTML and JavaScript, CSS is a cornerstone technology used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications.

CSS has a simple syntax and uses a number of English keywords to specify the names of various style properties.

A style sheet consists of a list of rules. Each rule or rule-set consists of one or more selectors, and a declaration block.

In simple terms CSS is what allows programmers change the look of a website.

What Is Wrapping In Css3?

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.

Explain About Some Of The Features Of Css?

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.

Explain About The Rules Present In Style Sheets?

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.


Explain About The Hover Element?

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.

State Some Of The Uses Of Css?

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.

What Is The Default Value Of “position” Attribute In Css?

Default value Is “static “.

What Are The Values Of “position” Attribute In Css?

Possible values are static. relative, absolute, fixed. Inherit.

State The Different Type Of Author Styles?

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.

What Are The Main Goals Of Applying Style Sheets?

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.

What Is The Syntax Of Opacity In Css3?

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

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

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;}

How Is Multi-column Feature Used In Css3?

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.

What Is The Syntax Of Word Wrap In Css3?

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.

How Flexibility Is Achieved More In Css3?

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.

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

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

What Are Cascading Style Sheets?

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.

Explain About Css1?

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.

What Are The Additional Features Which Were Present In Css2 Compared To Css1?

Many of the new features were present in CSS2 some of them are as follows.
1) Positioning of elements will be according to the relative, fixed and the absolute positioning.
2) Inclusion of large number of media functions.
3) Shadows, bidirectional support for text and aural style sheets.

Explain About Css Filter?

CSS filter solves designers and coders difficulties. With the help of these filters one can write entirely different code or modify the existing design patterns so that browsers receive CSS specifications which they support, thereby not allowing the browsers to make or create any unnecessary changes.

Explain About Internet Explorer Box Model Bug?

Designers had a very tough time dealing with this bug, because it will not display box widths appropriately on the webpage. It displayed the block to be narrow in size. This bug can be rectified by using CSS filter and hacks. Also correct usage and documentation of XHTML can solve the problems.

Explain About Vertical Control Limitation?

Vertical control limitations are always a nightmare for a designer. Horizontal positioning of text or element is always easy but vertically positioning an element always leads to convoluted and impossible tasks. CSS has unsupported rules for vertical placement of elements.

Explain About Absence Of Expressions?

CSS currently does not have the ability to specify property values as simple expressions. For example if you want to calculate the size of all the columns but you have a restriction on the sum of all columns. This problem has been solved by many browsers by proprietary expressions which did the job well.

What Is Css Rule ‘ruleset’?

There are two types of CSS rules: ruleset and at-rule. Ruleset identifies selector or selectors and declares style which is to be attached to that selector or selectors. For example P {text-indent: 10pt) is a CSS rule. CSS rulesets consist of two parts: selector e.g. P and declaration. e.g. {text-indent: 10pt)
P {text-indent: 10pt) - CSS rule (ruleset)
{text-indent: 10pt) - CSS declaration
text-indent - CSS property
10pt-CSS value

Display And Visibility Properties Are Used To Hide And Show Elements In Any Page. Then How They Are Different From Each Other?

As said both the properties are used to hide and Show elements but they are different in the way they both work visibility property, set to hidden will still occupy the space in the layout but display:none does not take up the space in the page

How To Page Break After An Html Element In Css?

Use following code snippet
<p style=”page-break-after: always’>Place your text</p>

After above code. the rest content will appear in the next page. (It will not be visible as next page in browser but on the printer and in Print Preview, you will see them as next page)

Explain About Lack Of Orthogonality?

Lack of orthogonality explains about the various multiple jobs which are either undefined correctly for a specific application or used multiple times for the same job. CSS defines that internal elements of a table will not have margins so usage of border spacing is appropriate which leads to confusion.

Explain About The Ease Of Maintenance With Css.
An effective style sheet has effective use of inheritance and cascading style sheets. When changes are applied to a single element of this global style sheet every element of the web page changes. This made the maintenance easy because here we can change the style of the whole page by effecting a change to a single element.

Explain About Float Containment?

CSS does not support float elements as it can cause overflow of the elements. Floats also tend to vary according to the web browser resolution and size but positions do not. There are some multiple properties which can define about float but they have their own limitations.

State Some Limitations Of Style Sheets?

Style sheets do have its own share of limitations some of them are as follows: -

1) Inconsistent browser support
2) Vertical control limitations
3) Margin collapsing, float containment, control of element shapes, etc
4) Lack of column declaration and variables are some of the limitations present in CSS.

What Is Id Selector?

ID selector is an individually identified (named) selector to which a specific style is declared. Using the ID atthbute the declared style can then be associated with one and only one HTML element per document as to differentiate it from all other elements ID selectors are created by a character# followed by the selectors name. The name can contain characters a-z. A-Z. digits 0-9. period. hyphen. escaped characters, Unicode characters 161 -255. as well as any Unicode character as a numeric code, however they cannot start with a dash or a digit.

#abc 123 {color red: background: black)

This and only this element can be identified as abcl23.

Subscribe to get more Posts :

1 comments:

Write comments
tom star
AUTHOR
May 7, 2018 at 4:42 PM delete

I ‘d mention that most of us visitors are endowed to exist in a fabulous place with very many wonderful individuals with very helpful things.
Python Training in Bangalore

Reply
avatar