Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
  <style>
    div{
      background-color:blue;
      display:inline;
      padding:5px;
    }
    span{
      background-color:red;
      margin:5px;
    }
  </style>
</head>
<body>
  span is red, div is blue;<br/>
  <button onclick="javascript:putSpanInDiv()" >run script</button><br/>
  <span id="myspan">here's some content in a span</span>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers