[OT] semantic markup of attributes?

Allright wise guys…

wokring on a project where we try to take semantic markup pretty
seriously…

one of my co-workers challenged me…

whats the right way to write the follwoing in nice html??

Username: john doe
Adress: somewhere out there 32
Age: 23

Now if this was a form, i would use labels…but in this case???

TIA

Mikkel

On 12/7/05, mikkel [email protected] wrote:

Adress: somewhere out there 32
Age: 23

Now if this was a form, i would use labels…but in this case???

TIA

You can use a definition list:

foo
bar
...

Is this one of Dan Cederholm’s Simple Quizzes?


rick
http://techno-weenie.net

On Dec 7, 2005, at 10:37 AM, mikkel wrote:

Adress: somewhere out there 32
Age: 23

Now if this was a form, i would use labels…but in this case???

Some would say that using microformats is the way to go with this:

http://www.microformats.org/

You’ll find specs for address (adr) and the hCard which includes bday.

Erik

On Dec 7, 2005, at 10:59 AM, mikkel wrote:

Erik, it wasnt really specific to an adress…

So then where are the “semantics”? :slight_smile:

Rick…can you have dt/dd without a dl??

I’m guessing you could use the microformats with these elements if
you like.

Erik

On 12/7/05, mikkel [email protected] [email protected] wrote:

thanks…

Erik, it wasnt really specific to an adress…

Rick…can you have dt/dd without a dl??

thanks

Nope.


rick
http://techno-weenie.net

thanks…

Erik, it wasnt really specific to an adress…

Rick…can you have dt/dd without a dl??

thanks