banner



How To Upload An External Stylesheet

If you lot desire to change the appearance of webpages and then that the CSS is consistent with each other and so you can exercise this by creating a CSS file. To create a CSS file you lot volition demand to enter some CSS into a new Notepad file with no HTML, and so salvage the file. A CSS file is created the same fashion as a HTML file and when y'all save a file in Notepad, instead of saving information technology as an '.html' file you would save it with '.css' on the stop.

Now open a HTML file in Notepad with no CSS and enter the post-obit into the <caput> tag (supercede the text in bold with the name of your CSS file):

<caput>
<link rel="stylesheet" type="text/css" href="filename.css">
</caput>

Once done, open this HTML file into a spider web browser and meet what happens. The results should be based on what was entered into the CSS file. For instance if yous entered something that would modify the font family of h3 within the CSS file then you should expect to come across these results with all the webpages y'all use the to a higher place lawmaking in. By using External Style Sheets it means that whenever you make a modify to the CSS file it means that the change volition apply to every webpage that has the code and saves yous the fourth dimension of editing each webpage separately with the new code.

Now that you have created webpages with content and some sort of navigation between the different pages, I think I should conclude by discussing how to get these webpages onto the internet with your own website. Since hosting a website costs money, I will show you 000webhost.com and provide a tutorial of how to get a gratuitous sub domain.

000webhost.com

000webhost.com is a very popular web hosting site which enables you to upload your HTML files, CSS files and other necessary content and so that they tin be accessed via the internet. Click here or enter 000webhost.com into a search engine and you should become a webpage that looks something similar the paradigm beneath:

web hosting

000webhost.com homepage, Click to enlarge

Once hither click onto the 'Sign up!' button constitute at the bottom right of the folio which should open a new page, on this folio yous will be ordering your free spider web host and since you lot will be using a free host it means that y'all will be using a costless domain. This link: http://world wide web.jdavies3z.comyr.com is a gratis domain because y'all can run across that comyr is found within the address bar. Proper name the domain whatever you want and try to keep it as curt as possible, if somebody has already used the sub domain you have entered and so you will be asked to enter another. Go on by entering all the details and confirm your account by visiting your email inbox (check your spam if you don't receive 1 through the inbox). In one case confirmed yous will and so be able to sign in to do this click on 'Members Area' simply above the 'Sign Upwards!' button and enter your login details, if you click on your site and curl downward you should run into something familiar to the following:

web hosting step 2

Admission file manager, Click to enlarge

From this page you will meet many options available to yous however to upload the content y'all will need to click on the icon highlighted in cherry called 'File Managing director' The following page will show you all the files relating to the website including images and HTML files ('public html' has been highlighted in the image beneath because that is where all the content will be uploaded to):

web hosting step 3

File manager, Click to enlarge

From this page click the 'upload' push button and select or enter /public_html as the Upload Directory as shown below and and so from here select the files you want to upload from the 'scan' button, files you will demand to upload include all the HTML webpages you want to be displayed, CSS files and any images used in your webpages. And then past clicking on the green tick only below 'Upload files and archives' will upload all your files. (The fourth dimension it takes depends on the number of files and content) It is important to make sure you upload any images that were used otherwise they will not appear in your webpage when inbound the website online:

web hosting step 4

Uploading content, Click to enlarge

The following epitome shows all the content being uploaded into the 'public html' folder, now all you lot demand to practice is exam your website by entering your web address which tin can be seen at the top correct of the post-obit paradigm (your website address volition exist different from jdavies3z.comyr.com)

web hosting step 5

All content within 'html public' folder, Click to overstate

The side by side prototype shows the results:

web hosting step 6

Published website, Click to enlarge

That is all from me, withal if desire to keep expanding your cognition of HTML and CSS so I would again recommend using W3 Schools because it has a wide range of tutorials available for yous to use.

Source: https://jdavies3z.wordpress.com/category/external-style-sheets-and-uploading-websites-to-the-internet/

Posted by: puryearsinflowill87.blogspot.com

0 Response to "How To Upload An External Stylesheet"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel