Html 如何在html中创建多个页面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32415347/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to create multiple pages in html
提问by matthew kap
Can someone please inform me the code to create multiple webpages in HTML? I have the homepage completely finished, however I do not know how I can branch off from there and create webpages. Thanksya!
有人可以告诉我在 HTML 中创建多个网页的代码吗?我已经完全完成了主页,但是我不知道如何从那里分支并创建网页。谢谢!
回答by cheniel
Create a new page in another file in the same directory, new_page.html
. If you want to be able to go to that page from your homepage, add a link in the body like
在同一目录下的另一个文件中创建一个新页面,new_page.html
. 如果您希望能够从主页转到该页面,请在正文中添加一个链接,例如
<a href="./new_page.html">Link text here</a>