HTML, PHP, CSS help!
I am building my first website from scratch (not my first website), and I am unsure what type of page to create. I want to use external CSS code to format all of pages to looke the same, however I am going to have a couple of pages with calculators and other editable fields, and I have found a way to do that with a PHP tutorial.
The Book that has the PHP tutorial suggest to create all pages with a php tag. Would that be ok? (This is my first exposure to PHP) The book also suggest strict or transitional XHTML, but I was planning on coding with HTML. Will this really make a difference.
My original plan was to create an HTML strict template in Dreamweaver, with an external CSS file to dictate the design for every page. Will everything work the same if I choose a PHP page.
Thanks,
Nick
DarkLight posted this at 12:20 — 1st December 2007.
He has: 287 posts
Joined: Oct 2007
Hi there. welcome to TWF.
PHP is identical to HTML, the only difference is that it tell the browser there may be PHP data (Database Interactive)
You can make the strict html inside a php file, just be sure to seperate the php from the html with tags.
e.g.
With me?
Also, about the XHTML Transitional, that can be coded under a PHP file.
PHP code does not override the Doctype.
You could have a massive php script, above a xhtml transitional document, with Xhtml transitional Doctype, and it would still validate as XHTML.
hope this helps.
All the best news here: https://newsbotnet.com
Megan posted this at 15:09 — 1st December 2007.
She has: 11,421 posts
Joined: Jun 1999
HTML strict sounds like a good plan to start off with. Once you get your site validating there you can move on to xHTML. xHTML is really almost the same as HTML.
Megan
Connect with us on Facebook!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.