Tinea capitis, commonly known as scalp ringworm, is a fungal infection affecting the scalp and hair shafts. It is predominantly caused by dermatophytes, a type of fungus. This condition is highly contagious and primarily affects children, especially those between the ages of 3 and 7.