Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Semi hierarchical data and "correct" html

Semi hierarchical data and "correct" html

Scheduled Pinned Locked Moved Web Development
htmlcssdotnetcomquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roger Alsing 0
    wrote on last edited by
    #1

    I need to present data with the following structure:

    +-------+--------+-----+-----+------------+
    | Kalle | Anka | 1 | A | Ankeborg |
    | | | 2 | B | |
    | | | 3 | C | |
    +-------+--------+-----+-----+------------+
    | Arne | Weise | 1 | Y | STockholm |
    | | | 2 | X | |
    +-------+--------+-----+-----+------------+

    What would be the most "correct" way to do this according to html and css standards etc? It is tabular data but two of the cells contains lists. My first thought was to simply flatten the data and make a TR for each list element, thus making this made up sample into 5 TR where some of the fields are blank. But are there other alternatives? would it be correct to use ul/il elements inside the cells for the lists? bullet lists with css formatting inside the list cells?

    Blog: http://www.rogeralsing.com Projects: http://www.puzzleframework.com

    J 1 Reply Last reply
    0
    • R Roger Alsing 0

      I need to present data with the following structure:

      +-------+--------+-----+-----+------------+
      | Kalle | Anka | 1 | A | Ankeborg |
      | | | 2 | B | |
      | | | 3 | C | |
      +-------+--------+-----+-----+------------+
      | Arne | Weise | 1 | Y | STockholm |
      | | | 2 | X | |
      +-------+--------+-----+-----+------------+

      What would be the most "correct" way to do this according to html and css standards etc? It is tabular data but two of the cells contains lists. My first thought was to simply flatten the data and make a TR for each list element, thus making this made up sample into 5 TR where some of the fields are blank. But are there other alternatives? would it be correct to use ul/il elements inside the cells for the lists? bullet lists with css formatting inside the list cells?

      Blog: http://www.rogeralsing.com Projects: http://www.puzzleframework.com

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      Roger Alsing wrote:

      would it be correct to use ul/li elements inside the cells for the lists?

      Yes, and this would be the cleanest way.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups