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.
Question:- What is the CSS Box model and what are its elements?
Answer:- The CSS box model is used to define the design and layout of elements of CSS. The elements are: - Margin - It removes the area around the border. It is transparent. - Border - It represents the area around the padding - Padding - It removes the area around the content. It is transparent. - Content - It represents the content like text, images, etc.
Question:- What is the float property of CSS?
Answer:- The CSS float property is used to move the image to the right or left along with the texts to be wrapped around it. It doesnt change the property of the elements used before it.
Question:- How to restore the default property value using CSS?
Answer:- In short, there is no easy way to restore to default values to whatever a browser uses. The closest option is to use the initial property value, which restores the default CSS values, rather than the browsers default styles.
