0

I am new in html and i wanna ask how to put a link for the button

<div 
    class="tp-caption RotatingWords-Button rev-btn  rs-parallaxlevel-0"
    id="slide-333-layer-7"
    style="z-index: 11; white-space: nowrap;outline:none;box-shadow:none;
           box-sizing:border-box;-moz-box-sizing:border-box;
           -webkit-box-sizing:border-box;">
     <a href="index.html">ENTER</a>
</div>

how its done right now the link its working only for the text "ENTER"

stdob--
  • 28,222
  • 5
  • 58
  • 73
Erc
  • 15
  • 4

2 Answers2

0

You have to wrap the div with the a tag. Here is the HTML: ENTER

Aplet123
  • 33,825
  • 1
  • 29
  • 55
0

You can style it any way you like, but to make a div a link, here is a sample:

<div id="mylink" onclick="window.location.href='index.html';" style="padding:10px;border:1px solid black;max-width:100px;text-align:center;cursor:pointer;">Enter</div>
Dr. Aaron Dishno
  • 1,859
  • 1
  • 29
  • 24