Step 1: Sentence Classification.
This is a Type-3 conditional sentence, indicating an unreal past condition. It is employed to convey regret or hypothetical past scenarios.
Step 2: Structural Application.
The appropriate structure is:
"If + past perfect, then + would have + past participle."
In this instance, "Had I known" is an inverted rendition of "If I had known." Consequently, the subsequent clause should be:
"I would have attended it."