954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

what is the difference between html and css?

what is the difference between html and css?
thanks

hugokang
Newbie Poster
1 post since Nov 2008
Reputation Points: 10
Solved Threads: 0
 
Rhyan
Posting Whiz in Training
240 posts since Oct 2006
Reputation Points: 21
Solved Threads: 26
 
what is the difference between html and css? thanks


using css, we can reduce the length of the code and increse effitiveness compare to html.

mohanbatchu
Newbie Poster
2 posts since Nov 2008
Reputation Points: 10
Solved Threads: 0
 

CSS stands of Cascading Style Sheet. It is used to customized the looks of classes and ids. It cannot control the content of the page.
HTML controls the contents of the page and a bit of how it is lay out.
HTML has a bit of customizing options, but CSS does most of the job.

I hope that helped you.

Agent Cosmic
Junior Poster in Training
51 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

css is an addition to html, not a replacement for it.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 
css is an addition to html, not a replacement for it.


Yes, but some obsolete and non-valid tags (font, body background etc...) were replaced with CSS.

lio04
Junior Poster in Training
78 posts since Mar 2008
Reputation Points: 27
Solved Threads: 4
 

The idea is to separate the document content from the formatting. The xhtml (which is the real replacement for html) contains the content, and the css contains the formatting.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

Yeah +1 for midimagic. Thats spot on.

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

XHTML isn't replacement to HTML. XHTML is the standard based on XML, but HTML is still not dead. (e.g. HTML5 is in development). Any developers makes our sites in HTML, important is in my opinion, wheter the site is valid and efficient. (sites should have been functional without image support in browser, in console browsers (links, lynx) and too for blind persons with readers. This is for me very important, therefore I'm building valid sites in XHTML Strict. That's no Dreamweaver, that's heavy work.) :)

lio04
Junior Poster in Training
78 posts since Mar 2008
Reputation Points: 27
Solved Threads: 4
 

html stands for hypertext markup language, whereas css stand for cascading style sheet. css reduce your work load and code size.

lets see how it reduce you work load. lets take an example you create a website of 10 pages. each page contains heading content, text etc. you give red color to your heading on every page. but now your client ask you to change red heading into blue. if you assign red color on every page then u have to change in every page.

but if you assign this using css then this will be work of few seconds means you just have to change red into blue only at one place.....

the only thing is you have to attach your css to ur html and you can control your any tag from here then it can be text color, size, style or border to table or image anything u like....

gud luck..

shruti sepra
Newbie Poster
19 posts since May 2008
Reputation Points: 11
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You