Difference between HTML5 and jQuery [closed]

╄→гoц情女王★ 提交于 2019-12-25 08:59:00

问题


Is there a difference between HTML5 and jQuery, or is jQuery an instrument I can use in the HTML5 logic ?

I am a little confused by the terminology I guess and I hope someone can enlighten me.


回答1:


HTML5 is a markup language. jQuery is a Javascript library. They're not the same thing.

They are related however: Javascript code embedded in (or referenced from) HTML5 documents can use the objects and methods provided by jQuery to perform its tasks.




回答2:


jQuery is Javascript

HTML5 is HTML




回答3:


jQuery is a JavaScript framework, HTML5 is a language for HTML structure/presentation.




回答4:


jQuery is a javascript library. In the other hand HTML5 is the latest version of HTML. One is programming language, javascript, the other is markup language.

HTML is used for the structure of a web document, but javascript is used to control user's interaction with the HTML document, for example a click on HTML element.


Read more for HTML5: http://en.wikipedia.org/wiki/HTML5

Read more for Javascript: http://en.wikipedia.org/wiki/JavaScript

Read more for jQuery: http://en.wikipedia.org/wiki/JQuery



来源:https://stackoverflow.com/questions/6723209/difference-between-html5-and-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!