Exam4Training

Which statement adds the priority = account CSS class to the universal COntainers row?

Given HTML below:

<div>

<div id =”row-uc”> Universal Container</div>

<div id =”row-aa”>Applied Shipping</div>

<div id =”row-bt”> Burlington Textiles </div>

</div>

Which statement adds the priority = account CSS class to the universal COntainers row?
A . Document .querySelector(‘#row-uc’).classes.push(‘priority-account’);
B . Document .queryElementById(‘row-uc’).addclass(‘priority-account’);
C . Document .querySelector(‘#row-uc’).classList.add(‘priority-account’);
D . Document .querySelectorALL(‘#row-uc’).classList.add(‘priority-account’);

Answer: B

Exit mobile version