I'm trying to do something, but I do not know how. Look at the code below (in html
) by clicking the "H" button a text field just below it opens. So far so good, but what I wish was that this text field, which ended up opening when I clicked on "H", was written to another file html
, not everything in the same file. As if I split this html
file into two other files, but I do not know how to do that while maintaining that same effect.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.description{display:none;border-radius:10px;}
.description:target{display:block;}
.descriptions{margin:1.5em;}
</style>
</head>
<body>
<a href="#002_he">H</a>
<div class="description g-nobre" id="002_he">
<h2><a href="elemento/002_he">Hélio</a></h2>
<p>queria que os comandos que ficassem nessa parte, fossem escritos em um arquivo diferente do arquivo que tem o botão.</p>
</div>
</body>
</html>