简体   繁体   English

如何在 Visual Studio 代码中创建另一个 html 页面?

[英]How to create another html page in visual studio code?

I need to create another page for my website, because I AM DONE with my homepage, i am newer to coding, so please explain it very thouroghly and remember IM USING VISUAL STUDIO CODE thankyou anyone!我需要为我的网站创建另一个页面,因为我的主页已经完成,我对编码比较陌生,所以请非常详细地解释它并记住我正在使用 VISUAL STUDIO 代码谢谢大家!

VSC 图像

Simply add a new file at the top left corner.只需在左上角添加一个新文件。 then give it a name of you liking and an extension that you usign like .html然后给它一个你喜欢的名字和一个你使用的扩展名,比如.html

Then you write that new page like you wrote the first page and add links beween both sites with the <a href=""></a> link tag.然后,您像编写第一页一样编写新页面,并使用<a href=""></a>链接标签在两个站点之间添加链接。

I would say save your index.html as about.html.我会说将您的 index.html 保存为 about.html。 This way all you need to do then is edit the content.这样,您需要做的就是编辑内容。 The CSS file and all other items will still be linked. CSS 文件和所有其他项目仍将被链接。

FILE > SAVE AS  >  about.html

Edit the content for the about page and repeat the steps for each page.编辑关于页面的内容并对每个页面重复这些步骤。

In your index.html file you can link to your about.html file like this在您的 index.html 文件中,您可以像这样链接到您的 about.html 文件

<a href="about.html>ABOUT US</a>

This will be the quickest way.这将是最快的方法。 Then you wont have to start from scratch with every page.然后你不必从头开始每一页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM