Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> #demo{ width:300px; height:200px; background-color:gray; } </style> </head> <body> <div id="demo" onmouseenter="this.style.backgroundColor='yellow'" onmouseleave="this.style.backgroundColor='gray'"></div> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> #demo{ width:300px; height:200px; background-color:gray; } </style> </head> <body> <div id="demo" onmouseenter="this.style.backgroundColor='yellow'" onmouseleave="this.style.backgroundColor='gray'"></div> </body> </html>