Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does HTML5 mean doing less with JavaScript?

Will browsers that use HTML5 use less JavaScript, jQuery, etc. and make things like animations done with just HTML? Will it make Flash less necessary for “smooth” graphics?

In other words, I won’t lose anything by taking the time to learn jQuery since HTML5 is here, will I?

like image 918
johnny Avatar asked Sep 07 '10 20:09

johnny


People also ask

Is HTML5 replacing JavaScript?

Talking about JavaScript, it's interesting to note that HTML5 will replace the JavaScript APIs in HTML4 documents. Of course, the end-user will not notice that. With HTML5 and JavaScript combined, your web pages become dynamic and well-supported by web browsers, while your content can be made to look lively and fresh.

Does HTML5 use JavaScript?

HTML5 defines a new standard which browsers implement. Almost all of the features require Javascript unless you're using a simple tag that's part of HTML5.

Is HTML5 just JavaScript?

HTML5 is the final version that was released of HTML, which is the hypertext markup language used in the building and structuring of content to be displayed on web pages. Those who use it can also utilise coding such as Cascading Style Sheets (CSS) and scripting languages such as Javascript alongside it.

What is special about HTML5?

HTML stands for Hypertext Markup Language, and it is the standard markup language for creating web pages and web applications. HTML5 is the 5th version of HTML. With invent of features in HTML5, it's not only possible to create better websites, but we can also create dynamic websites.


2 Answers

In some specific places, yup:

  • The autofocus attribute is specifically designed to replace a common JavaScript pattern
  • CSS3 animations can replace JavaScript animations, so if we’re talking about HTML5 in the expanded Apple sense of the word, yup

But in general, I can’t see HTML5 diminishing the usefulness of JavaScript, nor frameworks like jQuery, one bit. Given that HTML’s development is constrained by browser releases, the best it can do provide markup alternatives to a few very common scripting patterns. Scripting is useful because it lets you do anything you can imagine, including things specific to the project you’re working on.

So learn away.

like image 192
Paul D. Waite Avatar answered Sep 24 '22 09:09

Paul D. Waite


Well, it potentially can mean quite a lot more scripting. For example, where before you might have stuck a flash object into your page to display a chart or graph, that graphic might now be done using javascript drawing to a canvas. Overall I dont see the use of client side scripting decreasing, but rather increasing as web 'pages' become more and more complex. HTML5 will just provide even more possibilities.

like image 33
GrandmasterB Avatar answered Sep 25 '22 09:09

GrandmasterB