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
CSS
-
RealBlackStuff
- Admin
- Posts: 17493
- Joined: Mon Sep 18, 2006 5:17 am
- Location: Mt. Cobb, PA USA
- Contact:
Re: CSS
NOT a Windows question.
Do a Google with "advantage of using CSS". The answer is out there (tons of it).
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.
Check out The Boardroom for Parts, Mods and Other Services.
Re: CSS
That's just plain wrong.banikian wrote:It seems like HTML can do everything that CSS and PHP can do.
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
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
Who is online
Users browsing this forum: No registered users and 6 guests




