Does my web page hit by a virus?

I was updating my webpage when it suddenly collapsed. It turned my laptop on and off. I was so confused why it did it happen. I was thinking that my webpage was attacked by a virus. I would like to ask if my page was really attacked by a virus and of does, what kind of computer virus it is?
