PDA

View Full Version : What is the difference between HTML coding


Tre
06-05-2007, 08:00 AM
and CSS coding?

imsurfing2000
06-05-2007, 08:01 AM
CSS is part of HTML

HTML is the main language a browser uses to make your pages.

CSS fits inside teh HTML to make a bunch of simpel rules.

IE: Bigtext = Fontsize 12
colour 1 = blue
colour 2 = red

So if the HTML points to colour2 its really saying use red

If colour2 is used lots in the code and the programmer wants to change every recorring copy of it to green then they only need to change the above value once to effect the whole page.

Hope this helps.

Paul W
06-05-2007, 08:50 AM
HTML- Hyper-Text Markup Language

CSS- Cascading Style Sheets

CSS is a language of programming that operates within the confines of HTML. You know how some web pages are all Flash? Well, those flash pages are still operating within HTML. HTML can be viewed as the mother and all other web programming languages as the children.

This site will give you some cool CSS info

www.w3schools.com/css/default.asp

I hope that helps!

rainofkayos
06-05-2007, 12:01 PM
Think of HTML as a suite of languages (even thought thats not what it is just for now)
you create web pages with HTML,, however nowadays a page that some one would want to see would include flash design, java scripts, and the designer probably used CSS to create the formatted nice constant effect of pages on a site,,
ie. Say you want to design a site,,
but the different pages on the site should have the same type of formatting,
by linking CSS to HTML documents you can make all the H1 tags look one way by simply creating your CSS properties and inserting them properly. HTML hypertext markup language
CSS cascading style sheet
The big difference is one embodies the other HTML uses CSS to make more presentable and uniform sites
you can also go to www.w3schools.com if i just confused you more... sorry lol

Cunnilinguist
06-05-2007, 12:47 PM
Simplest answer: CSS is technically part HTML. It is just a format for it. Think of it this way: You and someone else both read the same page of news stories. The site may allow you to customize the way the page looks to suit your needs or style. All of this is just a CSS script for the page. The source page would be exactly the same for everyone, though you may opt to see it differently through the use of a CSS script.

Another option is that you may want to format loads of pages the same way without having to change the code on every single page. You could accomplish this through a CSS script as well. It is just a simplifier, a formatter, a customizer.