A finished website folder
Your folder should contain index.html and any CSS, JavaScript, or image files your page uses.
Use this guide when your website files are ready. The easiest permanent beginner path is Direct Upload: upload your folder, deploy, and share your .pages.dev link.
The simple upload flow
Remember: prepare the folder, upload it, copy the live link.
Cloudflare Pages hosts static websites very well. For today, keep the project simple and make sure the home page file is named exactly index.html.
Your folder should contain index.html and any CSS, JavaScript, or image files your page uses.
Sign in at dash.cloudflare.com. Use the account your teacher tells you to use.
After deployment, your site will have a link like project-name.pages.dev.
index.html.assets/style.css.If your teacher only wants a quick live preview, use Cloudflare Drop. Drag in a folder or zip, test the temporary public link, then claim it with a Cloudflare account if you need to keep it.
Best for beginners, one-page websites, and class demos. Use this when you do not need automatic updates from GitHub.
Go to the Cloudflare dashboard, then open Workers & Pages.
Select Create application, then choose the drag-and-drop Pages option.
Use a simple lowercase name such as amy-profile-site. Avoid spaces and special symbols.
Drag your whole website folder into the upload area. If you use a zip file, zip the files inside the folder, not an extra folder layer.
Select Deploy site, wait for it to finish, then open your .pages.dev link in a new tab.
Use this method when students already know GitHub or GitLab. It takes longer to set up, but Cloudflare can redeploy automatically after each push.
Put your website files in a GitHub or GitLab repository. The repository must already have at least one branch, usually main.
In Cloudflare, go to Workers & Pages, select Create application, choose Pages, then choose Connect to Git.
For a simple HTML site, leave the build command blank and use the folder that contains index.html as the output directory. For many beginner projects, this is the root folder.
Start the deployment. After it finishes, open the live link and submit it to your teacher.
Check that the file is called index.html. Also check that it is inside the folder you uploaded.
Check your CSS path. If the file is in an assets folder, the link might be assets/style.css.
Use matching filenames. photo.png and Photo.png can be treated as different files after upload.
Refresh the page. For Git projects, check that the latest deployment finished successfully.
| Situation | Best choice | Why |
|---|---|---|
| Fast in-class preview | Cloudflare Drop | No account is needed to start, but the temporary preview must be claimed to keep it. |
| First lesson or quick homework upload | Direct Upload | Fast permanent path: upload files and get a live link. |
| Group project with many updates | Git integration | Cloudflare can deploy again when the repository changes. |
| Advanced project with a build tool | Git integration or Wrangler | You can set a build command and output directory. |