This question is inspired by How kinky can a Jordan curve get?

What is the least upper bound for the Hausdorff dimension of the graph of a real-valued, continuous function on an interval? Is the least upper bound attained by some function?

It may be noted that the area (2-dimensional Hausdorff measure) of a function graph is zero. However, this does not rule out the possible existence of a function graph of dimension two.