SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2006
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Best Practice html usage question

    Hi everyone,
    first post here.

    While not exactly an html/css newbie, i wouldn't call myself an expert either.
    I can solve most problems i bump into, albeit often through trial and error.
    But since i hope to use my skills for profit somewhere in 2007 i want to tackle some of those "what is the most semanticly correct way to solve..." questions.

    so here goes:
    the site: http://www.vvksmheverlee.be/test/leiding.html
    I'm trying to make a page which lists all 'employers' of an organisation.
    clicking on any 'polaroid' in the collage will take you to some more info about that certain person.

    now i'm not sure if i'm using the most semanticly correct way to show that information and that list of employers.
    As you can see from looking at the code i created an <ul> and put every persons 'file' in a different <li> which i gave an <id people> so i could style it.
    Is this allowed or should an <id> be unique ?

    Furthermore i put everyone's info in a table structure, which i believe is correct since it is in essence data. But i'm not 100&#37; sure.
    So am i allowed to use a table in this case or not ?

    Any other tips or suggestions are always welcome.

    Thanks in advance
    mao!

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,016
    Mentioned
    53 Post(s)
    Tagged
    2 Thread(s)
    ids should be unique -- use a class if you wnt to apply it more than once

    in fact, you can style all the LIs without putting the class on each one, by applying a class (or id) to the parent UL

    yes, it's fine to use a TABLE for tabular data
    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •