Tuesday, 24 September 2013

CSS and HTML links

This week I learned the foundations of CSS and HTML coding. HTML in a nutshell is the basis for creating a webpage while CSS is used to control the presentation layer in webpages. It is more customizable in the presentation factor and better because styling can be kept separate from content. CSS is simply far easier to control presentation elements than HTML is.
For CSS to work with a HTML document you must first link it accordingly:



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

This example is taken from my tutors notes and was not done by me. The pink text is the .css file path. I always make sure to open the .css file in a web browser before adding anymore, in case there is something wrong with the file.

No comments:

Post a Comment