You should use “an” before a word beginning with an “H” only if the “H” is not pronounced: “an honest effort”; it’s properly “a historic event” though many sophisticated speakers somehow prefer the sound of “an historic,” so that version is not likely to get you into any real trouble.