Reputation:
I have heard that HTML5
uses some sort of javascript within... Does CSS3
also does that, I don't think the transitions
can work otherwise..
Reason of asking, I don't want any javascript
in my CSS
part.. I am trying to build a pure css library like pureio
and bootstrap
, they both contain javascript also although..
Upvotes: 0
Views: 55
Reputation: 10874
HTML5 doesn't have any javascript within as such.
Some new elements when implemented by the browser may however have some of the HTML5 features rendered using JS or at least provide a JS API as per specification.
Like any other HTML version prior that, otherwise we wouldn't be able to bind events or control HTML elements via Javascript.
And for CSS no, of course not there is no JS dependencies. How would CSS work when JS is disabled?
And remember browsers have access to the all computer power. It wouldn't make a lot of sense to ignore that and do everything in Javascript.
Upvotes: 3