hamzo hamzo - 11 days ago 5x
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>


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>