GH-900 ยท Collaboration tools
What does GitHub Pages do?
What GitHub Pages hosts (static sites from a repository), publishing sources, and typical use cases like docs and portfolios.
Key points
- GitHub Pages hosts static websites straight from a repository, such as documentation, project pages and portfolios. You choose a publishing source: deploy from a branch (the root or a /docs folder) or a GitHub Actions workflow.
Practice questions
What does GitHub Pages host?
- Static websites from a repository
- Server-side PHP applications
- Relational databases
- Container images
Show answer
Answer: A. Static websites from a repository
Pages serves static content. Server-side runtimes, databases and images need other services.
Which are valid GitHub Pages publishing setups?
- Deploy from a branch, root folder
- Deploy from a branch, /docs folder
- Deploy from a branch, /src folder
- A GitHub Actions workflow
- Deploy from a gist
Show answer
Answer: A. Deploy from a branch, root folder, B. Deploy from a branch, /docs folder, D. A GitHub Actions workflow
Branch publishing allows the root or /docs; Actions is the other source. /src and gists are not options.
GitHub Pages can run server-side code, such as a backend API, for your site.
Show answer
Answer: False
False. Pages hosts static files only; dynamic backends need another service.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
