Forum: Ruby on Rails [OT] semantic markup of attributes??

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C7669e8b5676f61fdf202230cbcf72d8?d=identicon&s=25 mikkel (Guest)
on 2005-12-07 16:37
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
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 technoweenie (Guest)
on 2005-12-07 16:50
(Received via mailing list)
On 12/7/05, mikkel <mikkel@helenius.dk> 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:

<dl>
<dt>foo</dt>
<dd>bar</dd>
...
</dl>

Is this one of Dan Cederholm's Simple Quizzes?


--
rick
http://techno-weenie.net
4d6a47158a7c8a032e5f6a4da8976d7d?d=identicon&s=25 erik (Guest)
on 2005-12-07 16:55
(Received via mailing list)
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
C7669e8b5676f61fdf202230cbcf72d8?d=identicon&s=25 mikkel <mikkel@helenius.dk> (Guest)
on 2005-12-07 16:59
thanks...

Erik, it wasnt really specific to an adress...

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

thanks
4d6a47158a7c8a032e5f6a4da8976d7d?d=identicon&s=25 erik (Guest)
on 2005-12-07 21:12
(Received via mailing list)
On Dec 7, 2005, at 10:59 AM, mikkel wrote:
> Erik, it wasnt really specific to an adress...

So then where are the "semantics"?  :)

> Rick...can you have dt/dd without a dl??

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

	Erik
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 technoweenie (Guest)
on 2005-12-07 21:12
(Received via mailing list)
On 12/7/05, mikkel <mikkel@helenius.dk> <mikkel@helenius.dk> 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
This topic is locked and can not be replied to.