IndieHacker Teens July 29, 2020

[HTML]The Hardest Button to Button


Hello there! I have been trying to learn how to make a button work for my website-in-building, and it took me two days, two whole days. Here are two methods of making a button.
<a href="html/read.html"><button >Read</button></a>
The anchor has an attribute which takes you to read.html, and the button is a container for the actual function. "Read" is simply the text within the button.

The other method is lifted from Derek Siver's site, since a great way to learn is to simply look at how other people have done it.
<form action="html/read.html" method="get">
<input type="submit" value="Read">

You can also encapsulate the above elements in <div> to separate them from another element. Anyways, I hope this helps for other people learning to code HTML. Good luck!

Recommended Posts