-
What is RWD?
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 don’t need to create a different page for each device.
-
What is the difference between inline, embedded and external style sheets?
Inline: Inline Style Sheet is used to style only a small piece of code. Syntax Embedded: Embedded style sheets are put between the <head>…</head> tags. Syntax External: This is used to apply the style to all the pages within your website by changing just one style sheet. Syntax
-
What are the advantages of External Style Sheets?
-
What is the difference between class selectors and id selectors?
An overall block is given to class selector while id selectors take only a single element differing from other elements. CSS Class Selector CSS Id Selector
-
What is the use of ruleset?
The ruleset is used to identify that selectors can be attached with other selectors. It has two parts:
-
Name the property for controlling the image scroll in the background.
The background-attachment property is used to specify if the background image is fixed or scroll with the rest of the page in the browser window. If you set fixed the background image, then the image not move during scrolling in the browser. Let’s take an example with the fixed background image.
-
Name the property for controlling the image position in the background.
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. You can set the following positions:
-
Name the property for controlling the image repetition of the background.
The background-repeat property repeats the background image horizontally and vertically. Some images are repeated only horizontally or vertically.
-
Name the property used to specify the background color of an element.
The background-color property is used to specify the background color of the element. For example:
-
Which command is used for the selection of all the elements of a paragraph?
The p[lang] command is used for selecting all the elements of a paragraph. What is the use of % unit? It is used for defining percentage values.