I have a I\'m looking for something l
This is a "valid" solution to achieving what you want.
text
But most-likely what you really want is to have an tag displayed as a block level element.
I would not advise using JavaScript to simulate a hyperlink as that defeats the purpose of markup validation, which is ultimately to promote accessibility (publishing well-formed documents following proper semantic rules minimizes the possibility the same document will be interpreted differently by different browsers).
It would be preferable to publish a web page that does not validate, but renders and functions properly on all browsers, including ones with JavaScript disabled. Furthermore, using onclick
does not provide the semantic information for a screen reader to determine that the div is functioning as a link.