Which is better to use?

Discussion in 'HTML & Website Design' started by Zohaib, Aug 30, 2007.

  1. #1
    Hello Everyone!!!

    I wish to know which tag is better to use under <td>? <table> tag or <ul> tag and why?


    Thanks in advance.
     
    Zohaib, Aug 30, 2007 IP
  2. nvidura

    nvidura Well-Known Member

    Messages:
    1,780
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    #2
    no difference. but <div> is better than <table>
     
    nvidura, Aug 30, 2007 IP
  3. Noddegamra

    Noddegamra Peon

    Messages:
    1,013
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It depends how you wish to present your data.

    If it is a straight list then use UL

    If it is a list containing other variables that relate to each item, use a table
     
    Noddegamra, Aug 30, 2007 IP
  4. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Neither - they are for different purposes.

    An unordered list (UL) is for a list of information

    A table is for showing tabular data

    If it is a single column of information then a UL should be used as it is a list not a table.

    If it is a single column but multiple items contained in each cell (td) then you are using tables for layout and so should consider a <div> instead
     
    AstarothSolutions, Aug 30, 2007 IP