If these symptoms have been present for only a few days or occur following a period of excessive voice use, the primary treatment is rest your voice as much as possible.
Since most laryngitis cases are caused by viruses, the best prevention is thorough handwashing, particularly before touching your face. Despite these efforts, like the common cold, it's impossible to eliminate the risk entirely. For children, ensuring they receive the Haemophilus influenzae vaccine is crucial to protect them from this potentially life-threatening bacterial infection. Otherwise, the only other preventive measure is to avoid overusing your voice.