02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

A Basic HTML example

we create a basic web page so we can then connect it in the next video to the appache server.

Video Transcript

00:00All right, so it's time for us to create our first simple HTML page that we're going to use for the server
00:05Don't worry if you don't know HTML or if you do you could probably skip this video because we're just going to create a very very
00:11Simple HTML page or skim through it really quickly. All right, so I'm going to go right back in there
00:17And I'm going to create using the V editor
00:20I'm just going to go there sudo v and I'm going to approach our folder
00:25so I'm going to go inside of that www
00:27Folder and I'm going to type that example and I'm going to type that public area and I'm going to create a new file called index
00:33dot HTML now
00:35It's very important that I'm calling this index 8 index HTML because that's the default or one of the default names that servers usually look
00:43For when they open up a directory
00:45So if our server is going to be configured to this folder this example server is going to configure to this folder
00:50It's going to expect to find index HTML file or an index dot something file
00:56so we're going to approach that index HTML which is the most basic file and
01:00Again, it's going to ask me for a folder because I'm trying to access it as a sudo
01:03And I'm going to write ahead type inside of the queue so I could oh excuse me that I so I could go into
01:10Insert mode and when I'm in insert mode. I just want to create a very very simple HTML page
01:16So I'm going to start off with just opening and closing an HTML tag
01:21And I'm going to go right there in the first line. I'm going to create a head tag
01:28And I'm not going to explain the process of creating HTML pages in this
01:33Lesson, but if you do want to learn HTML
01:36We have many of them in our site zero to geek.com and in any of our affiliated sites where you might be watching this course
01:44So in the head area, I'm going to create just a quick title just so we could see that our page does exist
01:49I'm just going to create here. Let's going to call this my
01:54Site my HTML site example
01:59Okay, and I'm just going to go into the body itself and in my body. I'm going to create here. Just a quick h1 tag
02:06And by the way as I'm doing this and let me just finish this so I could because I can't really think so quickly
02:11My HTML sample site all right
02:14So I'm going to save that by clicking on escape getting out of the insert mode and I'm going to click on shifts easy
02:19To save it quickly so now I have that HTML index file inside of my public folder
02:24Wanted to emphasize one more thing so we remember talking about permissions in the last few videos
02:30What do you think the permissions of this new file is right so let's find out so let me again do that LS command minus L?
02:37that we've seen earlier and
02:39We're just going to go to that folder
02:41And we're just going to look into that public folder and see the file itself this new file that we've created
02:46notice because we were using the
02:49Sudu the file belongs to the root
02:53Not only that the file belongs to the root the root itself could only read and write that file by default
03:00The group that has access could read and the next following after that could read as well in other words
03:06The access level is literally only read now which is completely fine
03:12Although we don't really have to change anything
03:14But if we wanted to make sure that this file again belongs to our
03:20Apache we might want to do that and such as in a stage where we're done uploading all our different files
03:25It's to just run through and cycle through and make sure that all the files belong to our
03:31Down our user that we wanted to be which is Apache which we've seen how to do that in one of the previous videos
03:37But I just wanted to you to be aware now if the pub access level was different
03:42So we probably wouldn't have access to the files and our server wouldn't be able to show these files
03:48Now obviously you wouldn't really want to create your main editor on your Linux directly
03:53Probably you'd want your editor to be on your local folder
03:56and we're going to talk about that in a future video in a future title about how to create an
04:01FTP account or how to create different
04:04mechanisms of
04:06Communicating between your local server your local computer and your host
04:09But for now, we're gonna work locally on our server as we're building up our skill set and as we're building our
04:15capabilities on the server with that said
04:18I'm gonna wrap up this lesson because I want to move on in the next lesson where we actually go inside of the
04:24Configurations and I want to kind of split these steps
04:26So it's easy for you to later on decide what you want to rewatch without needing to watch every single step that we've created
04:31So see you in the next video when we actually go into the configurations and add this new site into our configurations
04:38So we'll be able to see it. So see you in the next video when we do that

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!