How to put apart an HTML net net page on-line (on the Web) – 2022

Blog Postes


In this lesson we're going to study study the solution to put apart an html net net page onto the net so as that other folks can peek our net net page. We're furthermore going to study study the solution to verbalize up a net net site name for our net net page treasure mywebsite.com To use alongside you correct must take hold of the basics of html and css. Whenever you would treasure help with that I in actuality salvage a elephantine course in.

The outline. With that talked about let's score started. In general when we invent an online net page we invent some html and css recordsdata treasure this. Now one solution to peek this net net page is to originate the html file in our browser. The problem with that is that other folks can't peek this net net page because it's easiest on our computer. In say for.

Folks to peek this net net page, we salvage now to put apart it on the Web so how can we build that? There's in actuality many ways to put apart an online net page on the net however the arrangement for beginners is to use a provider known as github pages github pages is a free provider that we can use to put apart net sites on the net it's very straight forward to use.

And it helps us apply very top practices when putting in place our net net page so what we'll build is we're first going to use github pages to put apart an online net page on the net and then we'll study in extra detail about how this job works so let's trip to our computer and we're going to study study the solution to use github pages together.

And furthermore don't anxiety about taking notes i created a reference of every little thing that we realized in this video that you just would possibly maybe maybe be also salvage within the outline we're going to originate off on our computer and we're going to originate our net browser and then we're going to trip to github.com to use github pages we're going to desire.

A github yarn must you salvage already got one build obvious you log in must you don't that you just would possibly maybe even wade thru their signup job and invent a peculiar yarn and whenever you created a peculiar yarn build obvious you log into your github yarn so after we've logged into github we're going to trip to the highest correct corner right here i'm going to click on our icon.

And we're going to click on your repositories now a repository is in actuality treasure a folder and that is where we're going to upload our html and css recordsdata for our net net page so let's invent a peculiar repository so we invent a peculiar net net page and now we're going to beget within the.

Particulars for our unusual repository so we're going to add a repository name now this name doesn't in actuality subject it's correct for you to name which repository that is so i'm correct going to call it sizable straight forward bolt.

Web put and in actuality feel free to call this one thing else must you'd treasure the opposite probability that we salvage now to test is we must build obvious our repository is public gita pages is easiest free must that you just would possibly maybe salvage a public repository must you resolve a non-public repository you're going to must pay a price to use the provider.

And sooner or later we can leave all of those other choices to the default and we can click on invent repository at the underside all correct after we created our repository the next circulate is to upload all of our net net page's code into this repository however first we'll need an online net page to salvage a study with must that you just would possibly maybe salvage your salvage.

Web put that you just will need to use in actuality feel free to use that in another case i've linked a sample net net page within the video description that is fundamentally the youtube clone that we built within the html and css elephantine course so if we must use a sample net net page we can originate this hyperlink click on this code tumble down and then click on salvage zip.

Now as soon as that's done we can unzip it and that will give us the code that we can note with the next circulate is to upload all of our code to our github repository so let's return to our github repository and we're going to click on this upload an existing file hyperlink must you don't peek this you’ll also furthermore add a prick upload at the.

Discontinue of the url at the highest right here now all we salvage now to construct is tear and tumble all of the code for our net net page down right here so must you're the utilization of your salvage accomplishing build obvious to use that for me i'm going to use the accomplishing that i downloaded earlier so there's one thing we must note out of right here.

So if i return all of my code is in this folder now what i don't must build is to pull and tumble this folder down right here this is able to maybe invent an pointless extra folder in our github repository what we in actuality desire to construct is to originate this folder and then resolve all of our code and then tear all of the code into right here.

So as that'll steal a couple of moments for all of our code to upload so as soon as all of our code has executed importing you desires so to peek your total recordsdata down right here so we're going to scroll all of the vogue down to the very bottom and we're going to click on commit adjustments so now all of our net net page's code has.

Been uploaded to github and we're ready to put apart this on the net to construct that we're going to use github pages to be able to score admission to that we're going to trip to the settings of our repository right here and then we're going to trip all of the vogue down to this pages tab now to verbalize up github pages we're going to trip to this tumble down and we're going to click on main you would possibly maybe.

Factor in a determined word right here treasure master correct resolve the option that's now now not none so i'm going to click on main for the 2d tumble down i’m able to leave it because the default and then i’m able to click on do so as soon as i build that getup pages goes to steal all of our code and then submit them onto the net now this job would possibly maybe steal a couple minutes so we correct.

Possess to support for github to construct doing its thing so after a couple of minutes we desires so to refresh the net page right here and now we must disclose that our put is published at this url so as that arrangement the net net page that we had has now been published to the net and now somebody can score admission to it by going to this url in.

Their browser must you don't peek this right here that you just would possibly maybe even furthermore score admission to it the utilization of your github username dot github.io prick your repository name now we're going to originate this in our browser so i salvage the hyperlink right here and that i'm going to correct click on and then originate hyperlink in unusual tab and now if i originate that tab you'll peek.

That we salvage now a 404 net page so don't anxiety that is regular and we'll figure out study the solution to repair this in precisely a minute what we in actuality desire to construct is we're going to trip into the url right here and we're going to form an html file that we must originate so if i return to my repository and that i request at my code.

I in actuality salvage a couple of html recordsdata right here the principle html file for the net net page is named youtube.html so i'm going to form that in and originate that within the browser must you're the utilization of your salvage net net page build obvious you form within the html file that you just're the utilization of so return to my net net page right here.

And then i'm going to form in youtube.html and press enter and that's it we efficiently took an online net page that we created with html and css and put apart it on the net now we're going to study a minute bit bit extra about how this job works so let's return to our github.

Repository and we're going to steal a ogle at the html code in this accomplishing so i'm going to scroll down right here i'm going to click on youtube.html and that i'm going to request at this code right here so in this code we're loading some css recordsdata so right here we're loading a file known as sorts.

Long-established.css so if this became on our computer we would demand there to be a sorts folder beside this html file and then inner there will seemingly be a regular.css file now if we return to our repository so if i click on up right here you'll furthermore peruse that we salvage now a sorts folder and inner we salvage now a file known as.

Long-established.css so this implies that our github repository works the actual identical arrangement as our computer we load css recordsdata the identical arrangement we furthermore load photos the identical arrangement and very top grand every little thing else works the identical as if it's on our computer so because every little thing works the identical right here is all we salvage now to construct to submit our.

Web put onto the net first we write our html and css code on our computer as regular and then when we're done we correct upload that code to a github repository and github will steal care of the rest and put apart that net net page on the net now the closing thing we're going to quilt in this fragment is that if we return to our.

Web put so bear in mind that if we didn't salvage a file at the end right here so if i resolve this html file and press enter we score a 404 net page i'm going to showcase what this means and how we can repair it so when we form a file at the end of this url treasure youtube.html.

We're telling github pages to load this youtube.html file however if we don't specify any file this in actuality looks to be like for a file known as index.html so this url is fundamentally a shortcut for prick index.html and if we return to our repository.

And that i click on right here you'll peruse that we in actuality don't salvage an index.html file so as that's why it's exhibiting a 404 net page telling us the file is now now not found to be able to repair this all we salvage now to construct is to add an index.ht file into our repository so for this situation i in actuality desire my youtube.html to be the house net page so as that.

If i don't form this in right here this is able to maybe soundless load youtube.html so all we salvage now to construct is return into our repository and rename youtube.html to index.html so i'm going to trip in right here and then i'm going to click on edit this file and then up right here i'm going to interchange the.

Title to index.html and now i'm going to scroll down and press commit adjustments to do these adjustments so again it's going to steal a couple minutes for github to submit these adjustments onto the net so we correct.

Possess to support for it to construct after a couple of moments this desires to be executed so we're going to trip to our net net page and we're going to click on refresh and now we desires to be loading our youtube homepage without needing to specify youtube.html within the url so in this lesson we realized study the solution to steal.

A net net site that we created with html and css code and then put apart that on the net the utilization of github pages for now listed right here are some exercises that you just would possibly maybe even build for your salvage to salvage a study the utilization of github pages in this fragment we're going to study study the solution to verbalize up a net net site name for our net net page treasure.

Mywebsite.com this goes to construct it loads simpler for oldsters to score admission to our net net page because they are able to form within the domain name into the browser as a replacement of that url that github pages gives us so there are two steps to this job the 1st step is to score a net net site name and the 2d step is to hyperlink our domain name to github pages.

Let's originate with getting a net net site name now must you salvage already got one which you will need to use in actuality feel free to skip to this time within the video in another case we're going to study study the solution to score a peculiar domain name to score a peculiar domain name we salvage now to steal one from a firm known as a net net site registrar so these are firms which would possibly maybe be certified.

To sell domains now domains are now now not free however they're furthermore now now not pricey as an illustration a net net site ending in dot com normally charges about 10 to 15 a year and whenever you register a net net site name that name is now taken so other folks can't register it that's why we can't steal youtube.com anymore so now that we heed domain.

Registrars which one must we use the domain registrar that i counsel the most is a firm known as namecheap that is fundamentally what i use for all of my net sites i salvage that they’ve the very top prices and their net net page is the very top to use so as that's why i counsel them to trip to namecheap that you just would possibly maybe even click on this.

Hyperlink within the video description to be transparent that is my affiliate hyperlink this means must you steal your first domain name thru this hyperlink it won't cost you the rest extra however namecheap will give me about two to three greenbacks so that is a colossal solution to toughen this channel without any extra cost to you thanks so grand.

So now we're gonna trip into namecheap and we're gonna study together study the solution to steal a net net site name to trip to namecheap that you just would possibly maybe even click on this hyperlink within the outline now after we're on the house net page we're going to trip into this fragment known as domains and we're going to click on up right here and then in this article field right here.

We are able to look a net net site name that we treasure so steal showcase of that we can't steal a net net site name that has already been registered as an illustration if i search in right here for youtube.com and that i search clearly youtube.com has already been registered and it's going to portray me.

That i’m able to't steal this domain so we're going to must attain up with one thing that hasn't been taken sooner than you will need to resolve one thing that's related to what your net net page is ready now must you're now now not in actuality obvious what that is but one suggestion that i salvage is to steal your first name lastname.com that is in actuality pleasant must you would treasure to.

Possess a inner most net net page must you're shopping for jobs as an illustration so for me i'm going to search my first name which is simon and my closing name bao.com now relying on what your name is that this can even or would possibly maybe now now not be taken if it has now now not been taken that you just would possibly maybe even trip ahead and add it to your cart.

Otherwise if it has been taken corresponding to you peek right here we salvage now a couple choices the vital probability is to interchange the dot com to one thing else so one other standard one is dot derive and if i look that you just'll peek that we can add this to the cart now must you would treasure to stick with dot com you're gonna must interchange one thing in.

The front right here so as an illustration i'm going to add the word dev because i'm a developer so as soon as i add that you just would possibly maybe maybe be also peek that simon boudev is equipped and that i'm going to add this to my cart so steal a couple of moments to achieve up with a net net site name that you just treasure and then add it to your cart and then we'll continue.

So whenever you've picked a net net site name that you just treasure we can trip to our cart up right here and we're going to click on peek cart and we can normally leave all these choices because the default correct be obvious that you just would possibly maybe salvage domain privateness enabled in another case you're going to score spammed so after we checked every little thing right here and it looks to be like lawful we're going to train our.

Uncover so at this level you're going to must invent a namecheap yarn we need this yarn because in a while we're going to control our domain name and hyperlink it to github pages so build obvious you wade thru the signup job and invent a namecheap yarn and then login to your yarn.

So whenever you've created a namecheap yarn and also you've logged in we can return to our cart right here we're going to click on peek cart and then train our say and then right here we're going to salvage the checkout net page so correct be obvious every little thing looks to be like okay.

And click on pay now to register your unusual domain and that's it we efficiently registered our domain name now to peek our domain name we can return to the house net page right here and we're going to trip into our yarn and we're going to trip into the dashboard and now if we request inner our dashboard.

That you just must peek the unusual domain name that we correct purchased so now that we salvage now a net net site name we're ready to transfer on to the next circulate which is to hyperlink our domain name to our github pages now sooner than we can study study the solution to construct that we in actuality desire to study a minute bit bit about how the net works when we originate our browser and we consult with.

Our github net page's net net page how precisely does this work so first of all on github aspect they're running an online server an online server is correct a fraction of system that we bolt on our computer you potentially use an online server sooner than must you make use of the code editor vs code the vs code extension live server fundamentally.

Runs an online server on our salvage computer however in this case github is running an online server on their computers so what precisely does an online server build the principle thing is that it would possibly maybe most likely most likely be in contact with a browser by typing in a url within the browser we can demand the on-line server for a sure file as an illustration if i form in.

Youtube.html the on-line server will give us benefit that html file if i form in sorts header.css the on-line server will give us benefit that css file and that's very top grand it our browser can demand the on-line server for recordsdata if we happen to score benefit an html file this is able to maybe showcase the net net page as a replacement of giving.

Abet the text of the file however net servers are correct system which arrangement they want a pc to bolt on so on github aspect they’ve a pc that runs their net server this computer that's running the on-line server is named a bunch must you've heard of a webhosting firm this firm fundamentally will come up with computers to.

Bustle your net server now the next theory we salvage now to heed is ip addresses every system that connects to the net whether or now now not it's your computer or your cell telephone or github's computer is given an ip deal with an ip deal with is in actuality a cell telephone number excluding it's for the net.

So correct treasure the vogue that you just would possibly maybe even contact another particular person the utilization of their cell telephone number your system can contact one other system across the net the utilization of an ip deal with and ip addresses are weird and wonderful so an ip deal with looks to be like one thing treasure this or one thing treasure this that is ip version 4 and that is ip version 6. we salvage now version 6 because.

We're form of running out of ip addresses for version 4. it's form of treasure how we bolt out of cell telephone numbers now the closing fragment to this puzzle of how a browser is prepared to contact github is that we salvage now to hyperlink our domain name to github's ip deal with we can verbalize up a hyperlink between a net net site name and an ip deal with inner our domain.

Registrar or where we sold our domain name from after we verbalize this up we can form within the domain name into our browser and now our browser goes to contact the ip deal with that is linked to that domain so fundamentally our computer goes to be contacting github's host and as successfully github's net server and that's how we.

Salvage our recordsdata from github pages so fundamentally in disclose to construct all of this work we correct must verbalize up this hyperlink between our domain name and github net page's ip deal with this hyperlink is named a dns portray or a net net site name machine portray so now we're going to study together study the solution to verbalize up a dns portray inner our domain registrar.

The first step is to trip to our domain registrar and log in so i'm the utilization of namecheap however build obvious to trip to the domain registrar that you just're the utilization of as a reminder your domain registrar is the net net page where you sold your domain name from and don't anxiety must you're the utilization of one other domain registrar the.

Course of is terribly identical and also you desires so to use alongside with this video correct in case i salvage left instructions for other domain registrars within the outline so on namecheap i'm going to trip up right here and click on on yarn and that i'm going to log in after we've logged in we're going to trip.

Into the settings for our domain name for namecheap we can trip to the domain list right here and then scroll down and salvage the domain name that we must use and then click on deal with and sooner or later we're going to trip to the stepped forward dns tab right here and we're going to scroll down and we're.

Going to request for a table that looks to be like treasure this must you're now now not the utilization of namecheap don't anxiety the arrangement is terribly identical you correct must trip to the settings to your domain name and then request for a table that looks to be like treasure this must you would treasure make it simpler to can search in google.

Contrivance up dns info and then your domain registrar i furthermore salvage a hyperlink within the outline with instructions for other domain registrars so this table allows us to invent dns info for our domain name so as a reminder we're going to invent a dns portray to hyperlink our domain name to an ip deal with.

So first i'm going to click on add unusual portray right here and now we're going to beget within the values for our dns portray don't anxiety if this looks to be like diversified for you dns info steal the identical four regular values the vital worth we're going to beget out is the form so dns info can hyperlink diversified forms.

Of information to a net net site to hyperlink an ip deal with we're going to use an a portray next we're going to verbalize the ttl so ttl stands for time to live this fundamentally says that if we exchange our dns info how lengthy does it steal to update across the net a short ttl arrangement the dns adjustments will.

Be up up to now very hasty a lengthy tdl arrangement that this is able to maybe be up up to now extra slowly lengthy ttls are a minute bit bit extra efficient however for this situation we're going to determine 5 minutes now if your domain registrar doesn't salvage a tumble down treasure this you're going to enter the cost 300 which is 300 seconds or 5 minutes.

And now we salvage now two values ultimate we're going to originate with the vital one right here that is named the sub domain a sub domain is in actuality the fragment of a url in front of a net net site name that is pleasant must you would treasure to salvage multiple net sites below the identical injurious domain name.

As an example youtube.com is frail for looking out at movies and then studio.youtube.com is a separate net net page for managing your channel in our instance we don't in actuality desire a subdomain so we're going to leave this as smooth on namecheap to leave it as smooth we.

Possess to form at however for other domain registrars that you just would possibly maybe even potentially leave it as smooth now the closing worth that we salvage now to give it’s the ip deal with that we must hyperlink to this domain name take that we must hyperlink our domain name to the ip deal with of github pages so first of all how can we uncover github.

Online page's ip deal with to construct that we're going to trip to a peculiar tab and we're going to search dns look up and then we're going to scroll down and trip to this net net page so this system allows us to search a.

Enviornment name and peek which ip addresses are at showcase linked to it so over right here we're going to form in our github username so for me that's sizable straight forward dev 1 and then we're going to form github dot io.

So must you take that is the domain that github pages gives us by default for our net net page so now i'm going to click on right here for dns look up and it's going to showcase me the ip addresses which would possibly maybe be related with github pages so what we salvage now to construct is to steal these.

Ip addresses and invent a dns portray for every of them so let's wade thru the vital one together i'm going to click on this ip deal with and then i'm going to reproduction it and that i'm going to paste it in this dns info table correct paste it right here and then i'm going to.

Click done and now our first dns portray has been created don't anxiety if the opposite info disappear those are correct the defaults that namecheap gives us if we don't salvage another info so sooner or later we're going to invent dns info for the opposite three ip addresses that we peek right here so in actuality feel free to cease the video and build it.

Yourself for note in another case i'm going to like a flash forward and we can transfer on to the next circulate after we're executed we must salvage some dns a info that hyperlink to the ip addresses of github pages the closing thing we salvage now to construct right here is to verbalize up a particular sub-domain known as www.

Now technically that is now now not in actuality crucial and what we salvage now right here will soundless work however that is recommended by github pages there are furthermore some technical causes for putting in place the www subdomain however they're too stepped forward for this video so i'll leave a hyperlink within the outline must you would treasure to read extra.

To verbalize up the www subdomain we're going to trip and invent a peculiar portray and this time as a replacement of deciding on an a portray we're going to scroll down and resolve the cname portray so what’s the cname portray an a portray fundamentally links a net net site name to an ip deal with whereas a cname portray links a net net site name to at least one other.

Enviornment name so this makes it a minute bit simpler to hyperlink to github pages without needing to take hold of their ip addresses so for this dns portray this worth goes to be our subdomain so we're going to verbalize up www and right here we're going to form within the.

Enviornment name that we must hyperlink to so we're going to form in our github username for me that's sizable straight forward dev tester 1 and then dot github dot io and sooner or later for the ttl right here we're soundless going to resolve 5 minutes.

Or 300 relying for your domain registrar and now we can do these adjustments and that will build our setup so as that is your total dns info that we need now that you just would possibly maybe even be questioning why up right here we didn't correct use a cname portray that's because we can't use a cname portray with.

The injurious domain name we can easiest use cname info with a subdomain treasure www so don't anxiety that is one thing that you just correct score frail to as you’re employed with dns info extra one other thing you would possibly maybe peruse is that we easiest verbalize up info for the ipv4 addresses it's a lawful belief to furthermore verbalize up the ip.

Version 6 addresses because we're transferring against that in due course however for now it's now now not crucial so i'll leave putting in place ipv6 as an exercise now that we've executed putting in place our dns info the closing step we salvage now to construct is to return to our github repository and portray github pages which domain name we must use.

So let's trip to a peculiar tab right here and we're going to return to github.com and build obvious you log in and then we're gonna click on the highest correct right here and trip to your repositories and then originate the repository for our net net page which is that this one.

And then we're gonna trip into the settings and then we're going to trip to the pages tab right here and sooner or later we're going to scroll down and we're going to portray github pages which domain name we must use so right here's where we enter the domain name that we verbalize up earlier.

So for me it's simonbowdev.com and sooner or later we click on do and that's it our domain name must now be verbalize up precisely steal showcase of that relying for your domain registrar it would possibly maybe most likely maybe steal about 24 to 48 hours to your dns info to update.

So if it doesn't work you correct must be patient and then try it again later now must you peek this hyperlink right here that you just would possibly maybe even correct click on it and then originate hyperlink in unusual tab in another case that you just would possibly maybe even form your domain name within the url at the highest right here so now that you just would possibly maybe even peek that our domain name is neatly verbalize up for our github pages.

Web put the closing thing we needed to construct is peruse that it says now now not stable right here so we salvage now to verbalize up one thing known as https https is a safety measure that encrypts all info flowing between our browser and the net net page so this prevents an attacker from reading our info and potentially our passwords.

To verbalize up https and github pages it's very straight forward we're going to return to github pages and then we're going to scroll down and we correct must test this checkbox now there is a job that github pages has to construct within the good thing about the scenes to verbalize this up so we correct must support for this job to construct and then refresh the.

Online page and now this checkbox desires to be enabled so we can test it and that will enable https on our net net page now let's trip to our net net page we're going to trip to the highest right here and at the front we're going to form https.

Colon prick and press enter and now it is top to peek a lock icon right here indicating that https is enabled and that's very top grand it in this fragment we realized study the solution to score a net net site name from a net net site registrar and we realized study the solution to hyperlink our domain name to.

Our github net page's net net page the utilization of dns info particularly the a portray and the cname portray listed right here are some exercises to make it simpler to salvage a study working with domains and dns info thanks for looking out at we realized study the solution to steal an online net page that we created on our computer the utilization of html and css code and put apart.

That on the net we furthermore realized study the solution to score and verbalize up a net net site name for our net net page must you're attracted to extra classes that you just would possibly maybe even test out my html and css elephantine course or must you build that you just would possibly maybe maybe be also test out my javascript course my name is simon from sizable straight forward.dev i favor to construct a tech occupation doubtless for somebody must that you just would possibly maybe salvage any questions or.

Comments please leave them down below and that i'll peek you within the next video

Sharing is caring!

DZ4Team

DZ4Team is a Web development team, We offer all types of scripts, installing, supporting and hosting. Contact Us: https://fb.com/DZ4TeamSupport

https://dz4team.com

Leave a Reply