Monday, October 24, 2016

Interview Questions for CSS -2- Answers



Back

Q1. Answer: The class selector is used to specify a style for a group of elements.

Q2. Answer: The class selector uses the HTML class attribute and it is define with a ".".

Example: All HTML elements with class="centre" will be centre aligned

.centre{text-align:center;}

Q3. Answer: Inline Style is used the style attribute in the relevant tag. The style attribute can contain any CSS property.

Example: <p style="color:red;margin-left:15px;">This is an Inline Style.</p>

Q4. Answer: An internal style sheet should be used when a single document has a unique style. An internal style sheet is used in the head section of an HTML page. It define in the <Style> tag.

Example: <head>
                     <style>
                                   hr{color:red;}
                                   p{margin-left:15px;}
                  </style>
                  </head>
Q5. Answer: An External Style sheet is a file which save with ".css" extension. All style format write in it for all web page and access in HTML page through <link>tag. This file should not contain any HTML tags.

Example: The <link> tag goes inside the head section:
                 <head>
                   <link rel="stylesheet" type="text/css" href="ssheet.css">
                  </head>
                   In CSS ssheet.css
                       hr{color:red;}
                       p{margin-left:15px;}

Sunday, October 23, 2016

Interview Questions for CSS - 2



Q1. What is a Class Selector?

Q2. What is an Inline Style?

Q3. What is an External Style Sheet?

Q4. What is an Internal Style Sheet?

Q5. How to use Class Selector?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

Interview questions for CSS -2-  Answer

Free Download PHP Interview Questions and Answers

Wednesday, October 19, 2016

Interview Questions for CSS - 1 - Answers





Back- Interview Questions for CSS - 1

Q1. Answer : The selector is normally the HTML elements and style apply on particular HTML     element.

Q2. Answer: True

Q3. Answer: CSS is a Cascading Style Sheets. It define how to display HTML elements. CSS controls the style and layout of multiple web pages all at once.

Q4. Answer: CSS Syntax has two main parts.
  • Selector 
  • Declaration 
Declaration has two parts.
  • Property
  • Value
Example:    P {color: red;font-size:10px;}

Selector=P; Property=color, font-size; Value=red, 10px;

Q5. Answer: Three ways of inserting of Style Sheets.
  • External Style Sheet
  • Internal Style Sheet
  • Inline Style


Friday, October 7, 2016

Interview Questions for CSS - 1




Q1. What is a Selector?

Q2. "Styles were added to HTML 4.0 to solve a problem of Design".  Is this statement true or false?

Q3. What is CSS?

Q4. How much Part of CSS Syntax?

Q5. How much ways of inserting a Style Sheet?

Wait for Answers .......Till Next Post.....Interview questions' answers. 

Interview questions for CSS -1-  Answer 

Free Download PHP Interview Questions and Answers