# 在Github建立靜態網頁 步驟如下: 1. 在[GitHub]( https://github.com/) 新增repository,命名為`自己帳號`.github.io - 帳號名稱 Clone repository - $`git clone` - 到本地端 新增一個檔案index.html,內容如下圖 ``` html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>我的網站</title> </head> <body> <h1>讚讚讚</h1> <div>測試首頁</div> </body> </html> ``` - 輸入指令: - $ git add . - $ git commit - $ git push - 輸入網址 https://[你的帳號].github.io/ 便可連上頁面
×
Sign in
Email
Password
Forgot password
or
Sign in via Google
Sign in via Facebook
Sign in via X(Twitter)
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
Continue with a different method
New to HackMD?
Sign up
By signing in, you agree to our
terms of service
.