HTML and CSS Reference
In-Depth Information
G.2.6. jsFiddle
Sometimes you may want to try out HTML, CSS, and JavaScript code quickly and store it
as a snippet that you can return to at some point in the future. To do this on your own ma-
chine, you'd need to open a text editor, create one or more text files (if you want to separate
the HTML, CSS, and JavaScript elements), save the files, and open them in a browser. If
you wanted to share the snippet, you'd need to upload the files to a web server, and the
person you're sharing with must use their browser's View Source feature to see the code
behind it. This is, quite frankly, a bit of a pain. Wouldn't it be great if there were an in-
tegrated solution that allows you to enter HTML, CSS, and JavaScript code and view the
results in a single window? How awesome would it be to be able to save that snippet so
that when you share it, the recipient sees the same view as you?
There is a nifty little web application named jsFiddle that provides all of this functionality.
Not only that, but it also gives you a really simple way to include various JavaScript librar-
ies, tidy up your markup, check the validity of your JavaScript code with JSLint, test AJAX
requests, and much more besides. A screenshot of jsFiddle in action is shown in figureG.1 .
Search WWH ::

Custom Search