If you draw a right angled triangle and label the sides A,B and H you would be able to answer your own question.
however
sec stands for secant
cosec stands for cosecent
The 'co' out the front stands for complementary and complementary angles add to 90 degrees.
$$sec(\theta)=cosec(90-\theta)$$ and vise versa.
In Australia we shorten cosecant to cosec but it is the same as csc.
Do you understand?