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.
Question:- Name the property for controlling the image repetition of the background.
Answer:- The background-repeat property repeats the background image horizontally and vertically. Some images are repeated only horizontally or vertically.
Question:- Name the property for controlling the image position in the background.
Answer:- The background-position property is used to define the initial position of the background image. By default, the background image is placed on the top-left of the webpage.
Question:- What is the use of ruleset?
Answer:- The ruleset is used to identify that selectors can be attached with other selectors. It has two parts: - Selector - Selector indicates the HTML element you want to style. - Declaration Block - The declaration block can contain one or more declarations separated by a semicolon.
Question:- What is the difference between class selectors and id selectors?
Answer:- An overall block is given to class selector while id selectors take only a single element differing from other elements.
Question:- What are the advantages of External Style Sheets?
Answer:- - You can create classes for reusing it in many documents. - By using it, you can control the styles of multiple documents from one file. - In complex situations, you can use selectors and grouping methods to apply styles.
Question:- What are the advantages of External Style Sheets?
Answer:- - You can create classes for reusing it in many documents. - By using it, you can control the styles of multiple documents from one file. - In complex situations, you can use selectors and grouping methods to apply styles.
Question:- What is the difference between inline, embedded and external style sheets?
Answer:- - Inline: Inline Style Sheet is used to style only a small piece of code. - Embedded: Embedded style sheets are put between the head tags. - External: This is used to apply the style to all the pages within your website by changing just one style sheet.
Question:- What is RWD?
Answer:- RWD stands for Responsive Web Design. This technique is used to display the designed page perfectly on every screen size and device, for example, mobile, tablet, desktop and laptop. You dont need to create a different page for each device.
Question:- What are the benefits of CSS sprites?
Answer:- If a web page has a large number of images that take a longer time to load because each image separately sends out an HTTP request. The concept of CSS sprites is used to reduce the loading time for a web page because it combines the various small images into one image. It reduces the number of HTTP requests and hence the loading time.
Question:- What is the difference between logical tags and physical tags?
Answer:- - Physical tags are referred to as presentational markup while logical tags are useless for appearances. - Physical tags are newer versions, on the other hand, logical tags are old and concentrate on content.
