Tuesday, April 5, 2011

HTML vs CSS

HTML (hypertext markup language) tells the website where to put things on the page for example make the title centered or the picture on the left hand side half way down the page.It is the building blocks of the whole website.

CSS (Cascading Stylesheets) is they styling and design of the website for example all links on this site will be blue or every title has size 42 font. The CSS is the design consultant when the site opens up every time, it tells the site how to appear.

Example of CSS code 
 
h1 { 

    font-family: Georgia, "Times New Roman", Times, serif; 

    font-size: 18px; 

    font-weight: bold; 

    color: #000000; 

    } 
h2 { 

    font-family: Georgia, "Times New Roman", Times, serif; 

    font-size: 16px;

    font-weight: bold; 

    color: #000000; 

    border-bottom: 1px solid #C6EC8C; 

    }  

No comments:

Post a Comment