Skip to content Skip to sidebar Skip to footer

How To Combine Html, Js And Css From Fiddle

I know the Question is silly and fiddle is only for testing your code, but combining that into one code via putting JS under script<> and css under style<> is not work

Solution 1:

The problem is that you are using an external JS framework, AngularJS. You will have to create another script tag which loads Angular as well. There are two ways you can do this: you can either download the angular source code and then load that into your HTML, or use a CDN.

To use the CDN, you can just add the following above your current <script> tag:

<scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>

Your final output should look like this:

<html><head><styletype="text/css">
    // CSS Content</style></head><bodyng-app="myApp"><!-- some html elements --><scriptsrc="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script><scriptlanguage="JavaScript"type="text/javascript">// more js here.</script></body>

Post a Comment for "How To Combine Html, Js And Css From Fiddle"