[uf-discuss] Quick formatting question

Stephen Paul Weber singpolyma at singpolyma.net
Sat Jun 9 15:05:14 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Somebody claiming to be Micky Hulse wrote:
>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.
>
>... 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."

There's a difference between "sufficient" and "the best".  When you have no 
choice, the fn heuristic is nice, but I personally always prefer explicit 
markup.

>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.

Ah!  Well, in HTML5 there's usually no reason to use anything except <h1>, 
just use nested <sections> (<h1> has been redefined to mean "top level 
heading in the current section", so <h6> is equivalent to an <h1> six-levels 
deep), though that may require a lot of rewriting for you, so don't sweat 
over it :)

>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.

The space-before-slash  <tag /> self-closing style works just fine in 
HTML4.01 and HTML5 processors (the space is there for compatability with 
some such parsers).  It has the advantage of *also* being legible by any XML 
parsers that might want to read your page.

- -- 
Stephen Paul Weber, @singpolyma
See <http://singpolyma.net> for how I prefer to be contacted
edition right joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJP08iaAAoJENEcKRHOUZzeP9cQAMEkpXldhoY7m8btacBGkN82
SucZLRHrpqgciDzB9OEJrLmTdPXPYQSXpoDo6+pC7Pj9oUe0OS4DulfB+Anct6Ou
YfocI5gO49ZxKzRm0FJzKU01r+qpwuC9cDHiWWHIovj8NOAcpvT/+43XqDYXcTy3
sAu/EZ8oIBF6Q13U8fsrvMUV36XsZwjqQMsKZ3YAwEQXiXdWfLiB0RyNEy8eCWtc
PZNZxqqCoE3Hx6gwZ+gJvbAuxfRhoY4jgRfjwRIi/XDFF/0Fs/4SQOG509V+EfeQ
Aiohq6/Z6RZmVsJltrLQBB716rvpvdDiuxp3b4q1PjCP3259TqLKUbaSnE5PglvZ
qaMSfsDdH0f+N43waSoRXr7ID9DuSeqFFdEb53NwZPmtTkqE8clX6+T/yY7PmnF9
x7LBh1KjF4FH6H/I0brp1S4Mtp61uNvDpIdTbzVbIaQHTBeKHOYduRLhSm3fj/Ck
yoRUkfZ561C6ENj44RmzS6qAtEuAwtHDnJaCZePu1zLjefSR6F470lYAhqmuNFiH
KgBv/L2qAsO9TUjUMrM8wYFn4xcwtpxkYD/sBaQnaPA0pJRKhycaJPZwBIDdVDt0
VUT2WGzJMnblEbBTEAYWd2VaXx62PhTbKOli1/0QwA49VCEgoyRVhyuZajgpcK9q
IyEPX4LDgyuRT90MaKb+
=A1Dd
-----END PGP SIGNATURE-----


More information about the microformats-discuss mailing list