I have a JS code that creates the div (I created it with JS and not HTML for education purposes):
var profile = document.createElement('div');
.... some code...
document.body.appendChild(profile);
Now in my css file that is associated with the main html file, I have this:
.profile{
display: none;
}
This does not hide the profile div, and I do not understand why. I assume I am missing something in the CSS file, but after looking in the internet I did not find an answer.
<div>you created and apply the styling to it