<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<!-- 1......................... -->
<div>
<h3>table / css no setting</h3>
<table>
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<hr>
<!-- 2......................... -->
<div>
<h3>table
<span>border="5"</span></h3>
<table border="5">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<div>
<h3><span>table:
border: 1px solid #f0f;
border-width: 5px;
table td:
border: 1px solid #00f;</span></h3>
<table class="table t-border">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<hr>
<!-- 3......................... -->
<div>
<h3>table
border="5"
<span>cellpadding="10"</span></h3>
<table border="5" cellpadding="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<div>
<h3>table:
border: 1px solid #f0f;
border-width: 5px;
<span>table td:</span>
border: 1px solid #00f;
<span>padding:10px;</span> </h3>
<table class="table t-border">
<tr>
<td class="t-cellpadding">First</td>
<td class="t-cellpadding">Row</td>
</tr>
<tr>
<td class="t-cellpadding">Second</td>
<td class="t-cellpadding">Row</td>
</tr>
</table>
</div>
<hr>
<!-- 4......................... -->
<div>
<h3>table
border="5"
cellpadding="10"
<span>cellspacing="10"</span></h3>
<table border="5" cellpadding="10" cellspacing="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<div>
<h3><span>table:</span>
border: 1px solid #f0f;
border-width: 5px;
<span>border-collapse: separate;
border-spacing: 10px;</span>
table td:
border: 1px solid #00f;
padding:10px; </h3>
<table class="table t-border t-cellspacing-separate-spacing">
<tr>
<td class="t-cellpadding">First</td>
<td class="t-cellpadding">Row</td>
</tr>
<tr>
<td class="t-cellpadding">Second</td>
<td class="t-cellpadding">Row</td>
</tr>
</table>
</div>
<hr>
<!-- 5......................... -->
<div>
<h3>table
border="5"
cellpadding="10"
<span>cellspacing="0"</span></h3>
<table border="5" cellpadding="10" cellspacing="0">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
</div>
<div>
<h3><span>table:</span>
border: 1px solid #f0f;
border-width: 5px;
<span>border-collapse: collapse;</span>
table td:
border: 1px solid #00f;
padding:10px; </h3>
<table class="table t-border t-cellspacing-collapse">
<tr>
<td class="t-cellpadding">First</td>
<td class="t-cellpadding">Row</td>
</tr>
<tr>
<td class="t-cellpadding">Second</td>
<td class="t-cellpadding">Row</td>
</tr>
</table>
</div>
<hr>
<!-- ......................... -->
</body>
</html>
.table {
border: 1px solid #f0f;
}
.table td {
border: 1px solid #00f;
}
span{color:#66f}
.t-border.t-border{
border-width: 5px;
// table border="5"
}
.t-cellpadding.t-cellpadding {
padding:10px;
// table cellpadding="10"
}
.t-cellspacing-separate-spacing.t-cellspacing-separate-spacing {
border-collapse: separate;
border-spacing: 10px;
// table cellspacing="10"
}
.t-cellspacing-collapse.t-cellspacing-collapse{
border-collapse: collapse;
// table cellspacing="10"
}
h3 {
color: #AAA;
/* float: left; */
margin: 2em 1em 1em 0;
font-family: monospace;
white-space: pre;
font-weight: normal;
}
body > div {
display: inline-block;
}
hr {
clear:both;
}
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. |