Skip to main content

Posts

Showing posts with the label JavaScript

How to create a simple shopping project using HTML, CSS and JavaScript?

 Below is the complete shopping project with all necessary features are required. Let's follow the step by step process: index. html page code: <!DOCTYPE html> <html lang="en"> <head>   <meta charset="UTF-8">   <meta name="viewport" content="width=device-width, initial-scale=1.0">   <title>Online Shop</title>   <link rel="stylesheet" href="style.css"> </head> <body>   <!-- Header -->   <header class="header">     <div class="logo">ShopLogo</div>     <nav class="nav">       <a href="#">Home</a>       <a href="#products">Products</a>       <a href="#cart">Cart</a>       <a href="#contact">Contact</a>     </nav>   </header>   <!-- Hero Section -->   <section class="hero">     <h1...

Create a Confirm Modal Box-HTML, CSS, Javascript

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> .confirm-box{ background-color: rgba(0, 0, 0, 0.5); width:100%; height:100%; position: fixed; top:0; left:0; z-index: 9999; display: flex; justify-content: center; align-items: center; } .message-box{ background-color:#fff; text-align: center; font-family:arial; font-family:16px; line-height: 1.5; padding:20px; border-radius:5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); } .button-box{ margin-top:30px; } .yes-button,.no-button{                               padding:10px 20px;                             ...