HTML and CSS Can someone help me with this? In the following code snippet, what
ID: 3812017 • Letter: H
Question
HTML and CSS
Can someone help me with this?
In the following code snippet, what value is given for the left margin
margin: 5px 10px 3px 8px;
A. 3px
B. 10px
C. 8px
D. 5px
What is the most common way to add a comment in a CSS file?
A. /* this is a comment */
B. // this is a comment //
C. // this is a comment
D. -- this is a comment --
What property is used to change the text color of an element?
A. fontcolor:
B. textcolor:
C. color:
D. font-color:
What does CSS stand for?
A. Custom Style Sheets
B. Colorful Style Sheets
C. Computer Style Sheets
D. Cascading Style Sheets
The # symbol specifies that the selector is?
A. class
B. id
C. tag
D. first
Which is the correct CSS syntax?
A. {p:color=black(p}
B. p {color: black;}
C. {p;color:black}
D. p:color=black
Which of the following would be used to create an class called header which has a width of 750px, a height of 30px and the color of the text is black?
A. .header { height: 30px; width: 750px; color: black; }
B. #header { height: 30px; width: 750px; color: black; }
C. .header { height: 30px; width: 750px; text: black; }
D. class header { height: 30px; width: 750px; color: black; }
Which snippet of CSS is commonly used to center a website container horizontally?
A. site-align: center;
B. margin: center;
C. margin: 0 auto;
D. margin: auto 0;
How do you make a list not display bullet points?
A. list-style-type: no-bullet
B. list: none
C. bulletpoints: none
D. list-style-type: none
What is the correct CSS syntax for setting all the paragraph tags to have a font size of 14px?
A. p {14px}
B. p {font-size: 14px;}
C. p {text-size: 14px;}
D. p {font: 14px;}
Which CSS property controls the text size?
A. font-height
B. text-size
C. font-size
D. text-style
Which of these properties is used to change the background color?
A. background-color:
B. bg-color:
C. bground:
D. b-color:
How do you display hyperlinks without an underline?
A. a {decoration:no underline}
B. a {text-decoration:none}
C. a {hyperlink:no underline}
D. a {text-decoration:no underline}
A CSS declaration is terminated by?
A. . - a period
B. ! - an exclamation point
C. ; - a semi colon
D. : - colon
Explanation / Answer
1.Answer:-
C. 8px
Explanation:-
If the margin has four values:
margin: 5px 10px 3px 8px;
Top Margin is 5px
Right Margin is 10px
Bottom Margin is 3px
Left Margin is 8px
2.Answer:-
A. /* this is a comment */
Explanation:-
The CSS comment begins with /* and ends with */.
3.Answer:-
C. color:
Explanation:-
The color property is used to change the text color of an element.
4.Explanation:-
D. Cascading Style Sheets
Explanation:-
CSS stands for Cascading Style Sheets.
5.Answer:-
B. id
Explanation:-
To select an element with a specific id, we should use a hash (#) symbol, followed by the id of the element.
8.Answer:-
D. margin: auto 0;
Explanation:-
The CSS snippet margin: auto 0; is commonly used to center a website container horizontally.
9.Answer:-
D. list-style-type: none
Explanation:-
The property list-style-type: none doen't displays a list with bullet points.
11.Answer:-
C. font-size
Explanation:-
The CSS property font-size controls the text size.
12.Answer:-
A. background-color:
Expalnation:-
The background-color property represents the background color of an element.
13.Answer:-
B. a {text-decoration:none}
Explanation:-
By using a {text-decoration:none} we can display hyperlinks without an underline.
14.Answer:-
C. ; - a semi colon
Explanation:-
A CSS declaration is terminated by a semi colon.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.