Home > DeveloperSection > Forums > How to add an <a href> link to a <div> control in HTML?
F Scott Fitzgerald
F Scott Fitzgerald

Total Post:29

Points:203
Posted on    October-05-2013 9:11 AM

 HTML5 HTML5 
Ratings:


 1 Reply(s)
 1510  View(s)
Rate this:

I need to know how to add an a href link to a div?

Here is my code :-

<div id="buttonOne">
            <div id="linkedinB">
                <img src="img/linkedinB.png" width="40" height="40">
            </div>
      </div>


C G E Mannerheim
C G E Mannerheim

Total Post:29

Points:203
Posted on    October-05-2013 9:30 AM

Can't you surround it with an a tag?

  <a href="#"><div id="btnOne">
        <div id="linkedinB">
            <img src="img/xyz.png" width="35" height="35">
        </div>
  </div></a>

Don't want to miss updates? Please click the below button!

Follow MindStick