how to make div clickable in html code example Example: make div clickable <div onclick="location.href='#';" style="cursor: pointer;"> </div>