How Websites Work
In a past post, I covered how sites work. This covered the rudiments of what makes up a front-end, back-end and APIs. In this post, I will cover what you need to do, to make a website.
This article is expounded on the most proficient method to assemble a site, when you realize how to code HTML and CSS. I enthusiastically suggest CodeAcademy for learning. This article can help those pre-learning, however to have the option to do fabricate a site you should know HTML and CSS.
Step 1: Domain Name That Work (or ‘URL’)
Basically: what do you want people to type into their browser, for your website to appear?
I normally use Bluehost for this, You need to choose your name, and then go to these sites to find which domains are available. Typically you shouldn’t be paying more than £10 per year, unless it’s an intense domain like www.freecats.com.
It typically doesn’t matter whether you pick .com, .co.uk, .net, but my personal gut feeling is the following:
- .com makes you seem international/American
- .co.uk (/similar) makes you appear local
- .io makes you seem modern and tech-focussed
- .net makes it appear like you use Windows 95
- .info makes you look like a brochure
- .org feels like David Brent chose your domain name
This is what it looks like when you find a domain name that is available:
Step 2: Get hosting that works
Hosting is basically storage space that the domain points to.
Envision facilitating as structures that store data, some are immense stockrooms brimming with heaps of data (like Wikipedia), some are little structures, similar to private homes. Somebody online needs to get to your data, and the web has to realize where to discover this. So the individual sorts in your area name, and the space supplier goes “cool, I know where this data is put away”, and brings back the data on your facilitating. Bodes well in a tangled manner? Good.
I typically purchase facilitating and a space name together, in light of the fact that it implies they consequently attach. With GoDaddy (who I use yet they aren’t easy to understand) this ordinarily includes checking a crate saying ‘I need facilitating as well’. I profoundly, energetically suggest continually picking the littlest bundle, except if your business is now set up and getting traffic. You can generally redesign later.
In the event that you get them independently, you need to attach your space name to your facilitating. I really don’t have the foggiest idea how this functions, so get on live talk with one or the other organization, and they’ll walk you through it.
Step 3: Download a text editor
This is for coding in. You could use any text editor, but I recommend using a coding-specific one. Notepad++ is my favourite, and it’s very simple. Apparently it’s quite powerful in terms of add-ons, but I’ve never worked out how to use them.
Step 4: Create your files
So — you need a number of things here. Create a folder on your computer, and call it your website name.
Then, create a new file using your text-editor, name is ‘index.html’ and save it. Create another one called ‘style.css’ and save this. The .html/.css bit will tell your computer and text-editor what type of file it is.
Typically each page will be it’s on file (for basic websites), and the ‘index’ name will tell the browser: this is the homepage.
Create a folder called ‘images’ in your main folder.
Step 5: Link your files
At the point when you compose your HTML and CSS, you need them to understand what the other is doing. You do this by connecting your records, with one line of code. In the part of your HTML, the accompanying code reveals to it where your CSS is:
<link rel=“stylesheet” href=“style.css” />
Now, anything you do in your CSS can find it’s way to style your HTML.
Step 6: Write your code
Write your HTML and CSS as you learned. This is the bit I can’t help with.
When you use an image, store it in the ‘images’ folder, and refer to it as:
source=“/images/imagename.jpg”
At any point, you can test your site by opening ‘index.html’ with your browser (right-click, ‘open with’).
Step 7: Set up your analytics
Probably, you’ll need to realize how your site is doing.
So go to Google Analytics, and make a record. You’ll have to round out a couple of subtleties like timezone, sort of site and so forth
At that point, discover the following code. I can’t recall how to do this all things being equal and it can change a piece, so Google it. You’ll discover a case of code, which you simply duplicate, and afterward glue into the lower part of your HTML, simply over the </body> tag
This will not influence your site by any means, but to follow what individuals do, where they’re from, and so on and send this to Google Analytics. You can check this whenever, however it can require a couple of hours to ‘switch on’ completely.
Step 8: Get your site online!
So you have your envelope, and when you click on ‘index.html’ it loads like you anticipate. Amazing! You have a site chipping away at your PC, or “locally”
In any case, you need it to work for individuals not utilizing your PC. Go to your facilitating, and discover something many refer to as a ‘Record Manager’ or ‘Uploader’ or comparable. When you get a touch further developed, you can utilize FTP, yet for the time being this will do.
Basically transfer every one of your documents, to the facilitating. Test by visiting your area name, and you ought to have the option to see your site.
WELL DONE, YOU MADE A WEBSITE!