How to include JQuery in the html [closed]

-2

I'm trying to include a css from an external link, but I can not get it.

<head>
   <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
   <link rel="stylesheet" type="text/css" href="style.css" media="screen" />
</head>

Any idea, or dimension?

Here's how it looks bad:

And that's how it should look:

    
asked by Pinkyxm 03.05.2017 в 21:44
source

1 answer

1

Indeed the correct way to add external style sheets is with the tag link

  

Why do not you load the styles?

It seems that the URL of CDN is incorrect .

When accessing said URL receives a 404 error , the URL alternative would be:

<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">

Or Change the version to 1.12.1

<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
    
answered by 03.05.2017 / 22:14
source