As x→0,tanx=x+3x3+O(x5) and sinx=x−6x3+O(x5). Therefore the denominator is 2x3+O(x5).
Composition gives tan(tanx)=(x+3x3)+3x3+O(x5)=x+32x3+O(x5). Similarly sin(sinx)=(x−6x3)−6x3+O(x5)=x−3x3+O(x5).
The numerator is consequently x3+O(x5), and the quotient tends to 2. Continuity requires f(0)=2.