Open In App

How To Build Notes App Using Html CSS JavaScript ?

Last Updated : 25 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article, we are going learn how to make a Notes App using HTML, CSS, and JavaScript. This project will help you to improve your practical knowledge in HTML, CSS, and JavaScript. In this notes app, we can save the notes as titles and descriptions in the local storage so the notes will stay there and will not be removed on reload.

Prerequisites

Approach

  • Firstly, build the basic structure of the app using HTML, using different tags like <div>,<p>,<button> according to the requirement.
  • Then, give the styling to the app using CSS, add properties like flex, position, and padding to beautify your app project, and give proper formatting, height, width, and color.
  • Now it's time to give functionality to the add note, delete button, and save button. Also, we have to store the notes in the localStorage to save them.
  • For Add and Save we have independent functions.

Example: Here we first design the structure of our project and given styling then we will code for the functionality.

HTML
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" 
          content="IE=edge">
    <meta name="viewport" 
          content="width=device-width, initial-scale=1.0">
    <title>Note App</title>
    <link rel="stylesheet" href="./style.css">
</head>

<body>
    <div class="btn">
        <div class="heading">
            <h1>Note Taking App</h1>
        </div>
        <button id="addBtn">
            <i class="fas fa-plus"></i>
            Add Note
        </button>
    </div>
    <div id="main">

    </div>
    <script src=
"https://kit.fontawesome.com/bf520e6492.js" 
            crossorigin="anonymous">
      </script>
    <script src="./script.js"></script>
</body>

</html>
CSS JavaScript

Output:

1



Next Article

Similar Reads