"An 'H'", and "a 'H'" are both equally valid following this rule (by my interpretation), depending on how you pronounce the letter 'H'.
But you can hear "an" used in phrases like "an hotel" or "an historic building", where the "h" is usually pronounced.
Actually, it's a shibboleth. It used to be said in Ireland that Roman Catholic called it "haitch" and Protestants called it "aitch". "Haitch" is to be found furth of Ireland though.
"An 'H'", and "a 'H'" are both equally valid following this rule (by my interpretation), depending on how you pronounce the letter 'H'.