When dealing with a dynamic website that includes components from various plugins, is it acceptable to hide elements temporarily or permanently using display:none
? Sometimes clients may request certain items to be hidden from the page, so instead of removing them from the source code, I opt to use display:none
. This way, if the client changes their mind, we can easily enable the element again.
What are the advantages and disadvantages of keeping elements hidden with display:none
indefinitely?
Are there any potential drawbacks in terms of SEO, screen readers, accessibility, etc. when utilizing display:none
for hiding elements?