如何创建多页面网站 [英] How do I create a multipage website
问题描述
我是初学者寻求帮助。我正在尝试创建一个信息网站,其中一些页面只是关于某个主题的信息,然后会有一个页面专门用于聊天室,用户可以在这个聊天室中与其他用户即时聊聊这个特定主题。
我试图让它变得尽可能简单。
所以第1页(主页)=网站描述和主题X
第2页(聊天室页面)=用户可以聊聊主题X的聊天室
第3页(信息页面)=用户可以阅读有关topix X的信息的页面
第4页(文章/博客页面)=包含许多文章的链接/关于主题X的其他网站/视频/文章的链接
顶部的导航栏=用户可以轻松访问所有这4个页面的导航栏。
我希望有人可以带领我朝着这个方向前进,我想让它变得尽可能简单。纯粹的html / css和javascript或聊天室的东西?我不太确定了。
谢谢
最好
Eyal Cohen
I am a beginner seeking some help. I am trying to create a informational website, with a few pages being just information about a certain topic, and then there would be one page dedicated to just a chatroom where users can instant chat with other users about this certain topic.
I am trying to make it as simple as possible.
So page 1 (main page) = Description of the website, and the topic X
page 2 (chatroom page) = Chatroom where users can chat about topic X
page 3 (information page) = page where users can read information about topix X
page 4 (article/blog page) = page with many articles/links to other websites/videos/articles about topic X
Navigation bar on the top = navigation bar where user can easily access all 4 of these pages.
I was hoping someone can maybe lead me towards the direction, I want to make it as simple as possible. Purely html/css and javascript or something for the chatroom? I am not so sure once again.
Thank you
Best
Eyal Cohen
推荐答案
从一个页面到另一个页面是非常基本的HTML,所以也许你应该从这里开始: HTML教程
如果你想要按钮(而不是链接),您可能希望添加javaScript。关于它的教程在同一个站点上,您的javaScript目标函数将包含 location.assign(....)以转到新页面。
Going from one page to another is pretty basic HTML, so perhaps you should start here: HTML Tutorial
If you wish buttons (instead of links), you may wish to add javaScript. A tutorial on that is on the same site, you javaScript target function(s) will contain location.assign(....) to go to new pages.
这篇关于如何创建多页面网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!