HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p><abbr>WWE</abbr> is awesome.</p> <p>Click on the button to add title to the abbr for WWE.</p> <button onclick="myFunction()">Click Me</button> <p><strong>Note</strong>: After clicking on the button, hover WWE.</p> <script> var elem = document.getElementsByTagName("abbr")[0]; function myFunction(){ elem.title = "World Wrestling Entertainment"; } </script> </body> </html>
OUTPUT
×

Save as Private