Skip to content
Discussion options

You must be logged in to vote

To host your HTML, CSS, and JavaScript frontend using GitHub Pages, follow these steps:

✅ Step-by-Step Guide
Create a GitHub Repository

Go to https://github.com/ and create a new repository (public or private).

Give it a name (e.g., my-frontend-site).

Add Your Files

If you haven’t already, upload your HTML, CSS, and JS files to the repo.
You can:

Use the GitHub web interface (Add file > Upload files)
OR

Use Git locally with:

bash
Copy
Edit
git init
git remote add origin https://github.com/your-username/your-repo-name.git
git add .
git commit -m "Initial commit"
git push -u origin main
Enable GitHub Pages

Go to your repository on GitHub.

Click on Settings > Pages (or go to https://github.c…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@Ayush056github
Comment options

Answer selected by fatbull2710
Comment options

You must be logged in to vote
1 reply
@Ayush056github
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pages Host a static website, right from your repo Question Ask and answer questions about GitHub features and usage
4 participants