hamzo hamzo - 1 month ago 7
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

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>