Sometimes it's better to create a button on your website instead of a link. Creating a button using Photoshop, or JavaScript can be a slight hassle. In this tutorial, I will show you how to create a button link, using the form button html element Using a form button in place of a link is very easy and quick to do. Your website's CSS styles will probably make the button link match the rest of the site, which is what we want.
Create form button link
- Copy the code snippet below and paste it into your website's HTML. If you have a WordPress website, you can paste this cose snippet into any post, page or widget.
HTML | copy code | ? 1 <input type="button" value="Continue"
2 onClick="window.location.href='http://google.com';" />
- Change the Google website address to be the link for your button.
- Customize the text for the button by changing the text 'Continue'.