How to make a calender in HTML?

Discussion in 'HTML & Website Design' started by HydroJohn, Jul 16, 2008.

  1. #1
    Hi there guys Im looking to make a calender in html that has all the months of the year and individual grids for each day, I was wondering if anyone knows how to do this?
     
    HydroJohn, Jul 16, 2008 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Cash Nebula, Jul 17, 2008 IP
  3. mshore

    mshore Peon

    Messages:
    416
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why do you want to do this? Are you unable to run PHP or ASP on your server? Frankly making a pure HTML calendar can be done but it is a tremendous pain in the butt and very prone to errors.

    If you absolutely must make it in HTML I'd recommend just using a &x% table and populating the data in that. But you'll hate yourself in the morning for doing it :)
     
    mshore, Jul 17, 2008 IP
  4. el_jentel1

    el_jentel1 Peon

    Messages:
    14
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have to agree with mshore, if you're planning on making a calender with only HTML, you'll end up with a huge chunk of table code, don't know about errors but it'll definitely be a pain to make.

    Just think that if you keep it, next year you'll have to edit the whole thing again lol, use a PHP script I'm sure there are a lot of free PHP calender scripts out there.
     
    el_jentel1, Jul 17, 2008 IP
  5. js09

    js09 Peon

    Messages:
    232
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    dreamweaver
     
    js09, Jul 17, 2008 IP
  6. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I've written HTML calendars-- to be used by our coder as the "template" code. The calendars are still generated by script, as there are twelve calendar months per house (house rental site), and the owners of the houses have chosen whether particular days are available or not, and if so, which price class. It's a lot of HTML code. A lot. It can be done, though.

    If you do them in HTML, you will use a table because really, that's the only sensible element to use. So, you'll be using accessible, properly built tables-- with th, "headers" attribute, col and scope and all that good stuff. Which makes it even more code.

    So, what do you want these calendars to do? If they "do" anything other than sit there, they will have to be scripted anyway. It doesn't have to be in PHP, but it should be in some non-compiled language.
     
    Stomme poes, Jul 17, 2008 IP
  7. shugle

    shugle Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Using html calenders are pain for both, you and your visitors. But if you must have to make a pure html calender then you should use tables. Be sure to define tables precisely otherwise they may look spoiled in some browsers.
    Better use php for this you can find some free php calender making scripts on the net.

    Good luck
    Shugle
     
    shugle, Jul 18, 2008 IP