View Full Version : html5 and php code
04-16-2011, 03:41 AM
I spent a good part of the day redoing this page
with html5 - Did okay. I guess, but I do not know php and someone is working with me who does not know html5 at all. There are currently table tags in the display - like when you search for a theme in say Alabama or Colorado for that matter. Should I leave them? I suppose I could try to put in three section tags below where it says Fair or Event Year or Theme. We are a little concerned about how the php will pull in a section tag. - we would need three of them one for fair or event and one for year and one for theme. If I make three section tags with margins and input the php - well, what do you all think? My inclination is to leave the way it is now.
04-16-2011, 04:03 AM
What is your concern with "how php pulls in a section tag"? PHP doesn't care what kind of html you use. As for the tables if the items being returned is actual data then leave it in a table.
04-16-2011, 03:47 PM
:)um I just don't know php - the html5 validator of course went crazy - but it is tablular data. and it seems to be displaying okay , like I said in all the browsers, so you betcha I will leave it. AND thanks EVER so much. Is there a online source for using php with html5 we should be aware of? cause I have not found one.
04-17-2011, 02:19 AM
There probably isn't anything because php doesn't care what HTML you use. The validator of course went crazy because you likely tried to validate with XHTML 1.0. This validator http://validator.w3.org/ has an experimental option to validate HTML 5. Here are you results.
04-17-2011, 03:54 PM
actually I ran it through the right validator. Most of the errors are in the table tags which really aren not html5 - Do me a favor tell me how the page is displaying on you rend. It is now at http://www.countyfairgrounds.net/themes.html
I believe it looks okay. Like we have discussed - I would rather not replace table tags.
04-17-2011, 04:46 PM
I guess it is okay. It kind of has a late 1990s feel to it with the moving animations and the big border around the "fair and event themes" section.
What the validator is complaining about is now really the table tags themselves but the attributes you are using. For example instead of "align" which is deprecated in any version of HTML, even XHTML you should use margin:auto; in CSS. The use of the font tag is also deprecated. You should use a span and use CSS to style the text. And it looks like you just have missing closing tags in general.
04-18-2011, 11:19 AM
for that we need to start somethg like whenever we wanna use php code <?php> ur coding <?php>
04-18-2011, 12:20 PM
You should start a new post and not take over this one.
It muddies the water.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.