Files
ict-algemeen-opdrachten/JavaScript/fibonacci/index.html

18 lines
796 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fibonacci Generator</title>
<link rel="stylesheet" href="styles.css"> <!-- Link to the CSS file for styling -->
</head>
<body>
<h1>Fibonacci Generator</h1> <!-- Page title -->
<label for="fibonacciInput">Enter a number:</label> <!-- Label for the input field -->
<input type="number" id="fibonacciInput" min="1"> <!-- Input field for entering the number -->
<button id="generateButton">Generate</button> <!-- Button to generate the Fibonacci sequence -->
<p id="fibonacciResult"></p> <!-- Paragraph to display the result -->
<script src="fibonacci.js"></script> <!-- Link to the JavaScript file -->
</body>
</html>