You are on page 1of 1

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Recipe Book</title>
</head>
<body>

<header>
<h1>Recipe Book</h1>
</header>

<section id="recipeForm">
<h2>Add a New Recipe</h2>
<form id="addRecipeForm">
<label for="title">Title:</label>
<input type="text" id="title" required>

<label for="ingredients">Ingredients:</label>
<textarea id="ingredients" rows="4" required></textarea>

<label for="instructions">Instructions:</label>
<textarea id="instructions" rows="6" required></textarea>

<button type="button" onclick="addRecipe()">Add Recipe</button>


</form>
</section>

<section id="recipeDisplay">
<h2>Recipe List</h2>
<ul id="recipeList"></ul>
</section>

<script src="script.js"></script>
</body>
</html>

You might also like