Strona HTML w notatniku minimum 2 podstrony dowolny temat proszę szybko daje naj​



Odpowiedź :

Odpowiedź:

link do dokumentu

index.html

<!DOCTYPE html>

<html>

   <body>

       <h2>kalkulator podstronny :)</h2>

       <p><a href="./calc/dodawanie.html">dodawanie</a></p>

       <p><a href="./calc/odejmowanie.html">odejmowanie</a></p>

   </body>

</html>

/calc/dodawanie.html

<!DOCTYPE html>

<html>

   <body>

       <h2>dodawanie</h2>

       <input id="a" type="number">

       <p>+</p>

       <input id="b" type="number">

       <input type=button onclick="document.getElementById('out').innerHTML = document.getElementById('a').value + document.getElementById('b').value" value="oblicz">

       <pre id="out"></pre>

   </body>

</html>

/calc/odejmowanie.html

<!DOCTYPE html>

<html>

   <body>

       <h2>dodawanie</h2>

       <input id="a" type="number">

       <p>-</p>

       <input id="b" type="number">

       <input type=button onclick="document.getElementById('out').innerHTML = document.getElementById('a').value - document.getElementById('b').value" value="oblicz">

       <pre id="out"></pre>

   </body>

</html>