<!DOCTYPE html> <html> <body> <h1 onmouseover="style.color='red'" onmouseout="style.color='black'"> 鼠标移动到此文本上</h1> </body> </html>