scrimba
Frontend Career Path
Making websites interactive
Build a Mobile App
innerHTML to append li to ul
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

innerHTML to append li to ul
AboutCommentsNotes
innerHTML to append li to ul
Expand for more info
index.html
run
preview
console
<!doctype html>
<html>
<head>
<title>Add to Cart</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Rubik:wght@300&display=swap" rel="stylesheet">
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container">
<img src="assets/cat.png">
<input type="text" id="input-field" placeholder="Bread">
<button id="add-button">Add to cart</button>
</div>
<script src="index.js" type="module"></script>
</body>
</html>
Console
/index.html
-3:33