How To Build Notes App Using HTML CSS and JavaScript

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Learn How To Build Notes App Using HTML CSS and JavaScript | Online Notes App In JavaScript Step By Step Tutorial For Beginners
    #JavaScript #JavaScriptProjects
    ❤️ SUBSCRIBE: goo.gl/tTFmPb
    In this video you will learn to make a Notes App or Website with HTML, CSS and JavaScript.
    In this JavaScript Project we are using Local Storage that will store the notes in your web browser, So that if you close and restart the browser then also it will display your saved notes.
    Download Images: drive.google.c...
    JavaScript Notes app, Notes app using JavaScript, JavaScript projects for beginners, JavaScript projects for students, JavaScript tutorial, JavaScript project for college students, college project in javascript, Notes App Development
    -----------------------------------------
    Suggested Course:
    ❤️ Complete website Using HTML and CSS
    ✔️ 8 Complete website step by step
    ✔️ Source Code Download
    ✔️ 76 Lectures, 12 Hours Video
    ✔️ Course Completion certificate
    👉 easytutorialsp...
    -------------------------------------
    Recommended Videos:
    Learn Complete HTML and CSS from basics:
    ► • HTML And CSS Tutorial ...
    Make A Complete Website for college using HTML & CSS:
    ► • How To Make A College ...
    How to make a Business website step by step:
    ► • How To Make Website Us...
    How to make personal resume website step by step:
    ► • How To Make A Website ...
    How to make fitness website design using HTML CSS:
    ► • How To Make A Website ...
    How to make an Ecommerce Website Design:
    ► • How To Make eCommerce ...
    How to make a Job Portal website design with HTML & CSS:
    ► • How To Make Website Us...
    How to make travel website design with HTML CSS Bootstrap:
    ► • How To Make A Website ...
    -------------------------------------
    Affordable web hosting (coupon- EASYTUTORIALS)
    👉 easytutorialsp...
    My recommended tools and tutorials
    👉 easytutorialsp...
    -------------------------------------
    ◼️ Source code link is shared in community post for all my coding videos exclusively for channel members (only channel members can see)
    Join Channel Membership:
    ► / @greatstackdev
    -------------------------------------
    Connect with me:
    👉 linktr.ee/iama...

Komentáře • 162

  • @islamicfinance001
    @islamicfinance001 Před 8 měsíci +16

    ******* Attention ********
    Using the "let" keyword instead of "const" in declaring 'notes' is making a huge difference in the final outcome. SO, make sure to use the let keyword in declaring the notes variable!

  • @polimorphic13
    @polimorphic13 Před rokem +7

    Thank you again! I've been the whole morning creating projects following your tutorials.

  • @olawale11954
    @olawale11954 Před rokem +4

    Thank you sir for the video. Have learnt alot from your videos

  • @islamicfinance001
    @islamicfinance001 Před 8 měsíci +4

    @GreatStack, What is the necessity of the line 24 (i.e. notes = document.querySelectorAll(".input-box");) while the same thing is written in the line 3? Could you plz explain...

    • @bashcode6699
      @bashcode6699 Před 5 měsíci

      because let can be accessed in block scope separately, it cannot be globally accessed.

  • @Dev_Ribeiro
    @Dev_Ribeiro Před rokem +6

    Great for learning how to use local storage and other things, congratulations for the video

  • @batuhanbayr7613
    @batuhanbayr7613 Před 11 měsíci +2

    best teacher for juniors 💙

  • @shubhamkapase07
    @shubhamkapase07 Před 6 měsíci +8

    I see people getting error one important part is left in the code Check this you have to update Storage:
    createBtn.addEventListener("click", ()=>{
    let inputBox = document.createElement("p");
    let img = document.createElement("img");
    inputBox.className = "input-box";
    inputBox.setAttribute("contenteditable", "true");
    img.src = "images/delete.png";
    notesContainer.appendChild(inputBox).appendChild(img);
    updateStorage(); // Update storage when a new note is created
    })

    • @resh7521
      @resh7521 Před 2 měsíci

      Thank you so much, you saved me

    • @dubhub4373
      @dubhub4373 Před 8 dny

      Yes but content inside the p is getting deleted after refreshing the page

  • @himanshushekatkar1410
    @himanshushekatkar1410 Před měsícem +1

    how to deploy it as an application and responsive to operate from mobile device

  • @ritiksharma185
    @ritiksharma185 Před 9 měsíci +9

    i don't where i code wrong but i write code like you but everything is working but the local storage save notes code not working can you help me please?

    • @viczav
      @viczav Před 4 měsíci

      Did you fix it? Everything works perfectly but that feature, lol

    • @aurelgolemi3626
      @aurelgolemi3626 Před 3 měsíci

      I have a similar problem to which one note stays permanent without the delete button

    • @KardanKaaal
      @KardanKaaal Před 25 dny +1

      check event listener of notes container wherr the 2nd else condition check whether e.target.tagName = "p"; or e.target.tagName="P";

    • @KardanKaaal
      @KardanKaaal Před 25 dny

      ​@@aurelgolemi3626You deleted the delete button using backspace as it is inside P tag. The delete button should be outside of the P tag. You can check there is a cursor line if you mistakenly clicked there and press backspace then boom you delete your delete key. So better try to add that delete key outside of your oaragraph tag because we gave that paragraph tag to edit content using contenteditable=true.
      Try using your own idea to make that button stat outside of the p tag.

    • @ShubhamSharma-xn1tr
      @ShubhamSharma-xn1tr Před 5 dny

      @@KardanKaaal thanks a lot
      it resolved

  • @Islamic_content92
    @Islamic_content92 Před rokem

    Js tutorial banaye I want to learn JavaScript 👏👏👏👏jese basic js project wese hi js tutorial banaye

  • @francesco.paletta
    @francesco.paletta Před 8 měsíci

    Thank you for this tutorial! You explained that very well.

  • @Efizzy_brendan
    @Efizzy_brendan Před rokem +1

    You did not work on the edit button? Assuming there's error and needed corrections 🤷🏻‍♀️
    Nice one boss

  • @ayushmanlimbu
    @ayushmanlimbu Před 6 měsíci +2

    Quick Query. When we select the note the blinking line is not on the first line but its next to the delete icon. How to improve that?

  • @bilbyplaisir9413
    @bilbyplaisir9413 Před rokem +2

    Hi I can say since I followed you my skills are now increasing I like your videos so much but I wanted you to make a video about a working payment gateway thank you 🙏🙏👋👋

  • @bookreadershub1153
    @bookreadershub1153 Před 11 měsíci

    better understanding of DOM manipulation

  • @animemangagirl3420
    @animemangagirl3420 Před rokem +2

    Amazing tutorial^^ that helped a lot.
    But... How can I do a like and dislike function that actually works on all comment's boxes??? @o@

    • @Nebelkehlchen
      @Nebelkehlchen Před rokem

      I am trying to think about it,. For my understanding: 1 Button for all notes together or 1 Button for each individual note?

  • @vigneshnaik546
    @vigneshnaik546 Před rokem +1

    Instead of create element in javascript we can use inseradjecent html this is easy way

  • @electroboyy2164
    @electroboyy2164 Před 2 měsíci +1

    can someone help me iam facing problem in this code iam unable to write or click on notes
    help

  • @ShimmerBodyCream
    @ShimmerBodyCream Před rokem +1

    thank you! What a fantastic resource.

  • @Hybridham86
    @Hybridham86 Před rokem +5

    Hi there could you please provide the source code ? I'd like to compare as my local storage isn't working. Thank you.

  • @franciskp9117
    @franciskp9117 Před 9 měsíci +11

    One minor bug i've noticed is that we can delete the delete button from the webpage. If done, there is no way to delete that particular note.

    • @zombiear6147
      @zombiear6147 Před 8 měsíci +2

      Yes I got that too, you can add the below code in the place of input section and the functionality of the backspace will be disabled when selecting all text :
      createBtn.addEventListener("click", () => {
      let inputBox = document.createElement("p");
      let img = document.createElement("img");
      inputBox.className = "input-box";
      inputBox.setAttribute("contenteditable", "true");
      img.src = "images/delete.png";
      img.addEventListener("mousedown", (event) => {
      event.stopPropagation();
      });
      inputBox.addEventListener("keydown", (event) => {
      if (event.key === "Backspace" && isCaretAtStart(inputBox)) {
      event.preventDefault();
      }
      });
      notesContainer.appendChild(inputBox).appendChild(img);
      });
      function isCaretAtStart(element) {
      const selection = window.getSelection();
      return selection.rangeCount > 0 && selection.getRangeAt(0).startOffset === 0;
      }

    • @franciskp9117
      @franciskp9117 Před 8 měsíci

      @@zombiear6147 thanks bro

    • @DAGBEAVER1995
      @DAGBEAVER1995 Před 8 měsíci

      @@zombiear6147 It seems to me, that making IMG element a sibling element with relative position fixed the problem. Also appending input-box element with IMG element, and deleting both at the same time

    • @Child_club
      @Child_club Před 7 měsíci +4

      Instead of writing the lengthy code simply write contenteditable = "false" in IMG tag 😅

    • @svdden_strike
      @svdden_strike Před 4 měsíci

      @@Child_clubI didn’t work

  • @mdakhlasurrahmanrana7433

    Hello Brother becous of i learn all new thing easily🙂If you don't mind make a video school management system in php plz🥺

  • @ed_badilla
    @ed_badilla Před 10 měsíci

    what can we use instead of document.execCommand("insertLineBreak"); as execCommand is deprecated ???
    thanks for you hard work!

    • @quinojuan2
      @quinojuan2 Před 9 měsíci +2

      Question to ChatGPT or Bard. Your life will change

  • @DruvAbhi
    @DruvAbhi Před 25 dny

    why if i write someting on note thn i click enter for next line after that i click delete option it delets only single line

  • @incognito_user12
    @incognito_user12 Před měsícem +1

    Your 20sec unstoppable ad traumatizing me 🥲

  • @lexgim
    @lexgim Před 4 měsíci +2

    if u use ctrl + a and delete u can delete the delete button lmaooo, how do i fix this?

    • @HakanLykiaDemir
      @HakanLykiaDemir Před 2 měsíci +1

      notesContainer.addEventListener('click',function(e){
      if(e.target.tagName === 'IMG'){
      e.target.parentElement.remove();
      updateStorage()
      }else{
      notes = document.querySelectorAll('.input-box')
      notes.forEach(nt =>{
      nt.onkeyup = function(){
      updateStorage();
      }
      })
      }
      nt.querySelector('img').setAttribute('contenteditable', 'false'); //this line
      })
      If you add this line of code, you can make 'img' uneditable. it will not disappear when you do a Delete operation afterwards.

    • @lexgim
      @lexgim Před 2 měsíci

      @@HakanLykiaDemir i'll try this, either way I love you

    • @saadlasharii
      @saadlasharii Před 20 dny

      @@HakanLykiaDemir its not working for me even I exactly copied your code

  • @MyGamingEra
    @MyGamingEra Před rokem +6

    Local storage note working sir🥲

    • @ltzZara
      @ltzZara Před 2 měsíci

      Same 😩😣😑

  • @abdiladifmohamud5957
    @abdiladifmohamud5957 Před rokem +3

    Sir localstoarge is not working for me. How can I solve it? I have followed you step by step but am unsuccessful

    • @user-gp5bl7tl3x
      @user-gp5bl7tl3x Před 11 měsíci

      Capitalize the “p” in row 28 …do it like this 👇🏼
      else if(e.target.tagName === “P”)

    • @sarthakgupta124
      @sarthakgupta124 Před 10 měsíci

      You would've used const notes while declaring notes at the start of the js code instead of let. use let and it will work

  • @rahulshendre7089
    @rahulshendre7089 Před měsícem

    done, thanks a lot

  • @anchalsehgal7779
    @anchalsehgal7779 Před 2 měsíci

    if i use getelementsbyclassname insttead of queryselectorall with the else if e.target.tagname==p condition it doesnt work. Why so

  • @GRDipankar-kv6pu
    @GRDipankar-kv6pu Před 3 měsíci +1

    Awesome

  • @realnatureloveradda1811
    @realnatureloveradda1811 Před 6 měsíci +3

    Sir why my local storage data not updating? Its deleted when i refresh the page.

    • @uggman9
      @uggman9 Před 2 měsíci

      im getting the same error

    • @princeadigwe3764
      @princeadigwe3764 Před 21 dnem

      Here are my suggestions:
      1. Make sure you call the showNotes() function.
      Maybe you only defined it and did not call it.
      In the video, he calls showNotes() function immediately after defining it 👉 23:36
      2. Check your browser console to see if there are any error messages

  • @alimulla4098
    @alimulla4098 Před rokem +3

    Bring more projects for beginners sir😊

  • @anishhazra2204
    @anishhazra2204 Před rokem

    sir react js ka bhi bano video please

  • @utkarshpatidar167
    @utkarshpatidar167 Před 9 měsíci

    if(localstorage issue){
    You need to replace that else if condition
    You can write -
    else if (e.target.classList.contains("input-box"))
    }

    • @wafs1393
      @wafs1393 Před 9 měsíci

      Can you send me your source code, mine still doesnt work

    • @utkarshpatidar167
      @utkarshpatidar167 Před 9 měsíci

      @@wafs1393 ok
      After few hour i will send it to you.

    • @wafs1393
      @wafs1393 Před 9 měsíci

      @@utkarshpatidar167 ok I managed to fix the issue

    • @pain7359
      @pain7359 Před 9 měsíci

      hi im new to js and i am really confused can you show me your code on this ? i dont know where should i put this

    • @sourav5736
      @sourav5736 Před 3 měsíci

      Thanks a lot broooo❤

  • @Themescore
    @Themescore Před rokem

    Make a video on permanent dark and light mode Website

  • @satisfyingvideos2.016
    @satisfyingvideos2.016 Před 6 měsíci +1

    hi dear when we select all and enter backspace key the delete image that we put at the bottom also removed.....why?

    • @faizanfactsyt2212
      @faizanfactsyt2212 Před 6 dny

      because the image is also in the container and when you say remove the p tag in p tag there is also put the image aoutside of the container

  • @jayprakashyadab
    @jayprakashyadab Před 3 měsíci

    how to add the functioloty drag and drop of notes ?

  • @AVTerrorX
    @AVTerrorX Před rokem +1

    When i added updateStorage function in createBtn section, it started to store and save the data. Till before, it wasn't storing anyting. How is this possible?

    • @mohammadayasha9499
      @mohammadayasha9499 Před 8 měsíci

      beacuse we have to create element in local storage so that it can respond to any click events on notesContainer , i think .....

  • @sweetdevil3647
    @sweetdevil3647 Před rokem +1

    It's An Amazing Project Sir, I've Been Following You For The Few Days. And It Is Quite Good To Following You. Sir There Is Small Issue In This Nots Website That The Cursor Is Starting From The Image Tag Not From Te Starting, So How To Fix It ? And Also While Selecting All Text Using CTRL + A The All The Text With The Image Also Get Selected And While Pressing Back Space It's Also Deleting The Img

    • @ballskin
      @ballskin Před 11 měsíci

      that's one big film title

  • @Islamic_wisdom535
    @Islamic_wisdom535 Před 11 měsíci +3

    Thanks for the wonderful tutorial ❤
    But when i completed this project , in the first notes box delete icon is not showing and i can't be able to remove first note box 😢😢
    What to do now ?!

    • @stackunderflow6167
      @stackunderflow6167 Před 7 měsíci +1

      this also my problem. I realized from another comment that contenteditable = true makes the delete button also delete-able. So for now just copy the button from another notes 😂😂

  • @Priya_SM-vx1mu
    @Priya_SM-vx1mu Před rokem

    Why I couldn't store the data when I refresh the page.
    I have given the exact get, set Item still i couldn't store and show the data.

  • @amiralisalari6863
    @amiralisalari6863 Před měsícem

    Thanks❤

  • @monk_widom
    @monk_widom Před rokem +1

    Sir I use button instead delete icon
    But when I write something it will start writing inside the buttons not I p tag
    ......solve this

  • @purbayanghosh9950
    @purbayanghosh9950 Před 8 měsíci

    Using contenteditable, true makes the delete image deletable. Problem is there in the code

    • @stackunderflow6167
      @stackunderflow6167 Před 7 měsíci

      ah, you are right 😂 I'm wondering for minutes why my delete button is not showing. For now, I simply copy the delete button from another notes 😅😅 but how to actually solve it?

  • @vedantzanjad
    @vedantzanjad Před rokem

    Thank You

  • @kaleb823
    @kaleb823 Před rokem

    can you help me Why the delete image is deleted by cursor.

  • @emmanuelimwa2905
    @emmanuelimwa2905 Před rokem

    would you please provide the link for downloading images.

  • @dadi_vlogs3254
    @dadi_vlogs3254 Před 9 měsíci

    Thanks Bro.

  • @harshitvarshney3993
    @harshitvarshney3993 Před měsícem

    is there a method to contain the notes a person writes inside the notes container coz its going out of the container
    box after reaching the end ?

    • @princeadigwe3764
      @princeadigwe3764 Před 21 dnem

      Set this CSS property for the .input-box class, directly under the min-height property 👇
      height: auto;

  • @user-py4gb3hi9x
    @user-py4gb3hi9x Před rokem +1

    I don't see the images link in the description

  • @luckydotpro5533
    @luckydotpro5533 Před rokem

    Show as about a video play using js

  • @abdoulayebah2932
    @abdoulayebah2932 Před rokem

    Where is the path to download the images for this project.

  • @user-bk6yu8um3u
    @user-bk6yu8um3u Před 10 měsíci

    Nice

  • @CodeWithRingo
    @CodeWithRingo Před 10 měsíci +1

    mine aint work

  • @Juwonempire
    @Juwonempire Před rokem +1

    Hello Sir, everything works perfectly as it show in the tutorial, but after deleting the note, I'm unable to add new note until i remove the showNotes() function.

  • @syedsalmanali7359
    @syedsalmanali7359 Před rokem

    there is held error in javascript 1st 5th line please tell me

  • @the_phoenix2768
    @the_phoenix2768 Před rokem

    Hi i have followed what you did with the dustbin icon but after l place java script it disappears .can you help

  • @amalilmu3235
    @amalilmu3235 Před 9 měsíci +1

    it's not working at my pc.

  • @user-yd4pb6tg4c
    @user-yd4pb6tg4c Před 10 měsíci

    google drive not work properly. Image download problem.

  • @charonissimo7683
    @charonissimo7683 Před 2 měsíci

    Can somebody explain me, why the function preventDefault() is using? The Key "Enter worrks anyway! Also why preventing its function and writing the same function?

  • @bimokayoba
    @bimokayoba Před rokem

    you can use this instead of create element
    addNoteBtn.addEventListener("click", () => {
    const newNoteHTML = '';
    noteContainer.insertAdjacentHTML("beforeend", newNoteHTML);
    // After adding the new note, update the 'notes' NodeList
    notes = document.querySelectorAll(".input");
    });

  • @target500milliontradersinv5
    @target500milliontradersinv5 Před 10 měsíci

    Super. But writing showNotes javascipt code, I got null in browser. I don't know why . And also after refreshing, its not showing the stored data. Can any one help me to resolve?

    • @AnkitVerma-dj9dn
      @AnkitVerma-dj9dn Před 7 měsíci

      The notes variable is initially assigned a NodeList of elements with the class "input-box". However, when you dynamically add a new note in the event listener for the create button, you need to update the notes variable to include the new note.

  • @user-rt7ql9di7l
    @user-rt7ql9di7l Před 10 měsíci

    I have a problem of addEventListener at 5th line of js. It says
    Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
    I've googled it but couldn't find any solutions. Can anyone help me with this

  • @Dibyendu_das_96
    @Dibyendu_das_96 Před 11 měsíci

    nice

  • @chargeff06
    @chargeff06 Před měsícem

    Hey, can anyone help me. My text is not getting saved😭

  • @pain7359
    @pain7359 Před 9 měsíci

    why is my local storage not working ? I'm new to programming i don't know much :(

  • @PSECO_Apoorva
    @PSECO_Apoorva Před 2 měsíci

    Click button is not working sir

  • @mdabu3331
    @mdabu3331 Před rokem

    Nicee sir❤❤

  • @coding-ka-badshah
    @coding-ka-badshah Před rokem +4

    Make a full animated tekit booking website

  • @walidomar7758
    @walidomar7758 Před měsícem

    when i want to save contant without deleting everything it didn't save anything so i used this code and it works fine with me if anyone face the same problem.
    else if (e.target.tagName === "P") {
    notes = document.querySelectorAll(".input-box");
    notes.forEach(nt => {
    nt.addEventListener("keyup", updateStorage);
    });
    }

  • @user-cf2xk2de5t
    @user-cf2xk2de5t Před 8 měsíci

    what if the images are not showing

  • @rakeshpandey6768
    @rakeshpandey6768 Před rokem +1

    There is a problem with content editable as if user select all and delete the content in browser, delete button also gets deleted 😂😂

    • @salehabdullah-lt7fk
      @salehabdullah-lt7fk Před rokem

      I noticed the same thing, do you know the solution to prevent this?

    • @17-4-4
      @17-4-4 Před 11 měsíci

      did u find it?@@salehabdullah-lt7fk

  • @arjuno7058
    @arjuno7058 Před rokem

    I followed all the instructions in the video everything works fine, but when I reload the browser the note disappear. And when I checked on the console it shows no errors. The storage doesn't work

    • @abhishekpandey9762
      @abhishekpandey9762 Před rokem

      SAME PROBLEM bro

    • @bigneism
      @bigneism Před 11 měsíci

      the p in
      else if(e.target.tagName === 'p')
      must be capitalized

    • @bigneism
      @bigneism Před 11 měsíci

      @@abhishekpandey9762
      the p in
      else if(e.target.tagName === 'p')
      must be capitalized

    • @arjuno7058
      @arjuno7058 Před 11 měsíci

      @@bigneism WOW...thanks a lot. It works 😃

    • @bigneism
      @bigneism Před 11 měsíci

      @@arjuno7058 happy i could help

  • @namangyan7647
    @namangyan7647 Před 8 měsíci

    this application does not work on android?

  • @priyanshushekhar7548
    @priyanshushekhar7548 Před 8 měsíci

    Why my local storage function not working.
    I tried so many times but my notes are not store in storage .
    Can you help me.

  • @srinithi9510
    @srinithi9510 Před 7 měsíci

    in notes app how to give a link for map

  • @user-kq5zf2df3u
    @user-kq5zf2df3u Před rokem

    mine isn't working when i click on it

  • @hiharajpoot314
    @hiharajpoot314 Před 5 měsíci

    mera create note open hi nhi ho rha why??

  • @ManasRanjanSahu
    @ManasRanjanSahu Před 3 měsíci

    Localstorage not working

  • @SiwaBayek
    @SiwaBayek Před rokem

    pics folder is no available

  • @RonalRomeroVergel
    @RonalRomeroVergel Před 2 měsíci

    i refresh and disappear :'v

  • @itspankajfun8857
    @itspankajfun8857 Před 5 měsíci

    not working this java code ples

  • @web_seriesatoz
    @web_seriesatoz Před rokem

    Can you help me sir

  • @shubhamrathod9249
    @shubhamrathod9249 Před 3 měsíci

    17:08

  • @abhisaragarwal9084
    @abhisaragarwal9084 Před rokem

    Hello sir I want to know how can I make a project section for my portfolio website I need a good card design where it would be responsive and the UI should also not be that bad

  • @mitamodak495
    @mitamodak495 Před 6 měsíci

    You did not define the edit button

    • @deepdas7674
      @deepdas7674 Před 5 měsíci

      Do it yourself just targeting the element and change the attributes of content editable that's it

  • @anubratamallick5502
    @anubratamallick5502 Před 7 měsíci

    10:14

  • @esy2bear970
    @esy2bear970 Před 11 měsíci

    18:33 i have problem that after i delete one note , i cant add new note anymore

  • @amrfathi5135
    @amrfathi5135 Před rokem

    Can i make it Exe

  • @web_seriesatoz
    @web_seriesatoz Před rokem

    Hell sir

  • @yangus2485
    @yangus2485 Před 7 měsíci

    does the notes remains if i close and re-open the live server?

  • @WR_81
    @WR_81 Před 2 měsíci

    hahaha, I can delete the trash can image with a simple "backspace"

  • @bigneism
    @bigneism Před 11 měsíci +5

    if the local storage doesn't work for you, and the notes aren't there after you reload the page, capitalize the p in row 28
    else if(e.target.tagName === 'p')
    just change p to P and it's gonna work