If a function is differentiable at a given point, then it can only have one tangent line, but if a function is convex and not differentiable at that point, then it can have multiple tangent lines. For example, consider the function:
we can have tangent at a point that function is not differentable?
If we simply define a tangent line as a line that touches a function at a given point without crossing over the curve, then the example I gave shows that the function $f(x)=|x|$ has no unique tangent line at the origin.
However, if we require a tangent line to have the same slope that the function has at the tangent point, then we require the function to be differentiable at that point, and there will be a unique tangent line.