MCQs>IT & Programming>DHTML>What is the color of “Rainbow” in the following code? <style> div {color:blue !important;} </style> <div id="id" color="green" style="color:red !important;">Rainbow</div> <script> document.getElementById('id').style.color = 'yellow !important'; </script>
DHTML MCQs
What is the color of “Rainbow” in the following code? <style> div {color:blue !important;} </style> <div id="id" color="green" style="color:red !important;">Rainbow</div> <script> document.getElementById('id').style.color = 'yellow !important'; </script>
Answer
Correct Answer: red
Explanation:
Note: This Question is unanswered, help us to find answer for this one