Skip to content

Instantly share code, notes, and snippets.

@boyofgreen
Created April 4, 2012 01:49
Show Gist options
  • Save boyofgreen/2297071 to your computer and use it in GitHub Desktop.
Save boyofgreen/2297071 to your computer and use it in GitHub Desktop.
HTML5 Hacks 2.3
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My New Page with Nav</title>
</head>
<body>
<div>
<nav class="nav">
<div class=”nav-div”>
<p>this is nav text</p>
</div>
</nav>
</div>
</body>
</html>
.nav {
color: red
}
.nav {
display: block;
background-color: blue
}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My New Page with Nav</title>
</head>
<body>
<div>
<nav class="nav">
<p>this is nav text</p>
</nav>
</div>
</body>
</html>
document.createElement('nav');
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My New Page with Nav</title>
</head>
<body>
<div>
<nav class="nav">
<p>this is nav text</p>
</nav>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment