Exam4Training

Which expression outputs the screen width of the element with the ID card-01?

Refer to HTML below:

<div id =”main”>

<div id = “ card-00”>This card is smaller.</div>

<div id = “card-01”>The width and height of this card is determined by its

contents.</div>

</div>

Which expression outputs the screen width of the element with the ID card-01?
A . document.getElementById(‘ card-01 ’).getBoundingClientRest().width
B . document.getElementById(‘ card-01 ’).style.width
C . document.getElementById(‘ card-01 ’).width
D . document.getElementById(‘ card-01 ’).innerHTM
E . lenght*e

Answer: A

Exit mobile version