Reputation: 1
Hey im getting three errors while trying to validate my project, they are 'An a start tag seen but an element of the same type was already open.' , 'End tag a violates nesting rules.' and 'Cannot recover after last error. Any further errors will be ignored.' The errors while validating point to the '>' in ''. Im new on html and cant figure out why this is happening. Any help would be greatly appreciated :)
<body>
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/>
<nav>
<a href="index.html">Home</a> |
<a href="product2.html">Products</a> |
<a href="about.html">About</a>
</nav>
Upvotes: 0
Views: 507
Reputation: 219804
You're missing your closing anchor tag:
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/> <--HERE
Change it to:
<a href="index.html"><img class = "banner" src="banner.jpg" alt="Image"/></a>
Upvotes: 1