Sitemap
PythonProgrammer

PythonProgrammer

I am currently a university student studying BSc Computer Science. I have been developing my own python projects for over 3 years now and run a python YtChannel

From HTML to GitHub Pages: Building My First Website

Discover how I transformed my curiosity about web development into a fully functional website for my YouTube channel hosted on GitHub Pages

6 min readJan 6, 2025

--

Press enter or click to view image in full size
A customized image, illustrating the development process on one side and the preview of the YouTube channel website on the other side generated by AI (Microsoft Copilot)
AI Image generated by Microsoft Copilot

Introduction

In the fast-evolving world of technology, having an online presence is no longer just an option — it’s a necessity. As a Computer Science student, I’ve always been curious about how websites are built and maintained. That curiosity led me to embark on a journey to create my very first website. Using only basic tools and my determination to learn, I transitioned from a complete beginner in web development to hosting a functional website on GitHub Pages. Here’s how the journey unfolded and what I learned along the way.

The Beginning: Learning HTML and CSS

My journey began with the fundamentals of web development: HTML and CSS. I was drawn to the simplicity and structure of HTML — a markup language that defines the structure of a webpage. CSS, on the other hand, brought the magic of design and styling to life. Together, these two tools enabled me to create basic webpages with headings, paragraphs, images, and buttons.

When learning HTML and CSS, I found W3Schools and their interactive editor to be extremely useful resources. The tutorials on W3Schools built a strong foundation, helping me learn the basics and encouraging me to delve into more advanced features. The interactive editor available on their website allowed me to experiment and preview my HTML, CSS, and JavaScript directly on the same webpage. Even now, I still use it when planning to add new features to my website, as it offers a quick and easy way to preview changes before deciding to implement them in the actual website files.

At first, my websites were simple — plain text with a few images and hyperlinks. But as I delved deeper into CSS, I began experimenting with colors, layouts, and responsive design. Suddenly, the static pages I created transformed into dynamic and visually appealing platforms. What was once a daunting task became an exciting challenge as I learned to bring my ideas to life.

Adding Functionality with JavaScript

Once I had a good grasp of HTML and CSS, I wanted to add interactivity to my website. This led me to explore JavaScript, a programming language that powers the dynamic features of modern websites. I started small, adding hover effects, image sliders, and interactive buttons. Gradually, I moved on to more complex features, like form validation and lightbox modals.

The introduction of JavaScript not only enhanced my website’s functionality but also deepened my understanding of programming logic. It was fascinating to see how even a few lines of code could create such impactful changes.

The Decision to Host on GitHub Pages

Building a website was only half the journey — I needed a way to share it with the world. That’s when I discovered GitHub Pages, a free hosting platform designed for static websites. As someone already familiar with GitHub for version control, it seemed like the perfect fit.

However, my initial attempts to set up the website on GitHub Pages were met with challenges. At first, I thought I could simply use the files I had, and GitHub would generate a webpage for me based on the repository. Unfortunately, that wasn’t the case. I tried the default method and the custom actions workflow method, but both kept returning errors I wasn’t familiar with. Even though AI tools and online solutions were available, I struggled to resolve the problem. I felt like I might never get my GitHub Pages website working.

Eventually, I discovered that a homepage named “index.html” was required in my repository to serve as the foundation of the website. Once I added this file, everything started to fall into place. Other pages were added over time, and I decided to use the website as a platform to promote my YouTube channel and deliver additional materials.

Through the GitHub Student Pack, I was even able to get a free custom domain for my website. Over time, it has developed into a comprehensive catalog of web pages that include Python tutorials from my YouTube channel, code files, Python minigames, image representations of videos, and more. This made it the perfect companion to my Python Tutorial YouTube channel.

Challenges and Lessons Learned

Like any project, building my first website came with its fair share of challenges. Debugging errors in CSS positioning and JavaScript code taught me the importance of attention to detail. Additionally, I learned the value of testing my site on different browsers and devices to ensure compatibility and responsiveness.

Get PythonProgrammer’s stories in your inbox

Join Medium for free to get updates from this writer.

One of the most significant lessons I learned was the power of iteration. My first attempt at a website was far from perfect, but I treated it as a learning experience. Each update and revision brought improvements, and with every mistake, I gained new insights.

Current Status and Future Plans

Press enter or click to view image in full size
A screenshot of the homepage of the website currently

At the moment, I haven’t made significant progress on the website for months. However, since I’ve recently resumed uploads on my YouTube channel, I’m planning to work on improving the website once again. Over the coming weeks and months, I aim to add new features, experiment with its design, catch up with recent video releases, and include additional materials to benefit the community.

Why This Project Matters

Building my first website wasn’t just an exercise in technical skills — it was a milestone in my journey as a programmer. It taught me how to plan, execute, and refine a project from start to finish. It also helped me understand the importance of user experience and accessibility, as I wanted my site to be intuitive and easy to navigate for all visitors.

Moreover, this project became a talking point on my CV, showcasing my practical skills and passion for learning. During interviews, I often find myself discussing the challenges I faced and how I overcame them, which highlights my problem-solving abilities and perseverance.

Advice for Aspiring Web Developers

For anyone looking to build their first website, my advice is simple: start small and be patient. Focus on the basics of HTML, CSS, and JavaScript before diving into advanced frameworks and tools. Platforms like freeCodeCamp and MDN Web Docs are invaluable resources for beginners. Additionally, don’t forget to leverage interactive tools like W3Schools, which allow you to learn and experiment in real time.

Don’t be afraid to make mistakes. Every bug or design flaw is an opportunity to learn and improve. And when it comes to hosting, GitHub Pages is an excellent starting point for static websites, offering a professional and easy-to-use solution for showcasing your work.

Looking Ahead

As I reflect on this journey, I’m excited about the endless possibilities in web development. My first website was just the beginning, and I’m eager to explore more advanced technologies like React, backend development, and full-stack frameworks. This project ignited a passion for web development that continues to drive me today.

Building my first website was more than just a technical achievement — it was a personal milestone that marked the start of a fulfilling journey. Whether you’re a Computer Science student or someone with a curiosity for coding, I encourage you to take the leap and create something of your own. You might be surprised at what you can achieve.

What about you? What cool websites ahev you made and have you ever used GitHub Pages? Feel free to answer these questions in the comments, and let’s inspire each other to build creative things that can help us in the future!

Relevant Links

Python Tutorials Website

Link to Portfolio Page

Python Youtube Channel

Python Programmer Instagram

Python Programmer X account (Twitter)

Python Programmer Discord (Join Now!)

--

--

PythonProgrammer

Written by PythonProgrammer

I am currently a university student studying BSc Computer Science. I have been developing my own python projects for over 3 years now and run a python YtChannel