You don't need paid hosting just to publish a simple HTML, CSS, and JavaScript website. You can use GitHub Pages to host supported static websites directly from a GitHub repository.
What You Need
- Android phone or PC
- GitHub account
- Your HTML/CSS/JavaScript files
Step 1: To create your website, create these files.
index.html
style.css
script.js
Your index.html file is the main page of your website.
Step 2: Create a GitHub Repository. Go to GitHub and create a new repository.
Example:
anrtechworld
Step 3: Upload Your Website Files.
index.html
style.css
script.js
Make sure index.html is in the main website folder.
Step 4: Enable GitHub Pages. Open your repository
Settings → Pages.
Then select the branch and folder containing your website files.
After GitHub Pages publishes the site,
GitHub provides a public URL for it.
🤯 The Result
📱 Your Phone
↓
💻 Create Website Code
↓
🐙 Upload to GitHub
↓
🌐 Enable GitHub Pages
↓
🚀 Your Website Goes Online!
Your code → GitHub → Free live website! 🔥