How would you go about marking up a user profile for a sports team? I'm working on tweaking a website for a rugby team and they have quite a lot of details on their squad page
e.g. Height: 1.95m Weight: 95Kg etc etc etc
It was initially marked up in paragraphs, with a label tag, however I don't feel this is syntactically correct.
Would it be better as a ul, or is there another, even better way to mark this up?
From W3 spec: "Another application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words." Linky link
You could make an argument that the information is tabular and you could use tables. I think a definition list in this instance might be easier to use than an unordered list. It wouldn't need the additional span tags since you can style the dt tags.
e.g.
Height: 1.95m
Weight: 95Kg
etc
etc
etc
It was initially marked up in paragraphs, with a label tag, however I don't feel this is syntactically correct.
Would it be better as a ul, or is there another, even better way to mark this up?
Then if you want the "Height:" to be bold or something, just put them in spans and style it from there!
Then, since each label/description is already wrapped in different tags, you'll be able to style it more effectively.
http://burrissports.com/joeystats
I used tables, but you should build your spreadsheet using css.
Not sure if a Definition List is semantically correct? Surely a definition list is Word/Phrase - Description of said word or phrase?
I was considering a table, but wasn't sure if it was a correct use of a table...so...just went with a list
Some people seem to also use it as Label:Value(s).
"Another application of DL, for example, is for marking up dialogues, with each DT naming a speaker, and each DD containing his or her words."
Linky link