Advertisement
Guest User

todo.html

a guest
Mar 4th, 2019
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.18 KB | None | 0 0
  1. <!-- This is just going to be a mediocre To-Do list. -->
  2.  
  3. <!DOCTYPE html>
  4. <html>
  5.     <head>
  6.         <title>To-Do List</title>
  7.         <link rel="stylesheet" href="todo.css">
  8.     </head>
  9.     <body>
  10.         <div class="toDoList">
  11.             <h4>To-Do List</h4>
  12.             <form target="_self"> <!-- This is so that the submitted information doesn't go anywhere but to the current page. -->
  13.                 <input type="text" name="toDoList" placeholder="To-Do" id="textBox">
  14.                 <input type="submit" value="Add" onclick="newElement()" id="ToDoButton">
  15.                     <!-- newElement() is a JS function that will add the information in the search bar to the unordered list below. -->
  16.             </form>
  17.         </div>
  18.         <section id="main">
  19.             Tasks:
  20.             <ul id = "list">
  21.                 <!-- These are dummy values for the unordered list. The idea
  22.                is that the next item should be placed beneath them. -->
  23.                 <li>test1</li>
  24.                 <li>test2</li>
  25.                 <li>test3</li>
  26.             </ul>
  27.         </section>
  28.         <script type="text/javascript" src="todo.js"> </script>
  29.     </body>
  30. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement