Considere o código a seguir, criado com jQuery:
<!DOCTYPE html>
<html>
<head>
<title>Efeito</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script type="text/javascript">
$(document).ready(function() {
$('button').click(function() {
});
});
</script>
</head>
<body>
<button type="button">Exibir/Ocultar</button>
<p>Aqui deve ser colocado o texto do parágrafo.</p>
</body>
</html>
Fonte: ANALISTA TéCNICO EDUCACIONAL - TECNOLOGIA DA INFORMAçãO / CETAM / 2014 / FCC