How to create an HTML button that acts like a link?

后端 未结 30 3580
长发绾君心
长发绾君心 2020-11-21 04:18

I would like to create an HTML button that acts like a link. So, when you click the button, it redirects to a page. I would like it to be as accessible as possible.

30条回答
  •  爱一瞬间的悲伤
    2020-11-21 05:06

    Try

    .abutton { 
      background: #bada55; padding: 5px; border-radius: 5px; 
      transition: 1s; text-decoration: none; color: black;
    }
    .abutton:hover { background: #2a2;  }
    Continue

提交回复
热议问题