<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body onload="loadCanvas();">
<header>
<hgroup>
<h1>Company Name</h1>
<h2>An example of HTML5 and CSS3 in action</h2>
</hgroup>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</nav>
<article>
<header>
<time datetime="2010-01-12" pubdate="">
<span>Jan</span> 12
</time>
<h1>
<a href="#" title="Link to this post" rel="bookmark">Article Heading</a>
</h1>
</header>
<p>This is an article that demonstrates some of the new features that HTML5 and CSS3 has to offer.
This article contains several sections, each with its own heading, as well as a video element which
will play a video without Flash on browsers that support it.</p>
<section>
<header>
<h1>This is a section heading</h1>
</header>
<p>This is an example of a basic section of a document. A section can refer to different parts of
a document, application or page. According to the draft W3C spec, HTML5 sections usually have
headings.</p>
</section>
<section>
<header>
<h1>This is a video section</h1>
</header>
<p><video src="http://www.double.co.nz/video_test/transformers480.ogg" autoplay="">
</video></p><div class="no-html5-video"><p>This video will work in Mozilla Firefox or Google Chrome only.</p></div>
<p></p>
</section>
<section>
<header>
<h1>This is a feedback form</h1>
</header>
<p></p><form>
<label for="contact_name">Name:</label>
<input id="contact_name" placeholder="Enter your name" autofocus=""><br>
<label for="contact_email">E-mail:</label>
<input type="email" id="contact_email" placeholder="Enter your email address"><br>
<label for="contact_phone">Phone:</label>
<input id="contact_phone" placeholder="Enter your phone number"><br>
<label for="contact_callback">Callback on:</label>
<input type="datetime" id="contact_callback"><br>
<label for="contact_priority">Priority:</label>
<input type="range" min="1" max="5" value="1" id="contact_priority"><br><br>
<input type="submit" value="Request Call">
</form><p></p>
</section>
<section>
<header>
<h1>This is a 2D Canvas section</h1>
</header>
<p>
<canvas id="my_canvas" width="480" height="320"></canvas>
</p><div id="no-canvas"><p>You need a Canvas-compatible browser to view this area.</p></div>
<p></p>
</section>
</article>
<footer>
<p>© 2009 Company Name. All rights reserved.</p>
</footer>
</body>
</html>
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |