div tag missing

Discussion in 'HTML & Website Design' started by ranacseruet, Feb 16, 2009.

  1. #1
    i have a big html file where 1 single div tag is missing, don't know where. Is there any easy way to guess it?
     
    ranacseruet, Feb 16, 2009 IP
  2. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #2
    PSPad highlights the start and end points of divs.

    Personally, I'd just sit down with a cup of coffee and work my way through the code, indenting each div as I go.
    The HTML Validator plugin for FF might help you find out where the unclosed div starts, but you're probably using that already :)
     
    Kerosene, Feb 16, 2009 IP
  3. AndreasB

    AndreasB Peon

    Messages:
    280
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    DreamWeaver also got a function that points out where the missing div should be.

    But I agree with Kerosene, you should rather look through your code manually. You will learn more from that than just using some kind a validator.
     
    AndreasB, Feb 16, 2009 IP
  4. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Post here the address or the html code and we will try to help you.
    A good way to see from where is missing a div tag si to validate your document : http://validator.w3.org
     
    ExtremeData, Feb 16, 2009 IP