How can I write <a> tag in standard html?

traiven

New Member
I have two pages made using HTML and I use the following standards\[code\]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\[/code\]The two pages are index.html, the other is about.html. I create a logo inside the index page as the followingHTML markup of Index.html\[code\]<div class="logo"></div>\[/code\]in CSS I do the following\[code\].logo {background: url ('../images/logo.png') no-repeat;height: 300px;width: 100px;}\[/code\]In about.html page I write the following html markup\[code\]<a href="http://stackoverflow.com/questions/9547870/index.html"> <div class="logo"></div></a>\[/code\]The above markup is working fine, but when I use the w3c validator it gives me warning as it's not a standard markup. My question is how can I make the html markup fits with the standards and gives the same result?
 
Back
Top