I want to use WYSIWYG html to build pages in my new website. The web designer has put it in php and says I can easily use html within the php coding. I originaly asked for an html website as I am not familiar with php but now I have to use what I have. Is there some way I can get in to the php code and use html so I can see what my page will look like on line? I actually went to where he had written "Your text goes here" in the php but online the new headlines and text I put in scrawled right across the screen, not within the parameters of the center white space. How does the CSS interact with php or is it a different beast altogether? Any light appreciated.
Before sending a web page to a browser, the web server replaces the PHP code with whatever HTML markup it was meant to create. The CSS then changes the appearance of this HTML markup in the browser. The browser doesn't change the PHP code so you need to have a PHP-enabled web server running to fully view the web page. XAMPP is a good one that many people use for making web sites.
If you're new at making websites, I wouldn't recommend installing XAMPP. It's a great package, but if you are only familiar with HTML, making your computer a virtual server will simply confuse you. What I recommend is posting the PHP pages to a sub-folder on your host's server (your web account). Most host's servers support PHP. Then go to your browser and type in the proper address [www. mysite. com/ folder / mypage .php] Mr. Cash is correct about how PHP works. Browsers only read HTML / CSS, not PHP. At run time, the host's server uses the PHP to create a HTML page. This page is then sent via the internet to your computer where your browser can render the HTML / CSS. The CSS and HTML is present within the PHP code, but usually divided between PHP commands. For example: < ? php PHP CODE ? > < HTML CODE class = "CSS" > < ? php CODE ? > As long as your HTML has class or ID attributes, you can control how it will look via CSS. Therefore there is no need to touch the PHP in order to design the site. Good luck and I hope that helped.