[OT] semantic markup of attributes?


#1

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


#2

On 12/7/05, mikkel removed_email_address@domain.invalid 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


#3

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

#4

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

#5

On 12/7/05, mikkel removed_email_address@domain.invalid removed_email_address@domain.invalid 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


#6

thanks…

Erik, it wasnt really specific to an adress…

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

thanks