How to Make an HTML Code Button Online
Although embedded hyperlinks serve the same purpose -- namely, directing visitors to a different page on your site -- buttons on Web pages are unmistakable in letting your site visitors know what they should click. Create a button using simple HTML code and embed the code into your website or blog to afford your readers less ambiguous navigation of your site, as well as a more professional appearance.
Instructions
-
-
1
Log in to your Web hosting account. Open the "File Manager" tool, click the name of the file into which you want to insert a button and click "Edit."
-
2
Click your mouse within the line of the document where you want to insert the button. Paste in the following code:
<button type="button" ONCLICK="window.location.href='http://www.yoururl.com'""Page Name">Button Text</button>
-
-
3
Replace "Button Text" with the text you want to display inside the button. Replace "http://www.yoururl.com" with the URL of the website where you want the button to direct visitors and "Page Name" with the title of your page. Save the HTML file.
-
4
Navigate to the Web page where you inserted the button. Click the button to ensure it functions as you intended.
-
1