An electronic device comprising: a camera; a touch screen display configured to recognize a touch input; an input interface configured to receive an input from a user of the electronic device; an input/output interface configured to accommodate a plug connected to an external device; and a processor electrically connected to the camera, the touch screen display, the input interface, and the input/output interface, and the electronic device characterized in that the processor is configured to: determine, if an operation associated with the camera is performed, whether the electronic device is submerged in water based on whether at least one of a magnitude and a frequency of an electrical signal sensed from the input/output interface is in a specified range, determine a level of illumination from three predetermined levels of illumination, a number of recognized faces, and a reliability of recognition for a face sensed by the camera, determine a color for a shooting mark (1112-1115, 1122-1125, 1132-1135, 1220, 1312, 1322, 1420, 1521-1524) based on the level of the illumination and the reliability of recognition for the face, display, on the touch screen display, a preview including the face and the shooting mark in the determined color on the face, shoot a content by the camera, and generate a tag to store with the content, wherein the tag includes the number of recognized faces and a number of faces of a low reliability of recognition among the recognized faces. a camera; a touch screen display configured to recognize a touch input; an input interface configured to receive an input from a user of the electronic device; an input/output interface configured to accommodate a plug connected to an external device; and a processor electrically connected to the camera, the touch screen display, the input interface, and the input/output interface, and the electronic device characterized in that the processor is configured to: determine, if an operation associated with the camera is performed, whether the electronic device is submerged in water based on whether at least one of a magnitude and a frequency of an electrical signal sensed from the input/output interface is in a specified range, determine a level of illumination from three predetermined levels of illumination, a number of recognized faces, and a reliability of recognition for a face sensed by the camera, determine a color for a shooting mark (1112-1115, 1122-1125, 1132-1135, 1220, 1312, 1322, 1420, 1521-1524) based on the level of the illumination and the reliability of recognition for the face, display, on the touch screen display, a preview including the face and the shooting mark in the determined color on the face, shoot a content by the camera, and generate a tag to store with the content, wherein the tag includes the number of recognized faces and a number of faces of a low reliability of recognition among the recognized faces. determine, if an operation associated with the camera is performed, whether the electronic device is submerged in water based on whether at least one of a magnitude and a frequency of an electrical signal sensed from the input/output interface is in a specified range, determine a level of illumination from three predetermined levels of illumination, a number of recognized faces, and a reliability of recognition for a face sensed by the camera, determine a color for a shooting mark (1112-1115, 1122-1125, 1132-1135, 1220, 1312, 1322, 1420, 1521-1524) based on the level of the illumination and the reliability of recognition for the face, display, on the touch screen display, a preview including the face and the shooting mark in the determined color on the face, shoot a content by the camera, and generate a tag to store with the content, wherein the tag includes the number of recognized faces and a number of faces of a low reliability of recognition among the recognized faces.