Unclebigbay's πŸš€ Blog

Unclebigbay's πŸš€ Blog

Hosting your Site on W3School Spaces

Learn how to host your website on W3School without stress

Hosting your Site on W3School Spaces

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

Yes, you read that well, lately, the w3school team have been making a huge upgrade to their website, from improving their UI designs to creating more premium courses with certificates, and now you can host your static websites on their platform for free 😍, isn't that cool of them 😎.

You will learn how to host your own website on W3School. You might want to check out my own space on w3school Here before you continue on this journey to creating your own space.

Prerequisite

Trust me when I say w3school is one of the best sites you can easily get programming knowledge from, so the good people working at w3school have made it easier for both pros and beginners to get their own space setup.

But to be more realistic you must have the following ready for your own space.

  1. Your HTML Code (of course)
  2. CSS Code (optional -HTML might be ugly though)
  3. JAVASCRIPT Code (optional)

If you have at least an HTML code in your .html file then you're good to go.


Without any further ado!!!


πŸ“’ Hey unclebigbay get straight to the point


Let's get started πŸ‘‡


1. Creating W3School Profile Account

Before you have access to this feature on the W3School site, you must have a profile account on their website.

  • Proceed to create your personal profile on W3school with just your email and password 🀭.

frame_generic_light (6).png

  • Fill in the next form with your names and click on submit, a mail containing your confirmation link will be sent to your registered email, click on it and your account should be verified at a glance πŸ‘‡.

frame_generic_light (7).png

  • Click on the return to login button and login with your registered credentials on the login page, you should be redirected to your dashboard, which will look something like below πŸ‘‡

frame_generic_light (8).png

  • Click on the Spaces button πŸ‘†, this will redirect you to the W3School spaces landing page, where we will get you started.

frame_generic_light (9).png

  • Click on any of the highlighted buttons to create your own space πŸ‘‡.

frame_generic_light (10).png

  • You can select an option to either choose from W3School web templates or to create a custom webpage yourself, we will be exploring the custom option because we know HTML (kidding) πŸ˜†.

  • Select the Start with a blank page option and click on continue. Don't do it later πŸ”₯πŸ”₯πŸ”₯

frame_generic_light (11).png


2. Naming your Space (URL).

Note that your space name (website) will be accessible on the internet through the custom URL for instance your-space-name.w3spaces.com

  • Click on continue when you've found a nice space name.

frame_generic_light (12).png


  • Wait a little bit for the great people of w3school to set up your space.

And Boom!!! 🌟🌟🌟 your space is ready πŸ’ƒπŸ’ƒπŸ’ƒ

frame_generic_light (13).png

From the screenshot of the space menu above,

  1. You can see your space custom domain.
  2. You can also easily monitor the number of requests from your site.
  3. View the number of people visiting your website (space).
  4. Know the number of data served.
  5. Know the number of files your space contains.
  6. Know the size of your file and finally
  7. You might want to delete your space

  • Visit your custom domain you should have this displayed πŸ‘‡

frame_generic_light (14).png

W3School also provides us with multiple options to set up webpages on our space, available options include πŸ‘‡

  1. Making use of the default HTML, CSS, and javascript files (you see why you only need the code).
  2. You can choose to create new files on your dashboard without leaving your browser.
  3. You can choose to upload your own HTML, CSS, or JavaScript files.

In this article, we will be making use of the 1st option, which is to make use of the default files w3school has provided for us.


1. Click on the code icon to edit your HTML file πŸ‘‡

frame_generic_light (16).png

  • W3School is amazing, your editor should look like below πŸ‘‡

frame_generic_light (17).png

  • You can save and preview your webpage in another tab πŸ‘‡

frame_generic_light (18).png

All you need to do is refresh the preview page each time you save your work.

2. Write some HTML, save and refresh the preview tabπŸ‘‡

frame_generic_light.png


3. Write some style for the HTML elements

  • Click on the cancel icon at the top right to edit the CSS also.

frame_generic_light (21).png

Save your file, but don't click preview, rather, visit your custom URL to preview, this is normal

4. CSS Output

frame_generic_light (20).png


5. Write some javascript and refresh your space

frame_generic_light (22).png


Wow, what a journey, I am glad you made it to the end of this article, if you enjoyed and learned from this article, I will like to connect with you.

Let's connect on

My friend and I are holding a meetup every Saturday to discuss JavaScript and other programming tips and to support ourselves.

You can be a part πŸ‘‡ of the community by joining our WhatsApp group



See you in the next article. Bye Bye πŸ™‹β€β™‚οΈ

image.png

If you found this helpful and want to support my blog, you can also buy me a coffee below.

Β 
Share this