Add comments and styling enhancements to Fibonacci generator application

This commit is contained in:
vista-man
2025-01-27 20:37:24 +01:00
parent 0f81802c1b
commit 5fd81c8920
3 changed files with 26 additions and 16 deletions

View File

@@ -4,14 +4,14 @@
<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 rel="stylesheet" href="styles.css"> <!-- Link to the CSS file for styling -->
</head>
<body>
<h1>Fibonacci Generator</h1>
<label for="fibonacciInput">Enter a number:</label>
<input type="number" id="fibonacciInput" min="1">
<button id="generateButton">Generate</button>
<p id="fibonacciResult"></p>
<script src="fibonacci.js"></script>
<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>