hamzo hamzo - 1 year ago 68
HTML Question

How to make div tag clickable link?

How to make div a link? I cant figure it out.
my code looks like that

<div class="col-md-5 col-md-offset-4 kolLD"></div>

Answer Source

HTML 5 states that the <a> element

may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links)

You just can wrap your div tag with an <a> tag.

<a href="#"><div class="col-md-5 col-md-offset-4 kolLD"></div></a>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download