InterviewSolution
Saved Bookmarks
| 1. |
What are the properties supporting CSS styles for a document element?(a) style and font(b) style and className(c) size and style(d) className and font |
|
Answer» Correct option is (b) style and className To explain I would say: Each Element object has style and className properties that allow scripts to specify CSS styles for a document element or to alter the CSS class names that apply to the element. firstChild returns the first child node as an element node, a text node or a comment node (depending on which one’s first). |
|