Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

Show and Hide Blocks of Text with DHTML

Monday October 15, 2007
There are many uses of the ability to show and hide blocks of content on your Web pages. In fact, this is what makes most Web pages look and act more like applications - the content only appears when the reader asks for it. And the advantage of this method is that it only uses around 4 lines of JavaScript and 2 lines of CSS. Plus, the content appears and disappears when you click the links - toggling it on and off. Once you've seen this simple technique, you can apply it to your Web pages to create dynamic applications that load exactly what the reader is looking for exactly when they want it.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Web Design / HTML

About.com Special Features

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.