Hover to change <h1> font over text using css - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Hover to change <h1> font over text using css

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
h1:hover {<!-- w w  w  .  jav  a  2s .  c om-->
   font-size:31px;
}
</style> 
 </head> 
 <body> 
  <h1 style="color:blue;margin-left:30px;">This is a heading</h1> 
  <p>This is a paragraph.</p>  
 </body>
</html>

Related Tutorials