GitHub Pages
GitHub Pages is free, reliable, and the most common choice here.
1. Get your site online
- Create a GitHub account if you do not have one.
- Create a repository. Name it
yourusername.github.iofor a personal site, or anything else for a project site. - Add an
index.htmlfile with your portfolio content. - In the repository, go to Settings → Pages, set the source to your
mainbranch, and save. - Wait a minute, then open
https://yourusername.github.io(orhttps://yourusername.github.io/reponamefor a project site) to confirm it loads.
2. Submit your request
On the submit form:
- Record type:
CNAME - Target:
yourusername.github.io
3. Connect it at GitHub Pages
Once your subdomain is live, tell GitHub Pages to answer for it. That is the step that actually makes the site load — follow the GitHub Pages steps.
Notes
- For a project site the target is still
yourusername.github.io; GitHub routes the subdomain to the right repository. - Do not add a
CNAMEfile before we publish the DNS record; it can disable your defaultgithub.ioURL. - HTTPS may take up to an hour the first time.