Ezilon.com - Target Your Audience, be Seen in Your Region

HTML, PHP, CSS help!

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 1 posts

Joined: Dec 2007

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

Reece S's picture

He has: 169 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.

Quote:

<?php
  
<strong>//open php code</strong>
YOUR PHP CODE
?>

//close php code

//start html file

YOUR HTML CONTENTS

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.

Megan's picture
Administrator

She has: 10,037 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.