MasterWeb & IBGeekGirls
May 19, 2012, 08:02:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Unfortunately due to being innundated by idiot spammers we've had to temporarily disable new registrations while we review the forum. We hope to have service back to normal (or what passes for normal around here) very soon. In the meantime, please feel free to browse around the forums.
 
   Home   Help Search Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Appropriate list type  (Read 1619 times)
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« on: June 22, 2007, 09:28:56 PM »

My current project has a page that's got a list of memorials in a simple name and date of birth and death of the deceased/short message format. Now given that the W3C haven't seen fit to give us a memorial/obituary list type  Ecanus.net's silly smiley, I'm wondering what the best list format to be semantically correct would be.

I'm thinking that a standard definition list, using the <dt> for the name/dates, and <dd> for the message may be the one to go with. Any thoughts?
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
Anti
IB Geek Girls
***

Karma: +4/-0
Offline Offline

Posts: 86


Ask me about my Drupal


View Profile
« Reply #1 on: June 23, 2007, 07:40:08 PM »

Definition list is the first thing that came to my mind. I am sure that is what I would use in your situation.
Logged

Understanding the scope of the problem is the first step on the path to true panic.
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« Reply #2 on: June 23, 2007, 07:56:27 PM »

 Ecanus.net's Cool thumb up smiley Thanks Anti - I'm thinking that's the way to go.
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
PrawnDog
Geek in Training
**

Karma: +1/-0
Offline Offline

Posts: 56


Half prawn, half dog and half-a-brain


View Profile
« Reply #3 on: June 25, 2007, 07:33:53 AM »

I read someone talking about Definition lists somewhere. Someone was trying to something similar, using a definition list, but couldn't get the specific CSS right. The question asked was "Is this a Definition Term and Description?". If it was, DD was considered semantically correct; otherwise, it's just a list, and should be styled as a list.

Maybe a list with relevant <div>s or <span>s would be more semantically correct.
Logged

There are 10 types of people in the world: those who understand binary, and those who don't.
Fallen Angel
Administrator
*****

Karma: +7/-7
Offline Offline

Posts: 887


0% Angel


View Profile WWW
« Reply #4 on: June 25, 2007, 07:45:19 AM »

I went for the definition list in the end. As someone elsewhere advised "All the information is related to the name and so I reckon it's the name that's the definition term and the other info is all detail".
Logged

"No matter how hard you try, You're still in prison, If ya born with wings and you never fly."
Anti
IB Geek Girls
***

Karma: +4/-0
Offline Offline

Posts: 86


Ask me about my Drupal


View Profile
« Reply #5 on: June 25, 2007, 01:05:24 PM »

I liked the definition list because it would use the least markup. The short message could be said to define the person in a certain limited context, but a better case can be made for using tags efficiently.
Logged

Understanding the scope of the problem is the first step on the path to true panic.
PrawnDog
Geek in Training
**

Karma: +1/-0
Offline Offline

Posts: 56


Half prawn, half dog and half-a-brain


View Profile
« Reply #6 on: June 25, 2007, 11:42:03 PM »

I'm not sure which is better, symantically accurate markup or least markup. Broadband means that a little extra markup is not too bad a problem these days. Maybe a better way would be to "roll your own" XML, but that leads to all sorts of non-HTML fun.... G.T.'s shake smiley
Logged

There are 10 types of people in the world: those who understand binary, and those who don't.
Anti
IB Geek Girls
***

Karma: +4/-0
Offline Offline

Posts: 86


Ask me about my Drupal


View Profile
« Reply #7 on: June 26, 2007, 12:00:34 AM »

I agree it is not perfect, but the reason I try to keep the tags down somewhat is for maintenance. It seems easier for me to style <dt class="person"> than to have an extra div in there and have to think about which changes what. I think the important thing is that we are thinking about it, whichever method we use, and making our markup easier to read.
Logged

Understanding the scope of the problem is the first step on the path to true panic.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!