couple of questions about css and php
for about a year now i have been reading tutorials online and have learned a lot
i know most html (its not hard really is it) and a little php/mysql
if there is something i need from php there is usually a nice site that kindly offers a copy and paste of script for me, so no problems there. and i have no problem editing it and playing with it to mould it for my requirements
obviously i try to make sites SEO, which is the main problem i find. i read a great tutorial on css or php only to later read elsewhere that it wont be very good for SE or has problems for other things.
its confusing with all the tutorials out there to know if what i am learning is the 'best' way.
so i though where better to ask a fer things than here
where can i find a tutorial for drop down navigation menus in css and html (not java as i believe its not good for SE) that have both horizontal menus on the top and vertical menus down the side on one page?
like many great sites have.
i can only find ones with vertical OR the horizontal, and have tried for weeks to play with the code myself to get both working on one page, with no joy.
and there seems to be many different ways to acheive the same thing in css. again, i make something one way to read later that i shouldnt have done it like that.
if you can provide a link to a decent site it would be appreciated, and any other sites that offer good tutorials
also is it ok to create web pages with .php extension that has html in it even though there is no php?
some of my pages have php and some dont, and i found it easier to just make them all php
what is best practice for this? i.e. the ones without php make them .html, and the ones with php make them .php
i read a lot that for beter SEO they should all be one type?
and are there any good tutorials that go through a full page creation? rather than the only ones i find which seperately cover each tutorial and you have to try to piece it all together your self
lots of text, sorry
many many thanks in advance!!
pr0gr4mm3r posted this at 19:58 — 29th March 2007.
He has: 1,502 posts
Joined: Sep 2006
You can find a couple drop-down menus at http://www.dynamicdrive.com/style/.
Regarding .php vs .html - you can make all your pages .php, however, it will put a (probably negligible) higher load on the server because it runs the file through the php engine before it sends it to the client. This additional load probably isn't enough to matter though.
ChadR posted this at 12:29 — 30th March 2007.
They have: 43 posts
Joined: Mar 2007
Greg,
I would recommend picking up a book and reading about PHP & MySQL
PHP and MySQL Web Development is an Excellent book.
You can make all your pages in .php without a problem because in order to for the server to read PHP you have to enter php with
<?php
//and exit with
?>
Good Luck in your journeys!
The Best User Driven Poker Site, where you can find Poker Games in your area and get the latest Poker Strategy.
jesse1 posted this at 13:11 — 2nd April 2007.
They have: 26 posts
Joined: Mar 2007
My favorite combination currently is Dreamweaver PHP DWT templates, and CSS.
This allows you to create highly flexible websites (especially using external CSS sheets) and also allows you to add in neat dynamic coding effects such as random quotes, php script for time, date etc and even database queries, adding info to database, modifying database etc...
I think it is a valid question as to whether dynamic generated db pages rank well in the search engines but from all appearances the major search engines index these pages like any other now.
You will probably have to custom code all of your title tags and may want to pay careful attention to h1 tags.
Free HTML, Dreamweaver, & FrontPage Video Tutorials
http://www.Resource-Website.com
FREE WEBSITE TRAFFIC from YouTube
http://www.TubeTraffic.com
timjpriebe posted this at 13:45 — 2nd April 2007.
He has: 2,667 posts
Joined: Dec 2004
Hey, that's my favorite combination too, jesse1! It takes some time to learn and get used to that setup, especially if you're new to PHP and/or CSS, but it's worth it in the long run.
Tim
http://www.tandswebdesign.com
greg posted this at 15:38 — 2nd April 2007.
He has: 1,581 posts
Joined: Nov 2005
there's some good advice here, thanks!
i was under the impression that Dreamweaver created too much code and have heard other bad things about it too.
ok, someone with no web coding skills whatsoever can pick it up and make a fantastic looking website
but i understood that its far better to code your own pages for better SEO and faster loading pages, and that Dreamweaver should be avoided?
hmm?
ChadR posted this at 11:44 — 3rd April 2007.
They have: 43 posts
Joined: Mar 2007
Greg,
Dreamweaver actually puts in a lot of proper code. For example Line Breaks are exited not which is bad. There is a DOC type put in the header automatically at the start of every page. You can choose between Code, Visual or Split, so you can do whatever you like. If you are just starting off though and you don't know HTML I would highly recommend you use Contribute before Dreamweaver as Dreamweaver will have a lot of extras you won't be using. I have found that Contribute is easier for beginners too. The Only down side is it's not really made to "Create" webpages.
The Best User Driven Poker Site, where you can find Poker Games in your area and get the latest Poker Strategy.
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.