Remove warning with htmlvalidator

This commit is contained in:
hodasemi 2018-10-22 10:45:14 +02:00
parent 45c752c869
commit 2ad7e87aaa
2 changed files with 20 additions and 18 deletions

View file

@ -5,7 +5,7 @@
} }
/* Style the links inside the navigation bar */ /* Style the links inside the navigation bar */
.topnav p { .topnav a {
float: left; float: left;
color: #f2f2f2; color: #f2f2f2;
text-align: center; text-align: center;
@ -15,13 +15,13 @@
} }
/* Change the color of links on hover */ /* Change the color of links on hover */
.topnav p:hover { .topnav a:hover {
background-color: #ddd; background-color: #ddd;
color: black; color: black;
} }
/* Add a color to the active/current link */ /* Add a color to the active/current link */
.topnav p.active { .topnav a.active {
background-color: #4CAF50; background-color: #4CAF50;
color: white; color: white;
} }

View file

@ -1,37 +1,39 @@
<!DOCTYPE <!DOCTYPE html> <!DOCTYPE html>
<html> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible">
<title>Page Title</title> <title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" /> <link rel="stylesheet" type="text/css" media="screen" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/main.css" /> <link rel="stylesheet" type="text/css" media="screen" href="css/main.css" />
<script type="text/javascript" src="main.js"></script> <script src="main.js"></script>
</head> </head>
<body> <body>
<nav class="topnav"> <nav class="topnav">
<ul> <ul>
<p>First</p> <li>
<p>Second</p> <a>First</a>
<p>Third</p> </li>
<p>Fourth</p> <li>
<a>Second</a>
</li>
<li>
<a>Third</a>
</li>
<li>
<a>Fourth</a>
</li>
</ul> </ul>
</nav> </nav>
<!-- <h1>World Data Overview ...</h1>
<input type="file" id="csvFileInput" onchange="handleFiles(this.files)" accept=".csv" />
-->
<table id="t01"></table>
<table id="t01"></table>
<script> <script>
handleFile() handleFile()
</script> </script>
</body> </body>
</html> </html>