CSS BASIC QUIZ
Post your answers and have a Happy Learning! grinning:
-
The full form of CSS is:
A) Cascading Style Sheets
B) Colored Special Sheets
C) Color and style sheets
D) None of the Above
-
How can we change the background color of an element?
A) background-color
B) color
C) Both A and B
D) None of the Above
-
In how many ways can CSS be written?
A) 1
B) 2
C) 3
D) 4
-
How can we select an element with a specific ID in CSS?
A) #
B) .
C) ^
D) None of the Above
-
How can we write comments in CSS?
A) /* */
B) //
C) #
D) All of the above
-
In the below code snippet, in what order will the margins be added?
p {
margin: 25px, 50px, 75px, 100px;
}
A) Top, Right, Bottom, Left
B) Top, Left, Bottom, Right
C) Top, Bottom, Right, Left
D) Right, Left, Top, Bottom
-
What is the correct syntax for referring an external CSS?
A) <link rel="stylesheet" type="text/css" href="style.css">
B) <style rel="stylesheet" type="text/css" href="style.css">
C) Both A and B
D) None of the above
-
What type of CSS is the following code snippet?
<h1 style="color:blue;">A Blue Heading</h1>
A) Inline
B) Internal
C) External
D) None of the above
-
Which HTML tag is used to declare internal CSS?
A) <style>
B) <link>
C) <script>
D) None of the above
-
Which of the following are parts of the CSS box model?
A) Margins
B) Borders
C) Padding
D) All of the above
1 Like
1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A
9.A
10…D All
1 Like
1)A -Cascading style sheets
2)A -background-color
3)C - 3
4)A - #
5)A - /* */
6)A - TRBL
7) A - (link)
8)A - Inline
9)A - style
10)D - margin,borders,padding
1 Like
1.A
2.A
3.C
4.A
5.A
6.A
8.A inline
10.D
1 Like
1.A 2.A 3.C 4.A 5.A 6.A 7.A 8.A 9.A 10.D
1.A 2.A 3.C 4.A 5.A 6.A 7.A 8.A 9.A 10.D
1 Like
1 A
2 A
3 C
4 A
5 A
6 A
7 A
8 A Inline
9 A
10 D
1 Like
1A-cascading style sheet
2.A-backround- color
3.C-3
4.A-#
5.A-/* */
6…A-TRBL
7.A-(Link)
8.A Inline
9.A-style
10.D-marjin,borders,padding
1 Like
Congratulations to all! You’re doing well,
and I’m happy to see this. I expect this curiosity throughout our FSR journey.
1 Like
Answers:
1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A
9.A
10.D
1 Like
1)A
2)A
3)C
4)A
5)D
6)A
7)A
8)A
9)A
10)D
-
The full form of CSS is:
A) Cascading Style Sheets
B) Colored Special Sheets
C) Color and style sheets
D) None of the Above
-
How can we change the background color of an element?
A) background-color
B) color
C) Both A and B
D) None of the Above
-
In how many ways can CSS be written?
A) 1
B) 2
C) 3
D) 4
-
How can we select an element with a specific ID in CSS?
A) #
B) .
C) ^
D) None of the Above
-
How can we write comments in CSS?
A) /* */
B) //
C) #
D) All of the above
-
In the below code snippet, in what order will the margins be added?
p {
margin: 25px, 50px, 75px, 100px;
}
A) Top, Right, Bottom, Left
B) Top, Left, Bottom, Right
C) Top, Bottom, Right, Left
D) Right, Left, Top, Bottom
-
What is the correct syntax for referring an external CSS?
A) <link rel="stylesheet" type="text/css" href="style.css">
B) <style rel="stylesheet" type="text/css" href="style.css">
C) Both A and B
D) None of the above
-
What type of CSS is the following code snippet?
<h1 style="color:blue;">A Blue Heading</h1>
A) Inline
B) Internal
C) External
D) None of the above
-
Which HTML tag is used to declare internal CSS?
A) <style>
B) <link>
C) <script>
D) None of the above
-
Which of the following are parts of the CSS box model?
A) Margins
B) Borders
C) Padding
D) All of the above
[/quote]
1.A
2.A
3.C
4.A
5.A
6.A
7.A
8.A. inline
9.A
10.D