0
Syntex error
How do I fix Line#11 JS SyntexError https://sololearn.com/compiler-playground/W98RERaLxwk3/?ref=app
3 Answers
+ 4
did you copy paste it from somewhere?
lots of errors.
> and <
those are supposed to be > and <
you also need jquery cdn
there is a typo in your html... plus-btn not pkus-btn
plus.svg and minus.svg are not loaded. you need to embed those for Sololearn..
0
The HTML code you provided seems to be a shopping cart layout, but it's missing the CSS and JavaScript parts, and it has some minor issues. What specific syntax error are you encountering?
0
<!DOCTYPE html>
<html>
<head>
<title>CSS & JS Shopping Cart</title>
</head>
<body>
<div class="shopping-cart">
<!-- Title -->
<div class="title">
Shopping Bag
</div>
<!-- Product #1 -->
<div class="item">
<div class="buttons">
<span class="delete-btn"></span>
<span class="like-btn"></span>
</div>
<div class="image">
<img src="item-1.png" alt="" />
</div>
<div class="description">
<span>Common Projects</span>
<span>Bball High</span>
<span>White</span>
</div>
<div class="quantity">
<button class="plus-btn" type="button" name="button">
<img src="plus.svg" alt="" />
</button>
<input type="text" name="name" value="1">
<button class="minus-btn" type=