Follow the next steps to create your first site!!
- Download & install Visual Studio Code
- Create a folder with the name: my-first-site
- Open Visual Studio Code
- Open my-first-site using Visual Studio Code
- Create the following files inside the my-first-site folder :
- Read and write the following code on each document
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First Site</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div>
<h1>Hello World!!!</h1>
<p>Now let's conquer the world!!</p>
<button>Click Me</button>
</div>
<script src="script.js" type="text/javascript"></script>
</body>
</html>
body {
background-color: lightgray;
font-family: Arial;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
height: 90vh;
justify-content: center;
}
h1 {
font-size: 72px;
}
p {
font-size: 28px;
}
button {
color: white;
font-size: 125%;
border-radius: 4px;
border: none;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
background: rgb(28, 184, 65);
padding: 10px;
outline: none;
cursor: pointer;
}
button:hover {
background: rgb(66, 184, 221);
padding: 12px;
}
window.onload = function() {
var button = document.querySelector('button');
button.addEventListener('click', function() {
alert("Let's Rock!!");
});
}
- Download the following favicon.ico to my-first-site folder
- Go to the my-first-site folder and double click the file
index.html
- You should see a web page like this one:
At this point we created our first web but we can only access it from our computer as it's running locally. To be able to publish it we need a free hosting and a domain.
- Open a browser and navigate to https://www.awardspace.com
- Click on
Free hosting
- Click on
Give it a try
- Create your account using Facebook, Google or by input new credentials
- You'll get a confirmation email with the system login information (it will be something like: https://cp1.awardspace.net/beta)
- Confirmate you email account
- Login to the system using your credentials
- Configure a subdomain by clicking
Domain Manager
under the First Steps Made Easy - Select
Create a Free Subdomain
- Input a subdomain name and click the create button (this is the URL that we'll access online)
- Open a new tab and navigate to the URL that you just created. You should see a landing page
- Now that we have a hosting and domain configured we need to upload our site to publish it.
- Download & install Filezilla or any other FTP client
- Head to the AwardSpace Dashboard and click
FTP manager
section - Create an FTP account using username and password
- Click on your ftp user name options button
- Download FileZilla configuration file by clicking FTP configurations files button
- Open & configure Filezilla using the configuration file
- Click on the upper left icon to open the site manager
- Change the Login type: to normal
- Configure your Password: that you used while creating the ftp user
- On the left side of the
Site Manager
you have your local files and on the right the hosting one - Find you my-first-site folder on the left side
- Select all the files (press shift to select multiple files)
- Drag the selected files to the right side
- FileZilla will upload the selected files and place them on our hosting
- Once it's done uploading refresh the subdomain that we created
- Congratulations, you have your first site online!!
- Change the h1 and p wording (index.html)
- Set the body background-color to red (style.css)
- Refresh the local site to see the changes
- Upload the changed files to deploy the new site version
- Try to create your own version of the site