0
Creating a multi-page project
How do you create a project in html with two or more pages Especially if you want to move to the next page by clicking a button
2 ответов
0
You can use links <a> to link pages.
0
You can also use a <nav></nav> container element and then nest <a> links into it as shown in example below:
<nav>
<a href='home.html'>Home</a>
<a href='friends.html'>Friends</a>
<a href='dashboard.html'>Dashboard</a>
</nav>
This code will create a navigation menu wit three links leading to their respective files.
Here we use href parameter to specify html file which will be opened by browser when we click the particular link.