天天看點

把html設定為桌面項目_如何設定您HTML網站項目

把html設定為桌面項目

How To Build a Website With HTML 如何使用HTML建構網站

This tutorial series will guide you through creating and further customizing this website using HTML, the standard markup language used to display documents in a web browser. No prior coding experience is necessary but we recommend you start at the beginning of the series if you wish to recreate the demonstration website.

本教程系列将指導您使用HTML(用于在Web浏覽器中顯示文檔的标準标記語言)建立和進一步自定義此網站 。 不需要任何編碼經驗,但是如果您希望重新建立示範網站,建議您從本系列的開頭開始 。

At the end of this series, you should have a website ready to deploy to the cloud and a basic familiarity with HTML. Knowing how to write HTML will provide a strong foundation for learning additional front-end web development skills, such as CSS and JavaScript.

在本系列的最後,您應該擁有一個可以部署到雲的網站,并且對HTML有了基本的了解。 知道如何編寫HTML将為學習其他前端Web開發技能(例如CSS和JavaScript)奠定堅實的基礎。

The first thing to do when creating a new website project is to create a project directory (or folder) to store all the files that will be created in the process. This tutorial will walk you through the steps of setting up folders and files necessary for building your website with HTML.

建立新的網站項目時,要做的第一件事是建立一個項目目錄(或檔案夾)來存儲将在此過程中建立的所有檔案。 本教程将引導您完成設定檔案夾和檔案的步驟,這些檔案夾和檔案是使用HTML建構網站的必要步驟。

For this website project, we can continue using the

html-practice

project directory and

index.html

file we created earlier in the tutorial series. (If you have not been following along this tutorial series and need instructions for setting up a project directory and

index.html

file, please see our earlier tutorial in this series Setting Up Your HTML Project.

對于此網站項目,我們可以繼續使用我們在本系列教程前面建立的

html-practice

項目目錄和

index.html

檔案。 (如果您還沒有一起設立一個項目目錄,本系列教程和說明需要以下

index.html

檔案,請參閱本系列我們之前的教程設定你HTML項目 。

Note: If you decide to choose your own name for the directory, make sure to avoid character spaces, special characters (such as !, #, %, or others), and capital letters, as these can cause problems later on.

注意 :如果您決定為目錄選擇自己的名稱,請確定避免使用字元空格,特殊字元(例如!,#,%或其他)和大寫字母,因為它們以後可能會引起問題。

Next, we’ll format the

index.html

file to serve as the website’s homepage. The first step in formatting a web document is to add the

<!DOCTYPE html>

declaration to the first line. Make sure your

index.html

file is clear and then add

<!DOCTYPE html>

to the first line of the document.

接下來,我們将格式化

index.html

檔案以用作網站的首頁。 格式化Web文檔的第一步是将

<!DOCTYPE html>

聲明添加到第一行。 確定您的

index.html

檔案是清除的,然後将

<!DOCTYPE html>

添加到文檔的第一行。

This declaration tells the browser which type of HTML is being used and is important to declare as there are multiple versions of HTML. In this declaration,

html

specifies the current web standard of HTML, which is HTML5.

該聲明告訴浏覽器正在使用哪種類型HTML,并且由于存在多個HTML版本,是以聲明非常重要。 在此聲明中,

html

指定

html

的目前Web标準,即HTML5。

Next, we’ll add the

<html>

element by adding opening and closing

<html>

tags. The

<html>

element tells the browser that all content it contains is intended to be read as HTML. Your document should now look like this:

接下來,我們将通過添加打開和關閉

<html>

标簽來添加

<html>

元素。

<html>

元素告訴浏覽器它包含的所有内容都應閱讀為HTML。 您的文檔現在應如下所示:

<!DOCTYPE html>
<html>
</html>
           

From this point forward, all content that we add to our website will be added between the opening and closing

<html>

tags.

從現在開始,我們添加到我們網站的所有内容将添加在開始和結束

<html>

标簽之間。

We will begin adding content to our site in the next tutorial.

在下一個教程中,我們将開始向我們的網站添加内容。

翻譯自: https://www.digitalocean.com/community/tutorials/how-to-set-up-your-html-website-project

把html設定為桌面項目