1. A handwriting input method of an electronic device using a touch pen, the handwriting input method comprising: displaying an execution screen of an application on a touch screen in response to the application being executed; overlapping a handwriting input layer, which is configured for a handwriting input, with the execution screen; in response to a handwriting image being input on the handwriting input layer by the touch pen, determining a data type for recognizing the handwriting image based on an area in which the handwriting image is input among a plurality of areas of the handwriting input layer, and recognizing the handwriting image as the determined data type; and applying the recognized handwriting image to the application differently according to the determined data type of the handwriting image, wherein, the determining comprises: determining the data type for recognizing the handwriting image as a text in response to the handwriting image being input in a first area among the plurality of areas of the handwriting input layer, and determining the data type for recognizing the handwriting image as an image in response to the handwriting image being input in a second area different from the first area among the plurality of areas of the handwriting input layer.