CSS Interview Questions

Category: CSS2 Questions    |    6 views    |    2 Comments
Question: Can it is possible to combine multiple sheets into one ?
Answer:
Yes it is possible to combine multiple sheets in one to combine multiple/partial style sheets into one set the TITLE attribute taking one and the same value to the LINK element. The combined style will apply as a preferred style to under stand it we take a example.
<LINK REL=Stylesheet HREF=”style1.css” TITLE=”dotnetquestion”>
<LINK REL=Stylesheet HREF=”style2.css” TITLE=”dotnetquestion”>
<LINK REL=Stylesheet HREF=”style3.css” TITLE=”dotnetquestion”> .

Question: Style Sheets Can Save a Lot of Work
Answer:
Enforcing data integrity ensures the quality of the data in the database. For example, if an employee is entered with an employee_id value of 123, the database should not allow another employee to have an ID with the same value. If you have an employee_rating column intended to have values ranging from 1 to 5, the database should not accept a value of 6. If the table has a dept_id column that stores the department number for the employee, the database should allow only values that are valid for the department numbers in the company. Two important steps in planning tables are to identify valid values for a column and to decide how .

to enforce the integrity of the data in the column. Data integrity falls into these categories.

Question: What are inline, block, parent, children, replaced and floating elements ?
Answer:
Inline elements which do not have line breaks. Can occur in block elements or other inline elements, cannot contain block elements. Inline elements in HTML 4.0 Transitional; EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, ACRONYM, TT, I, B, U, S, STRIKE, BIG, SMALL, SUB, SUP, A, IMG, APPLET, OBJECT, FONT, BASEFONT, BR, SCRIPT, MAP, Q, SPAN, BDO, IFRAME, INPUT, SELECT, TEXTAREA, LABEL, BUTTON, (INS, DEL). Block elements which do have line breaks. May occur in other block elements, cannot occur in inline elements, may contain both block and inline elements. Block elements in HTML 4.0 Transitional; P, H1, H2, H3, H4, H5, H6, UL, OL, DIR, MENU, PRE, DL, DIV, CENTER, NOSCRIPT, NOFRAMES, BLOCKQUOTE, FORM, ISINDEX, HR, TABLE, FIELDSET, ADDRESS, (INS, DEL). Parents and children elements which either contain (parents) or are in the content of (children) other elements, e.g.texttexttext . P is a parent of STRONG. STRONG is a child of P. If not specified otherwise, children will inherit parent’s properties. Replaced elements which content is replaced. For example content of the IMG element is replaced with an image, content of the INPUT element is replace with a field. Floating elements which follow the flow of a parent - inline elements.

Question: What is initial value?
Answer:
Initial value is a default value of the property, that is the value given to the root element of the document tree. All properties have an initial value. If no specific value is set and/or if a property is not inherited the initial value is used. For example the background property is not inherited, however, the background of the parent element shines through because the initial value of background property is transparent.

Question: What is CSS?
Answer:
CSS stands for cascading stylesheets Styles define how to display HTML elements Styles are normally stored in Style Sheets Styles were added to HTML 4.0 to solve a problem External Style Sheets can save you a lot of work External Style Sheets are stored in CSS files Multiple style definitions will cascade into one. Question: How to add Add External Style Sheet?
Answer:
An external style sheet is ideal when the style is applied to many pages. With an external style sheet, you can change the look of an entire Web site by changing one file. Each page must link to the style sheet using the <link > tag. The <link > tag goes inside the head section:
<head >
<link rel=”stylesheet” type=”text/css” href=”mystyle.css” />
</head>

Question:What is Internal Style Sheet?
Answer:
An internal style sheet should be used when a single document has a unique style. You define internal styles in the head section by using the <style> tag, like this:
<head>
<style type=”text/css”>
hr {color: sienna}
p {margin-left: 20px}
body {background-image: url(”images/back40.gif”)}
</style>
</head>
The browser will now read the style definitions, and format the document according to it.

Question:What are Inline Styles?
Answer:
An inline style loses many of the advantages of style sheets by mixing content with presentation. Use this method sparingly, such as when a style is to be applied to a single occurrence of an element.
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>

Question: What do u mean to CSS ?
Answer:
Style sheets are a very powerful tool for the Web site developer. They give you the chance to be completely consistent with the look and feel of your pages, while giving you much more control over the layout and design than straight HTML ever did.

Question: When do you use CSS dimension?
Answer:
The CSS dimension properties allow you to control the height and width of an element. It also allows you to increase the space between two lines.

Question: CSS purpose and Used for?
Answer:
CSS is a language, separate from HTML or XHTML CSSused to specify the layout or formatting properties of HTML elements From a single CSS file you can control an entire sites:
font type ,font and element colour ,padding ,margins ,and element positioning CSS allows developers to separate style (look, appearance,colours, fonts, layout) from the pages structure.

Question: What are the CSS Web Template?
Answer:
“CSS Web Template” is a website design created using Cascading Style Sheets (CSS) technology. Cascading stylesheets provide web developers an easy way to format and to style web pages. CSS will be used even more because it is seen the same way by all browsers, making it the best option during the browser wars.

Share/Save/Bookmark

 

What are the actions can be taken to resolve risks in the project?

Category: Management Questions    |    4 views    |    Add a Comment

Research
The risk is not yet fully understood. Its impact or likelihood of occurrence may be unclear or the context in which it may occur could seem unreasonable. Further research by members of the project team is warranted.

Accept
The risk is unavoidable and must be accepted as-is. This category of risks become extremely important to a project since they cannot be resolved but still represent a threat to completion. Anticipation therefore become the key to dealing with this category of risk.

Reduce
The risk as it stands is unacceptable. The project team must act to reduce the risk and to establish contingency plans should the risk occur. The risk will have to reviewed in future to define the threat it poses.

Eliminate
The risk is unacceptable under any circumstances and must be eliminated as a possibility. The project team must put in place processes and procedures not only to ensure the immediate threat is eliminated but that it does not re-occur in the future.

Share/Save/Bookmark

 

What are the factors to be considered before resolving a proposed change?

Category: ASP.NET Questions    |    0 views    |    Add a Comment

Project team should consider the following factors when it decides how to resolve a proposed change:

  • What is the expected benefit of the change?
  • How would the change affect the project’s cost?
  • How would the change affect the project’s schedule?
  • How would the change affect the software’s quality?
  • How would the change affect the project’s resource allocation?
  • Would it add work to people already on the project’s critical path?
  • Can the change be deferred to a later stage of the project or a later version of the software?
  • Is the project at a point when making the change would risk destabilizing the software?

Share/Save/Bookmark

 

What are the factors to be considered before resolving a proposed change?

Category: ASP.NET Questions, Dot Net Questions, Management Questions    |    1 views    |    Add a Comment

Project team should consider the following factors when it decides how to resolve a proposed change:

  • What is the expected benefit of the change?
  • How would the change affect the project’s cost?
  • How would the change affect the project’s schedule?
  • How would the change affect the software’s quality?
  • How would the change affect the project’s resource allocation?
  • Would it add work to people already on the project’s critical path?
  • Can the change be deferred to a later stage of the project or a later version of the software?
  • Is the project at a point when making the change would risk destabilizing the software?

Share/Save/Bookmark