CodePen

HTML

            
              <!DOCTYPE html>
<html lang="en">
<head>

  <title>Template HTML File</title>

</head>
<body>

  <div class="page-wrap">

  	<header>
		<h1>Learning jQuery</h1>
		</header>

		<nav>

			<li><a href="#">Home</a></li>
			<li><a href="#">About</a></li>
			<li><a href="#">Services</a></li>
			<li><a href="#">Forum</a></li>
			<li><a href="#">Contact</a></li>

		</nav>

		<section>

			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
			cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
			proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
			<br />
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat.</p>
			<br />
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
			tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
			quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
			consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
			cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
			proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>

		</section>
		
		<footer>
			<p>Copyright &copy; 2012</p>
		</footer>

	</div>

</body>
</html>
            
          
!

CSS

            
              * {
margin: 0;
padding: 0;
border: 0;
-moz-box-sizing: border-box;
-webkit-box-sizing: border box;
box-sizing: border-box;
}

body {
background: #ccc;
font: 1em Cambria;
}

.page-wrap {
width: 80%;
margin: 30px auto 0 auto;
background: #fff;
padding: 20px;
}

header{
padding: 40px 0;
background: lightgreen;
padding: 10px;
line-height: 80px;
}

h1 {
font-weight: normal;
color: darkgreen;

}

nav {
list-style: none;
background: green;
overflow: hidden;
margin: 10px 0;
}

nav li {
float: left;
}

nav li a {
display: block;
padding: 10px 15px;
text-decoration: none;
color: #fff;
border-right: 2px groove #099f05;
}

.hover {
background: darkred;
transition: 0.5s;
}

section {
color: #666;
margin: 30px 0;
}

footer {
background: lightgreen;
padding: 10px;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              $(document).ready(function() {
  var $nav_a = $('nav li a'); 
  
  $nav_a.hover(function() {
    var $this = $(this);
    
    $this.toggleClass('hover');
    
  })
    
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................