Advertisement
OpataJoshua

Untitled

Jul 21st, 2022
1,066
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.11 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7.     <title>JS Intro</title>
  8.     <link rel="stylesheet" href="style.css" />
  9.     <script src="script.js"></script>
  10.   </head>
  11.   <body>
  12.     <div id="app">
  13.       <form class="card">
  14.         <h3 class="title">SIMPLE CALCULATOR</h3>
  15.         <div class="inputs-wrapper">
  16.           <input id="num1" type="number" placeholder="First Number"/>
  17.           <select id="operator">
  18.             <option value="+">plus</option>
  19.             <option value="-">minus</option>
  20.             <option value="*">times</option>
  21.             <option value="/">divided by</option>
  22.           </select>
  23.           <input id="num2" type="number" placeholder="Second number" />
  24.         </div>
  25.         <button type="submit">Calculate</button>
  26.         <div class="answer-box">
  27.           <p class="answer-label">Your answer is</p>
  28.           <h4 id="answer-value">32434</h4>
  29.         </div>
  30.       </form>
  31.     </div>
  32.   </body>
  33. </html>
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement