Question:- How can you integrate CSS on a web page?
Answer:- There are three methods to integrate CSS on web pages. - Inline method - It is used to insert style sheets in HTML document - Embedded/Internal method - It is used to add a unique style to a single document - Linked/Imported/External method - It is used when you want to make changes on multiple pages.
Question:- What are the advantages of CSS?
Answer:- - Bandwidth - Site-wide consistency - Page reformatting - Accessibility - Content separated from presentation
Question:- What are the limitations of CSS?
Answer:- - Ascending by selectors is not possible - Limitations of vertical control - No expressions - No column declaration - Pseudo-class not controlled by dynamic behavior - Rules, styles, targeting specific text not possible
Question:- What are the CSS frameworks?
Answer:- CSS frameworks are the preplanned libraries which make easy and more standard compliant web page styling. The frequently used CSS frameworks are: - - Bootstrap - Foundation - Semantic UI - Gumby - Ulkit
Question:- Why background and color are the separate properties if they should always be set together?
Answer:- There are two reasons behind this: - It enhances the legibility of style sheets. The background property is a complex property in CSS, and if it is combined with color, the complexity will further increase. - Color is an inherited property while the background is not. So this can make confusion further.
Question:- What is Embedded Style Sheet?
Answer:- An Embedded style sheet is a CSS style specification method used with HTML. You can embed the entire stylesheet in an HTML document by using the STYLE element.
Question:- What are the advantages of Embedded Style Sheets?
Answer:- - You can create classes for use on multiple tag types in the document. - You can use selector and grouping methods to apply styles in complex situations. - No extra download is required to import the information.
Question:- What is a CSS selector?
Answer:- It is a string that identifies the elements to which a particular declaration apply. It is also referred as a link between the HTML document and the style sheet. It is equivalent of HTML elements. There are several different types of selectors in CSS: - CSS Element Selector - CSS Id Selector - CSS Class Selector - CSS Universal Selector - CSS Group Selector
Question:- Name some CSS style components.
Answer:- Some CSS Style components are: - Selector - Property - Value
Question:- What is the use of CSS Opacity?
Answer:- The CSS opacity property is used to specify the transparency of an element. In simple word, you can say that it specifies the clarity of the image. In technical terms, Opacity is defined as the degree to which light is allowed to travel through an object.
Question:- Explain universal selector.
Answer:- The universal selector matches the name of any of the element type instead of selecting elements of a specific type.
Question:- Which command is used for the selection of all the elements of a paragraph?
Answer:- The p[lang] command is used for selecting all the elements of a paragraph.
Question:- What is the use of % unit?
Answer:- It is used for defining percentage values.
Question:- Name the property used to specify the background color of an element.
Answer:- The background-color property is used to specify the background color of the element.
