html - What is the meaning of a div container for a single element? -
i see things :
<div id='side_logo'> <a class="logo" href="index.html"> <img src="img/logo.png"> </a> </div>
what advantage use above markup instead of :
<a id='side_logo' class="logo" href="index.html"> <img src="img/logo.png"> </a>
it allows better control on styling. example, if wanted logo in example sit inside colored box larger logo image, wanted logo clickable anchor.
Comments
Post a Comment