You implement an application by using HTML5 and JavaScript. You create a webpage that
contains the following HTML:
The application must place a border on only the first UL element that is contained in the DIV
element.
You need to update the webpage.
What should you do?
A.
Option A
B.
Option B
C.
Option C
D.
Option D
Answer is B.
I agree with Enrique, because in answer D there is ‘.container’, but ‘container’ in html is a id, not a class.
Its B
Coz D is Class .container ,there is no class its only ID .
D is wrong!
Explanation/Reference:
Example:
CSS File:
ul {
border: 1px solid black;
}
Inline CSS: