Welcome to WebmasterWorld Guest from 54.160.131.144

Forum Moderators: phranque

Message Too Old, No Replies

Is a Hidden <div> considered bad?

     

philipmiami

2:29 pm on May 16, 2008 (gmt 0)

5+ Year Member



Quick question, are hidden <div> tags considered bad?

Thanks,
PM

jezra

5:36 pm on May 16, 2008 (gmt 0)

10+ Year Member



That would depend upon your definition of bad.

I use hidden divs all of the time, although the div usually becomes visible when the user performs a specific action.

Similarly, if I have a page where javascript is required, I will create a div with content that says "javascript is required", then on page load, I will use javascript to hide the div. If the user's browser has javascript enabled, then the div will never be visible and this is a good thing.