In this example, I am hiding and showing all three divs using only JavaScript.
Click with your mouse on one of the text containers below to see the effect:

This is a title, you know that, right?

Notice how, when you clicked on this div, the others didn't open even though they are named the same. This is some hidden text.

This is a second title...

Try to disable JavaScript and see what happens with the text containers.

This is a third title...

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam blandit, eros id adipiscing congue, lorem ante sagittis elit, id malesuada nibh est sed orci

Semper. Morbi ultrices fringilla nibh, vel sodales turpis sodales id. Curabitur id ultricies felis. Quisque varius feugiat magna, id scelerisque justo sodales eu. In hac habitasse platea dictumst.