in Education by
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 I have been asked this question in an international level competition. This key question is from JavaScript in Web Browsers topic in chapter Server-Side and Client-Side Scripting of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
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).

Related questions

0 votes
    Which is not the way to query a document for an element or elements? (a) With a specified id ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which is the root element in a HTML document? (a) HTML (b) HEAD (c) SCRIPT (d) BODY This ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    Which of the below properties can be used for browser sniffing? (a) platform (b) appVersion (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    The object whose properties are inherited by all instances of the class, and properties whose values are ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    How many properties are there in window.performance object? (a) 1 (b) 4 (c) 2 (d) 3 The ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    How many properties are available in a memory object? (a) 1 (b) 2 (c) 3 (d) 4 The ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    How many properties are associated with the Response event? (a) 1 (b) 2 (c) 3 (d) 4 The ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    How many properties are there in the interface PerformanceTiming? (a) 21 (b) 22 (c) 23 (d) 24 ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which of the following are not key event properties? (a) Code key (b) Alt Key (c) Ctrl Key (d ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    The C in CSS stands for _______________ (a) Continuous (b) Cascaded (c) Contentional (d) Cascading I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    The unordered collection of properties, each of which has a name and a value is called _________ (a) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...