What makes this website static?
All pages are saved as HTML files. Their style comes from CSS. The quiz uses JavaScript in the visitor's browser. There is no database, login system, or application server.
What does each file do?
| File type | Main job |
|---|---|
| HTML | Holds headings, text, links, and forms.|
| CSS | Controls colors, spacing, and layout.|
| JavaScript | Adds actions, such as checking quiz answers.
Why is index.html important?
A host can use index.html as the default page for a website or directory. The lab's upload folder places this file at the root so visitors can open the homepage.
What happens when traffic grows?
Scalability is the ability to handle more work. Elasticity is the ability to adjust capacity as demand changes. Managed hosting can handle much of this work without the website owner managing individual servers.
A content delivery network, or CDN, can keep copies of static files closer to visitors. It can reduce the amount of work sent to the original host.
Test your understanding →