Viral encephalitis is a type of encephalitis caused by a virus. Viral encephalitis is a type of encephalitis caused by a virus. It is unclear if anticonvulsants used in people with viral encephalitis would prevent any seizures.