I have been learning HTML5 since 2 days now. And i found that the major changes in this version are just some attributes.

I have seen cool animations that are said to be done in HTML5. I do not understand this point. HTML5 is just a static markup language so how come it can do classic animations?

When I view the source code of those animation pages, I see the entire animations are done using Javascript. So why do people say that HTML5 can do cool animations?

Can someone pls put some light on this?

Thanks in advance.