Difference between HTML5 and jQuery [closed]

2019-09-17 00:49发布

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.

4条回答
Juvenile、少年°
2楼-- · 2019-09-17 01:37

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.

查看更多
聊天终结者
3楼-- · 2019-09-17 01:42

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

查看更多
我想做一个坏孩纸
4楼-- · 2019-09-17 01:44

jQuery is Javascript

HTML5 is HTML

查看更多
Evening l夕情丶
5楼-- · 2019-09-17 01:48

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

查看更多
登录 后发表回答