Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Is a Hidden <div> considered bad?

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

New User

10+ Year Member

joined:Apr 14, 2008
posts: 16
votes: 0

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


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

Full Member

10+ Year Member

joined:Feb 4, 2004
posts: 215
votes: 0

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members