If the hoster supports PHP, do they support CSS and HTML, too?

Kasey

New member
I understand PHP is part of HTML, and my website is written in CSS and HTML. I'm currently looking for a free host, and every one I look at says they support PHP, but they don't say anything in specific about CSS and HTML. But since PHP is part of HTML, does that mean they'd support CSS and HTML anyways?
 
Basic Answer: Yes, all web hosting companies will have HTML & CSS engines. PHP & HTML don't have much in common, they are used for different purposes.

Long Answer:

Client Side Scripting – Code that is being processed by your web browser on your local computer.

Server Side Scripting – Code that is being processed by a server (the computer or computers that hold the current website’s information).

What are the different uses of Client-Side and Server-Side scripting? HTML is a client-side language. When your HTML code is being processed, it is being processed and outputted in and on your web browser. The changes that happen to your web browser, a button being placed on the screen as a result of some HTML code, are all done locally. These changes will not be visible to the other users of the website unless these changes are being dictated by a server side language. Using a server side language your actions done locally (in your web browser) may be interpreted by the server as an action that should affect all users viewing the webpage. This comes in good use when you are creating a blog type website. If you do not know already, in a blog based website, the currently logged in user is able to post text that may immediately be added to the website for others to view. When the user clicks the submit button the server side script is communicating with the server telling it to place this text, found in the textbox, in a folder that may be called ‘Posts’, all located in the same server as the website. When the user refreshes the page or when another user logs in to the website, as the HTML is being outputted to create the basic design, server-side code is being processed to retrieve the data found in the Posts folder. Any action that requires interaction with the server must be done in a server side language. If you take a moment to think about it, HTML does not require any interaction with the server. The HTML file will be located on the server; it may contain links to other files on the server, but never is the HTML code editing, uploading or deleting a file on the server. Therefore as a conclusion the HTML language is strictly client-side.
 
CSS and HTML depends on the client's browser(Firefox, Internet Explorer, etc), and has little to do with your host.

PHP runs on your server(Host's server), and depends on the Host's server setup.

Just because you can put HTML in a .php file doesn't mean that the two are "Part" of each other, they just happen to work really well together.
 
Back
Top