0
How to work my buttons?
5 Respuestas
+ 6
Oh! Ok, then I recommend you this awesome code by @Suyash_Purwar who uses button tags and a little JavaScript to create single webpages with tabs:
https://code.sololearn.com/WWvNLy18HfUW/?ref=app
+ 9
What exactly would you like your buttons to do, Roland?
Because if you want them to take you to a certain link, you can write this:
<button onclick="location.href='http://www.google.com'" type="button"> Google Search </button>
But if you'd like to use them in a form or add any other attributes to them take a look at this list:
https://www.quackit.com/html_5/tags/html_button_tag.cfm
+ 7
<a href = "http://www.test.com">
<button> Home Page </button>
</a>
<!-- You could use Javascript and the events for make something with them, but for your Home Page an anchor tag is enough -->
EDIT for @mod807 -
Generally i use @keyframes/Javascript, open a thread for more information here we stay Off Topic. ^_^
+ 3
<a href="#home"><button>home</button></a>
<a href="#about"><button>about</button></a>
<a href="#contact"><button>contact</button></a>
<div id="home">
<p>HOME</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
</div>
<div id="about">
<p>ABOUT</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
</div>
<div id="contact">
<p>CONTACT</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
<p>some text</p>
</div>
This is used to locate any content within the page
But if u want the user to be redirected on some other page when he clicks the button then
use this:
<a href="url-address"><button>Home page</button></a>
0
Paola i want to make multiple tabs