On the HTML5 Specification I see examples using either:
<ruby> <rb>振</rb><rb>り</rb><rb>仮</rb><rb>名</rb> <rt>ふ</rt><rt>が</rt><rt>な</rt> </ruby>
or
<ruby>振<rt>ふ</rt></ruby>り<ruby>仮<rt>が</rt>名<rt>な</rt></ruby>
振り仮名
So I’d say to use either of the working forms present in the spec? The first one is even shorter to type!