×

Save Your Code

If you click the save button, your code will be saved, and you get an URL you can share with others.

By clicking the "Save" button you agree to our terms and conditions.

Report Error

×

Save to Google Drive

If you have a Google account, you can save this code to your Google Drive.

Google will ask you to confirm Google Drive access.

×

Open from Google Drive

If you have saved a file to Google Drive, you can open it here:

Result Size: 625 x 571
x
 
<!DOCTYPE html>
<html>
<title>W3.JS</title>
<meta charset="utf-8">
<script src="../lib/w3.js"></script>
<script>
var myObject= {"customers":[
{"CustomerName" : "Alfreds Futterkiste","City" : "Berlin","Country" : "Germany"},
{"CustomerName" : "Berglunds snabbköp","City" : "Luleå","Country" : "Sweden"},
{"CustomerName" : "Centro comercial Moctezuma","City" : "México D.F.","Country" : "Mexico"},
{"CustomerName" : "Ernst Handel","City" : "Graz","Country" : "Austria"},
{"CustomerName" : "FISSA Fabrica Inter. Salchichas S.A.","City" : "Madrid","Country" : "Spain"},
{"CustomerName" : "Galería del gastrónomo","City" : "Barcelona","Country" : "Spain"},
{"CustomerName" : "Island Trading","City" : "Cowes","Country" : "UK"},
{"CustomerName" : "Königlich Essen","City" : "Brandenburg","Country" : "Germany"},
{"CustomerName" : "Laughing Bacchus Wine Cellars","City" : "Vancouver","Country" : "Canada"},
{"CustomerName" : "Magazzini Alimentari Riuniti","City" : "Bergamo","Country" : "Italy"},
{"CustomerName" : "North/South","City" : "London","Country" : "UK"},
{"CustomerName" : "Paris spécialités","City" : "Paris","Country" : "France"},
{"CustomerName" : "Rattlesnake Canyon Grocery","City" : "Albuquerque","Country" : "USA"},
{"CustomerName" : "Simons bistro","City" : "København","Country" : "Denmark"},
{"CustomerName" : "The Big Cheese","City" : "Portland","Country" : "USA"},
{"CustomerName" : "Vaffeljernet","City" : "Århus","Country" : "Denmark"},
{"CustomerName" : "Wolski Zajazd","City" : "Warszawa","Country" : "Poland"}
]};
</script>
<body>
<h2>Testing W3.JS in HTML</h2>
<table id="id01">
  <tr>
    <th>Customer</th>
    <th>City</th>
    <th>Country</th>
  </tr>
  <tr w3-repeat="customers">
    <td>{{CustomerName}}</td>
    <td>{{City}}</td>
    <td>{{Country}}</td>
  </tr>
</table>
<script>
w3.displayObject("id01", myObject);
</script>
×

Report a Problem: