Css style not applying
So I'm just beginning with HTML and CSS in visual studio and for practice I'm making a clone of youtube..i want to add Tooltips for buttons like search..thus i added a div block for Tooltip next to the buttons...but css styling for the class tooltip isnt working but when style is written in-line(tag) it works...this has happened before with out blocks too..i tried in both chrome and brave browsers HTML CODE: <div class="middle"> <input class="search" type="text" placeholder="Search" > <button class="searchbutton"> <img class="searchi" src="icons/search.svg"> <div><p class="tooltip">Search</p></div> </button> <button class="audiobutton"><img class="voicei" src="icons/voice-search-icon.svg">`your text` <div class="tooltip" >Search with Audio</div> </button> </div> CSS code: .tooltip{background-color:grey;color:black} other codes in the css file work perfectly fine