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 */
.topnav p {
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
@ -15,13 +15,13 @@
}
/* Change the color of links on hover */
.topnav p:hover {
.topnav a:hover {
background-color: #ddd;
color: black;
}
/* Add a color to the active/current link */
.topnav p.active {
.topnav a.active {
background-color: #4CAF50;
color: white;
}

View file

@ -1,37 +1,39 @@
<!DOCTYPE <!DOCTYPE html>
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible">
<title>Page Title</title>
<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/main.css" />
<script type="text/javascript" src="main.js"></script>
<script src="main.js"></script>
</head>
<body>
<nav class="topnav">
<ul>
<p>First</p>
<p>Second</p>
<p>Third</p>
<p>Fourth</p>
<li>
<a>First</a>
</li>
<li>
<a>Second</a>
</li>
<li>
<a>Third</a>
</li>
<li>
<a>Fourth</a>
</li>
</ul>
</nav>
<!--
<input type="file" id="csvFileInput" onchange="handleFiles(this.files)" accept=".csv" />
-->
<table id="t01"></table>
<h1>World Data Overview ...</h1>
<table id="t01"></table>
<script>
handleFile()
</script>
</body>
</html>