In the beginning, I used >, I was just checking if Id would work the same or not. That is the reason that the CSS code is still with Id. However, the error is still the same.
The color #000000 is dark and the text is also black that is the reason that the ul>p was all dark with no text visible, I just added "color: white" for ul>p, now the text is visible with the background #000000.
The First issue is still the same.