I take this message while validating with w3

Discussion in 'HTML & Website Design' started by scutari, May 24, 2008.

  1. #1
    can anyone help with the problem please?
    I have a xhtml 1.0 transitional page.
     
    scutari, May 24, 2008 IP
  2. Divisive Cottonwood

    Divisive Cottonwood Peon

    Messages:
    1,674
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If I'm reading it correctly it looks like you are putting a block element <ul> inside an inline element such as <span>, which isn't valid code...

    Move the block element and place it outside of the inline element...
     
    Divisive Cottonwood, May 24, 2008 IP
  3. steelfrog

    steelfrog Peon

    Messages:
    537
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That's correct. It means you're trying to wrap an inline element over a block one. Move your block element (un-ordered list) before the inline element's opening tag and be sure to close it before you close your list.
     
    steelfrog, May 24, 2008 IP
  4. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have not put any block element inside an inline element..check the code...

    <p>
    <ul>
    <li><b>Adsense for content<b>...
     
    scutari, May 24, 2008 IP
  5. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Which site is it you are trying to validate? (It's not the one in your sig is it?)

    It would be much easier to see what the problem is by looking at the code...but it does sound as if you have a block inside an inline.

    Nick
     
    nicangeli, May 24, 2008 IP
  6. scutari

    scutari Peon

    Messages:
    431
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well I resolved now, it was <ul> inside <p>, but that is not allowed with xhtml..
     
    scutari, May 24, 2008 IP