[uf-discuss] Quick formatting question

Micky Hulse mickyhulse.lists at gmail.com
Sat Jun 9 12:10:10 PDT 2012

Doh, I missed these relies for some reason. Thanks for the pro help
all, I really appreciate it. :)

On Sat, Jun 9, 2012 at 10:38 AM, Stephen Paul Weber
<singpolyma at singpolyma.net> wrote:
> I would not use a <br/>, and if you can you should do the full n markup
> (marking up which is the given and family name, etc).  <img> is self-closing
> so I'd reccomend using the img <img /> (with space) syntax.  Also, the whole
> thing being an <h6> seems kind of weird, though that is context-dependant.

I know what you mean about the <br>. I would like to remove it, but
the design requires an inline-block/border-bottom type of thing, so
the <br> was the next best thing to adding span tags around first/last
name (which would give me more hooks):

<div class="vcard"><span class="fn n">
 <span class="given-name">Billy</span>
 <span class="family-name">Johnson</span>

... but, because my bloggers don't use their middle names, the markup should be:

<div class="vcard"><span class="fn">Billy Johnson</span></div>

... I say this because the microformat docs say:

"For names of people which are two simple words (text separated by
space) and where the first word is their given name and the second
word is their family name, the class name "fn" is sufficient. E.g."

-- <http://microformats.org/wiki/hcard-authoring#The_Importance_of_Names>

I didn't want to use given-name/family-name willy nilly... So, the
<br> was my next best option (based on design).

I totally agree about the <h6>. I was trying to keep the code simple.
I have since modified the code so that the <h6> is only around the
first/last name.

Sorry, I should have specified: I'm actually using an HTML5 document.

I have come from an HTML4.01 Strict background (before that, I coded
using XHTML); since converting to HTML4.01, I've stopped utilizing
self-closing tags due to their validation problems with said DTD. Now,
I'm transitioning to HTML5 and experimenting with both microformats
and microdata.

> In terms of "is the valid hCard and is hCard a good idea here," though, I
> would say that looks good to me :)

Awesome! Thanks so much for your help, I really appreciate it. :)

Have a great day!


More information about the microformats-discuss mailing list