Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    html5 and php code

    I spent a good part of the day redoing this page
    http://www.countyfairgrounds.net/themestest.php
    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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Thanks

    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.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.

    http://validator.w3.org/check?uri=ht...=HTML5&group=0
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Regular Coder
    Join Date
    Jan 2011
    Posts
    302
    Thanks
    7
    Thanked 0 Times in 0 Posts

    right validator

    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.

  • #6
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #7
    New to the CF scene
    Join Date
    Apr 2011
    Location
    texas
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for that we need to start somethg like whenever we wanna use php code <?php> ur coding <?php>

  • #8
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    Periclessmith .

    You should start a new post and not take over this one.
    It muddies the water.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •