1) CSC264 Lab Tutorial 1 Environment Setup
1) CSC264 Lab Tutorial 1 Environment Setup
LAB 1
Building Foundations: A Guide to
Setting Up Your Coding Environment
Prepared by
Abdul Hadi bin Abdul Talip
College of Computing, Informatics and Mathematics
UiTM Sarawak
Welcome to the exciting world of web development! Whether you are a total beginner or
have some coding experience, building your first website is an empowering journey. This
tutorial will guide you through the foundational steps to create a basic webpage. We will
start with the essentials and gradually build up your skills.
Embarking on your web development journey requires a few essential tools to bring your
ideas to life. First up is the text editor, your digital workspace for writing and editing code
such as Notepad++, Visual Studio Code or Sublime Text. Next, consider a local server, such
as XAMPP or WampServer, which lets you test your website before sharing it with the
world. Finally, you'll need a web browser like Chrome or Firefox to see how your creation
looks and behaves.
In this tutorial, we will be using Notepad++ as our text editor. It is a lightweight and feature-
rich text editor, perfect for writing and editing code. Here is a step-by-step guide on
downloading and installing Notepad++:
In this tutorial, we will be using XAMPP as our local server. Setting up XAMPP is a common
process for creating a local web development environment. Follow these steps to download
and install XAMPP:
To kick off the process of creating your HTML file, ensure that the XAMPP software is
running on your desktop. Follow the following steps:
With these simple steps, you will be all set to commence building your website within the
XAMPP environment.
After launching XAMPP, the next steps involve crafting your HTML file.
Follow the following steps:
1) Open Notepad++ and start writing your HTML code using the necessary tags. You
may follow an example shown in the following figure.
2) Once your code is ready, save the Notepad++ file to your project folder at
‘C:\xampp\htdocs’. Be sure to save the file with the desired name and ensure the file
type or extension is ‘.html’. For instance, you could name it ‘hello.html’.
By following these steps, you are effectively storing your HTML file in the correct project
directory, ready for testing and viewing within the XAMPP environment.
Now that you've successfully written and saved your HTML file, it is time to see your
creation come to life. You can view your website using two straightforward methods.
EXERCISE 1
Write a simple program to display the following website:
EXERCISE 2
Continue from the previous exercise, write a simple program to display the following
website:
1. Use line break tags <br> to break or end the description into several lines.
2. Use a paragraph tag <p>…</p> to create a space between the description and the next
information.
3. Save your program as “LabTutorial1Exercise2.html”