Dear Student,
Tension is a pulling force acting along the length of a flexible medium like a string, rope or wire when it is pulled by opposite forces at their ends. It always acts outwards along its axis tending to stretch the flexible medium.
Regards