By the end of this lesson you'll take an HTML file made by an AI tool and turn it into a real website — with a link you can share with your students, your school, or your family. Everything happens in your browser. No coding, nothing to install.
上完這一課,你會把一個由 AI 工具做出來的 HTML 檔案,變成一個真正的網站,並得到一個可以分享的連結——傳給學生、學校或家人都能打開。全程在瀏覽器裡完成,不用寫程式、不用安裝任何東西。
GitHub is a free service that stores websites and shares them online. First, let's make your account.GitHub 是一個免費的服務,可以存放網站並分享到網路上。我們先建立你的帳號。
github.com打開 github.com
In your browser, go to github.com and click Sign up in the top-right corner.在瀏覽器前往 github.com,點右上角的 Sign up(註冊)。
teacher-anna. Lowercase letters and numbers work best.你的使用者名稱會出現在網址裡,選一個簡單的——例如 teacher-anna。建議用小寫字母和數字。
A repository (or "repo") is simply a folder that holds your website's files. Let's make one.一個 repository(簡稱 repo)就是放網站檔案的資料夾。我們來建立一個。
my-first-website. Use lowercase letters and hyphens, no spaces.輸入一個簡單的名字,例如 my-first-website。用小寫字母和連字號,不要空格。
Now we add the website file an AI tool made for you.現在把 AI 工具幫你做的網站檔案加進去。
index.html. That's the name GitHub looks for when opening your site. If your file has another name, rename it to index.html first.
你的主檔案名稱必須剛好是 index.html。這是 GitHub 打開網站時會找的名字。如果叫別的名字,請先改名為 index.html。
index.html into the box把 index.html 拖進上傳框
Drag the file from your computer into the upload area — or click choose your files. If your page has images too, drag them in as well.把檔案從電腦拖進上傳區——或點 choose your files。如果頁面還有圖片,也一起拖進去。
Last step — turn on GitHub Pages, the free feature that puts your site online.最後一步——開啟 GitHub Pages,這個免費功能會把網站放上網路。
https://your-username.github.io/my-first-website/
Wait 1–2 more minutes and refresh. The first publish takes a moment.
再等 1–2 分鐘後重新整理。第一次發佈需要一點時間。
Check the file is named exactly index.html, all lowercase.
確認檔案名稱剛好是 index.html,全部小寫。
Upload a new index.html the same way. The site updates in about a minute.
用同樣方式再上傳一個新的 index.html,約一分鐘後就會更新。
index.html file上傳了 index.html 檔案