Question: Problem #1 Write a JavaScript program to highlight the bold words of the following paragraph by changing the text color to red, on mouse over.
Problem #1
Write a JavaScript program to highlight the bold words of the following paragraph by changing the text color to red, on mouse over.
Wehave just startedthissection for the users (beginnerto intermediate) who want to work withvariousJavaScriptproblemsand write scripts online totesttheir JavaScriptskill.
Hint: wordItems = document.getElementsByTagName('strong'); // The paragraph uses tags for the bold words. Change default behavior.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
