How do you link the jQuery UI/ plain jQuery to HTML?

How do you link the jQuery UI/ plain jQuery to HTML?

I don't have a clue how this works.