---
title: "Discussion on \"How to make elements behave like links without wrapping them in anchor tags\" | Hashnode"
description: "Discussion on \"How to make elements behave like links without wrapping them in anchor tags\". This question has existed in different forms around the internet; \"how to turn a div into a clickable link\", \"how to make div behave like link\" etc. The most obvious way would be to wrap everything between a pair of anchor tags like this: \n<a href=\"/..."
url: "https://hashnode.com/posts/how-to-make-elements-behave-like-links-without-wrapping-them-in-anchor-tags/63af0e25359f463d43abedeb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to make elements behave like links without wrapping them in anchor tags](https://blog.timfon.dev/how-to-make-elements-behave-like-links-without-wrapping-them-in-anchor-tags?utm_source=hashnode&utm_medium=feed)

This question has existed in different forms around the internet; "how to turn a div into a clickable link", "how to make div behave like link" etc. The most obvious way would be to wrap everything between a pair of anchor tags like this: <a href="/...

Nov 19, 2019 · 2 min read · blog.timfon.dev  
Read the article

## Written by

[Edmund Ekott](https://hashnode.com/@Edmund1645)

@Edmund1645

  
[View profile](https://hashnode.com/@Edmund1645)

Software Developer

Frontend Engineer who loves building tools.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
