Cascading Style Sheets

interview questions of dot net

Posted on

Qu – What are Cascading style sheets?

Cascading style sheets(CSS) collect and organize all of the formatting information applied to HTML elements on a Web form. Because they keep this information in a single location, style sheets make it easy to adjust the appearance of Web applications.

 

Qu – What is the difference between System.String and System.Text.StringBuilder classes?

System.String is immutable.
System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

 

Qu – What are different types of Assemblies?

  • Single file and multi file assembly.
  • Assemblies can be static or dynamic.
  • Private assemblies and shared assemblies.

 

Qu – What is Delegates?

Delegates are a type-safe, object-oriented implementation of function pointers and are used in many situations where a component needs to call back to the component that is using it. Delegates are generally used as basis of events, which allow any delegate to easily be registered for as event.

 

Posted By-: Vissicomp Technology Pvt. Ltd.

Website -: http://www.vissicomp.com

 

 

Qu.) What is CSS? Explain inline and embedded CSS.

Posted on

Ans.)   CSS stands for Cascading Style Sheets

 

Styles define how to display HTML elements

Styles were added to HTML 4.0 to solve a problem

External Style Sheetscan save a lot of work

External Style Sheets are stored in CSS files

 

 

Inline Styles

An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly.

To use inline styles you use the style attribute in the relevant tag. The style attribute can contain any CSS property. The example shows how to change the color and the left margin of a paragraph:

 

<p style=”color:sienna;margin-left:20px”>This is a paragraph.</p>

 

 

Internal or Embedded Style Sheet

An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section of an HTML page, by using the <style> tag, like this:

<head> <style> hr {color:sienna;} p {margin-left:20px;} body {background-image:url(“images/back40.gif”);} </style> </head>

 

Posted By-: Vissicomp Technology Pvt. Ltd.

Website -: http://www.vissicomp.com