start copy code from here
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>E-Commerce</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<!-- menu bar code here -->
<nav class="navbar navbar-expand-lg bg-white">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="https://static-assets-web.flixcart.com/batman-returns/batman-returns/p/images/fkheaderlogo_exploreplus_mobile-39120d.svg"
alt="">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo02"
aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo02">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" aria-disabled="true">Disabled</a>
</li>
</ul>
<form class="d-flex" role="search">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success" type="submit">Search</button>
</form>
</div>
</div>
</nav>
<!-- menu bar end here -->
<!-- slider bar -->
<div id="carouselExampleIndicators" class="carousel slide">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="0" class="active"
aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="1"
aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleIndicators" data-bs-slide-to="2"
aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="https://rukminim2.flixcart.com/fk-p-flap/1010/170/image/e1adc90fb318620f.jpg?q=20"
class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://rukminim2.flixcart.com/fk-p-flap/1010/170/image/a6e3e8335d6e7d9b.jpg?q=20"
class="d-block w-100" alt="...">
</div>
<div class="carousel-item">
<img src="https://rukminim2.flixcart.com/fk-p-flap/1010/170/image/3f76d0d7e5b58ffe.jpg?q=20"
class="d-block w-100" alt="...">
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleIndicators"
data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleIndicators"
data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
<!-- slider bar end here -->
<div id="productArea" class="row">
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
<script>
function loadProduct() {
let x = document.getElementById("productArea");
let p = document.createElement("div");
p.setAttribute("class", "col-4");
p.innerHTML = '<div class="card">' +
'<img src="" height="250px" class="m-2">' +
'<div class="card-body text-center">' +
'<h5 class="card-title">Card title</h5>' +
'<h5 class="card-title">Rs.345</h5>' +
'<p class="card-text">dfg</p>' +
'<a href="#" class="btn btn-success">Add To Cart</a>' +
'<a href="#" class="btn btn-warning">Buy Now</a>' +
'</div>' +
'</div>';
x.appendChild(p);
}
loadProduct();
loadProduct();
loadProduct();
</script>
</html>