style to display elements code example
Example 1: html display property
p {display: none;} /*This will disappear element on screen*/
p {display: inline;} /*This will allow items to sit in-front of it*/
p {display: block;} /*This will block other items from sitting in-front of it*/
p {display: inline-block;} /*This will allow you to change the width and sit in-front elements*/
Example 2: js display property
Check this! https://dev.to/devlorenzo/js-hide-and-show-32og