Set width to 5em for H1 - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:h1-h6

Description

Set width to 5em for H1

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
h1 {<!--  w w w.j a v  a  2s  .c  o m-->
   width:6em;
   background-color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <h1>A very long title which cannot enter into only one line!</h1>  
 </body>
</html>

Related Tutorials