Which of the following selectors selects siblings?
A. E.class
B. E ~ F
C. *
D. E, F, G
Answer: Option B
Solution(By Examveda Team)
Example: p ~ strong {font-style: italic;}/* sets the font style to italic on all strong tags that have a p tag as a preceding sibling */
Which of the following is the correct way to applying style to a document?
A. Use an external style sheet, either by importing it or by linking to it
B. Directly embed a document-wide style in the head element of the document
C. Set an inline style rule using the style attribute directly on an element
D. All of the mentioned
What will happen in this case?
<p style="color: red">text</p>
A. make that specific paragraph red.
B. error
C. nothing happens
D. none of the mentioned
The _______property is used to set the color of the text.
A. pallet
B. colour
C. color
D. text-decoration
Which of the following is the correct way to apply Styles?
A. inside an HTML element
B. inside the section of an HTML page
C. in an external CSS file
D. all of the mentioned
Join The Discussion