We will need a link to the project and see all your code to help you out. Is this project on a codepen by any chance? If so, you can paste the link here so we can see the entire project.
I wrote id=“title” in the tag as well. This was the mistake.
Thank you so much everyone for taking time from your busy schedules to help me out.
I am really grateful (and happy too cuz i finally found the solution).
Have a good day!