index.html
<!DOCTYPE html>
<html>
<head>
    <title>Frontend to Backend Example</title>
</head>
<body>
    <h1>Frontend to Backend Example</h1>
    <form action="backend.php" method="POST">
        <label for="name">Name:</label>
        <input type="text" id="name" name="name" required><br><br>
        <label for="email">Email:</label>
        <input type="email" id="email" name="email" required><br><br>
        <input type="submit" value="Submit">
    </form>
</body>
</html>

The

element is used to create an HTML form that allows users to input data. The "action" attribute specifies the URL where the form data will be submitted, in this case, "backend.php", and the "method" attribute specifies the HTTP method to be used for sending the form data, in this case, "POST".