Inserting a Style Sheet
Category : 10th Class
CSS enables three ways to insert a style sheet:
Inline style
Use this method carefully because it mixes the content with presentation. To use inline style you need to use the style attributes in the relevant tag. The following code snippet shows how to change the colour and right margins of given text: lndia is the greatest country.
External style sheet
An external CSS style sheet contains CSS style rules. These rules are applied to HTML element on Web pages.
To add an external CSS style sheet:
The following code snippet shows how to add external style sheet:
<head>
<link rel="stylesheet" type=" totaltext/css" href="p.css">
</head>
Internal style sheet
CSS allows using internal style sheet when a single document teas a unique style. For this you need to define internal styles in the head sector with the <style>tag. The following code snippet shows how to use internal style sheet:
<head>
<style type="text/css">
CSS enables three ways to insert a style sheet. It allows using __usingsheet when a single document has a unique style.
(A) Internal style
(B) External style
(C) Inline style
(D) All of these
(E) None of these
Answer: (a)
Explanations
Correct Option:
(A) CSS allows using internal style sheet when a single document has a unique style.
Incorrect Options:
Therefore, option (A) is correct and rest of the options s incorrect.
ID selector is used for specifying single, unique elements. An ID selector is assigned by using assigned by using the indicator...... to precede a name.
(A) "#"
(B) #
(C) *
(D) "*"
(E) None of these
Answer: (a)
Explanations
Correct Option:
(A) An ID selector is assigned by using the indicator "#" to precede a name.
Incorrect Options:
Therefore, option (A) is correct and rest of the options is incorrect
Which one of the following statements is true about cascading order?
(A) If two rules have the equal weight, the last specified rule wins
(B) If two rules have the equal weight, the first specified rule wins
(C) If two rules have the equal weight, then both are destroyed
(D) All of these
(E) None of these
Answer: (a)
Explanations
Correct Option:
(A) If two rules have the equal weight, the last specified rule wins.
Incorrect Options:
Therefore, option (A) is correct and rest of the options is incorrect.
You need to login to perform this action.
You will be redirected in
3 sec