Reputation: 309
I am making a webpage.
I created a button, which you click to get to another page.
Problem: I have to recreate the .HTML file and load it with <a href="contact.html" style="text-decoration:none">Contact<br></a>
but contact.html is just index.html with contact details.
So could I make a button that loads the new page without creating many .html files that display more text
source: https://github.com/4u7157/4u7157.github.io
Upvotes: 0
Views: 127
Reputation: 36
You could use bootstrap and do this:
<a data-toggle="collapse" href="#contact" role="button" aria-expanded="false" aria-controls="contact">
Expand/collapse
</a>
<div id="contact" class="collapse">
Here's the content you want to show while not creating many files.
</div>
Upvotes: 1