I have been working with CSS and HTML to create basically a banner and navbar. I've been trying to get it to stick to the very top, but after I saw it in chrome, I noticed both the body tag and the HTML tag are detatched. I've tried removing all the margins and padding from every single part that could be responsible for the space, but I couldn't get rid of it. What is a good way to do this?
HTML:
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="style/normalize.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="wrapper">
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="demo.html">Demo</a></li>
</ul>
</nav>
</header>
</div>
</body>
</html>
CSS code:
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
}
.wrapper {
margin: 0;
padding: 0;
}
header {
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
nav
{
text-align: left;
}
nav ul
{
list-style: none;
/*margin: 0 10; corrected*/
margin: 0;
padding: 0;
}
nav li
{
display: inline-block;
}
nav a
{
font-weight: 800;
padding: 15px 10px;
font-size: 1em;
}
Screenshot (as requested):

nav ul { margin: 0; }.margin: 0 10;is invalid CSS; measurements must have units. since the10is invalid and there's no such thing as a "partially" valid property, the whole line is ignored.