CSS

Operating System, Common Application & ThinkPad Utilities Questions...
Post Reply
Message
Author
banikian
Posts: 1
Joined: Wed Nov 18, 2009 5:33 am
Location: CULCUTTA INDIA

CSS

#1 Post by banikian » Fri Nov 20, 2009 2:43 am

What is the advantage of using CSS or PHP instead of just old plain HTML? It seems like HTML can do everything that CSS and PHP can do.
________________
market samurai ~ marketsamurai ~ marketsamurai.com
Last edited by banikian on Fri Nov 27, 2009 1:54 am, edited 1 time in total.

RealBlackStuff
Admin
Admin
Posts: 17493
Joined: Mon Sep 18, 2006 5:17 am
Location: Mt. Cobb, PA USA
Contact:

Re: CSS

#2 Post by RealBlackStuff » Fri Nov 20, 2009 8:01 am

NOT a Windows question.
Do a Google with "advantage of using CSS". The answer is out there (tons of it).
Lovely day for a Guinness! (The Real Black Stuff)

Check out The Boardroom for Parts, Mods and Other Services.

yak
ThinkPadder
ThinkPadder
Posts: 1256
Joined: Thu Dec 06, 2007 3:17 pm
Location: NRW, Germany

Re: CSS

#3 Post by yak » Fri Nov 20, 2009 9:38 am

banikian wrote:It seems like HTML can do everything that CSS and PHP can do.
That's just plain wrong.

CSS gives you much more control over how the pages look like. You have control over every pixel. Pure HTML can't do that. Besides, the recent practice is to use HTML as a data container only and layout the page entirely using CSS. This lets you quickly switch designs too.

Both HTML and CSS are served to the client's browser which renders the page on the screen by combining them.

PHP is an entirely different beast. It runs on the server and dynamically (i.e. every time a client requests a page) generates the HTML (or other files) before they are sent back to the client.

Take this forum page for example. Every time you open a thread, the thread ID is sent in the URL to the server. The PHP running there uses this ID to get the posts from the database and generates a HTML for the browser. The browser renders this HTML by applying the layout from a CSS file(s) referenced in the HTML header.
ThinkPad™ X201 / AFFS-120
i5-560M 2.67Ghz, 8GB RAM, Samsung 840 Pro 256GB SSD, Win 8 Pro 64-bit, UltraBase X200, ThinkPad Compact USB Keyboard,
Dell U2713HM (2560x1440, IPS), ExpressCard USB 3.0 (2 ports, flush), Nexus 7+10

Post Reply

Return to “Windows OS (Versions prior to Windows 7)”

Who is online

Users browsing this forum: No registered users and 6 guests