-
Go to GitHub and log in.
-
Click on the New Repository button
-
Enter a repository name (e.g., temp).
-
Choose Public (required for GitHub Pages).
-
Click Create Repository.

-
Click on ‘creating a new file’. You will be redirected to a new page
-
Give your file an appropriate name. (e.g. - index.html)
-
Write or copy-paste your code in the given text field. It will look something like this
- Click Commit changes to finalize the upload


- Navigate to Settings in your repository


- Click Save to activate GitHub Pages.

- After a few moments, your website will be live
- Navigate to Settings, scroll down to the Pages section and click Visit site.
- Open the link in a browser to verify everything is working.
