Ans: CSS full form is "Cascading Style Sheet". CSS is the language used to describe the presentation of Web pages, including colors, textures and fonts. Css are three types of Class base css, Tag base css, ID base css.
2. What are the different variations of CSS?
Ans: The following are different variations of CSS:
CSS1
CSS2
CSS2.1
CSS3
CSS4
3. Explain the benefits of CSS?
Ans: Below are some of the benefits of CSS:
1. Accessibility
2. all Device Compatibility
3. The page will load faster
4. Maintenance is too Easy
5. Offline Browsing
4. What are CSS selectors?
Ans: In the CSS selection patterns are used to select the items you want to style. Use our CSS Selector Tester to show different options.
There are various types to choose from in CSS.
1. CSS Class selector
2. CSS selector
3. CSS Universal CSS selector
4. CSS Element selector
5. CSS group selectors and much more selectors etc.
5. How to integrate CSS into in a web page?
Ans: There are three ways to integrate CSS into web pages.
1. Inline CSS method
2. Internal CSS method
3. External CSS method
Inline css: The css tagged in the body of html documents is called Inline css.
Internal css: The css written inside the html document in the header tag is called Internal css.
External css: The css written outside and connected inside the header tag is called External css.
6. What is the difference between Class CSS, Tag CSS, ID CSS?
Ans: Class Base: The css used to redefine html objects is called class css. Shown with a dot (.) Before the word. A section-based css file often uses a single document.
exp: (. sample {color: # 000;})
Tag Base: The css used to tag the html is called tag base css. The base css tag is indicated by tags (body, img, ul, li, p, table, h1 to h6..etc)
ID Base: The css used to create block objects is called ID base css. Another way to build a table (cell) without html.Defined by (#) before the word. ID-based css file uses a single time document.
exp: # header, # banner etc.
7. Define CSS Padding and Margin.
Ans: Padding: Padding is used to describe the space between content and boundary. Within Border
Margin: A margin is an outer space. (Without Border)
You can easily specify different paddings and margins on different sides of an object such as top, right, bottom or left side using CSS individual padding and margin structures.
8. What is a CSS Box Model?
Ans: The CSS box model is actually a box that wraps everything HTML. Contains: tags, borders, padding, and content itself.
9. Describe the (child) selector in CSS?
Ans: child selectors can be used to use parental style and this will fall on the child’s items. Below
exp -
body> input {
color: # FFFFF1;
}
10. How can you combine multiple style sheets into one page?
Ans: Many style sheets can be merged using the <link> tag and title attribute. Title value allows one or more <link> tags to link to. After compilation the theme will be used as a compilation and will be displayed to the user.
Its syntax will be as follows:
<link rel = "text / css" href = "bootstrap.css" title = "combined">
<link rel = "text / css" href = "style.css" title = "included">
<link rel = "text / css" href = "slider.css" title = "included">
Another way to combine style sheets is to use an import that can be applied to the <style> tag and the syntax can be provided as follows:
@ enter url (site_url);
11. What is the purpose of Pseudo Elements?
Ans: Pseudo Elements materials allow the use of a component and not the object itself. They are used as a block level element, used for a complete block CSS for which they are written. This allows the lower part of the object to be styled as categories and titles.
For exp:
selector: pseudo-element {property: value;}
p: first line {text-transform: lowercase;}
12. What is the difference between CSS2 and CSS3?
Ans: The main difference between CSS2 and CSS3 is that CSS3 is divided into different sections also known as modules.
Unlike CSS2, CSS3 modules are supported by most browsers.
13. What are Pseudo-elements?
Ans: Pseudo Elements are used to add special effects to other selectors. CSS is used to apply styles in HTML mark-up. In some cases where additional tagging or style does not occur in the document, then there is a feature found in CSS known as fake. It will allow for additional tagging of the document without interfering with the actual document.
14.What is Z index?
Ans: Splitting may occur while using CSS for HTML objects. The Z index helps to specify the overlapping element. The z-index default value is zero.
15. How comments can be added in CSS3 ?
Ans: The comments in CSS3 can be added with /* or */ .
