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 -- Posted via http://www.ruby-forum.com/.
On 12/7/05, mikkel <mikkel-zZeBJi6nFjBknbxzx/v8hQ@public.gmane.org> wrote:> 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??? > > TIAYou 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
On Dec 7, 2005, at 10:37 AM, mikkel wrote:> 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???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
thanks... Erik, it wasnt really specific to an adress... Rick...can you have dt/dd without a dl?? thanks -- Posted via http://www.ruby-forum.com/.
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
On 12/7/05, mikkel <mikkel-zZeBJi6nFjBknbxzx/v8hQ@public.gmane.org> <mikkel-zZeBJi6nFjBknbxzx/v8hQ@public.gmane.org> wrote:> thanks... > > Erik, it wasnt really specific to an adress... > > Rick...can you have dt/dd without a dl?? > > thanksNope. -- rick http://techno-weenie.net