Analyze, Correct, Improve: Improving an HTML FormAdd the following style rules for the form elements.Create a style rule for the fieldset and input elements that sets the bottom margin to 2%.Create a style rule for the fieldset legend that sets the font-size to 1.25em and makes the font bold.Create a style rule for the label that sets the display to block and sets padding-top to 3%.Create a style rule for the btn class selector that removes the border, sets the top and bottom margin to zero and the left and right margin to auto, sets the display to a block, sets the padding to 5%, sets the background-color to 003399, sets the font-size to 1.25em, sets the border-radius to 10px, and sets the color to white (fff).Add the following style rules to the tablet media query.Create a style rule for the form element that sets the width to 80%, sets the top and bottom margins to zero, and the left and right margins to auto.Create a style rule for the grid class that sets the display to a grid, sets the grid template columns value to auto auto, and sets the grid gap to 20px.Create a style rule for the btn class that sets the grid column value to 1 / span 2 and padding to 3%.

Respuesta :

An HTML form can be improved by adding the upcoming style guidelines. To set the bottom margin to 2%, create a style rule for the fieldset and input elements.

/*

Author:

Date:

File Name:

body {

       background: linear-gradient(to top right, #fff 0%, #6699ff 100%) no-repeat fixed center;

       font-family: Geneva, Arial, sans-serif;

}

container {

  width: 90%;

  margin: 0 auto;

}

input {

       margin-bottom: 2%;

}

legend {

font-size:1.25em;

font-weight:bold;

}

.btn {

border:none;

margin: 0 auto 0 auto;

display:block;

padding:5%;

background-color:003399;

font-size:1.25em;

border-radius:10px;

color:;

}

footer {

  font-size: .9em;

  text-align: center;

}

media only screen and (min-width: 600px) {

input {

width: 80%;

margin: 0 auto 0 auto;

}

.grid {

       display: grid;

       grid-template-columns: auto auto;

       grid-gap: 20px;

grid-column: 1 / span 2;

padding:3%;

}

}

And,

The HTML file is: "analyze08.html"

<!DOCTYPE html>

<!-- Student's Name, Today's Date -->

<html lang="en">

<head>

       <title>Form Example</title>

       <meta charset="utf-8">

       <meta name="viewport" content="width=device-width, initial-scale=1.0">

       <link rel="stylesheet" href="style08.css">

</head>

<body>

<div id="container">

<!-- Use the main area to add the main content of the webpage -->

<main>

<form class="grid">

<!-- field set for Customer Information -->

       <fieldset>

   <legend>Customer Information</legend>

               <label for="FirstName">First Name</label><br>

               <input type="text" name="fName" id="fName"><br><br>

               <label for="LastName">Last Name</label><br>

               <input type="text" name="lName" id="lName"><br><br>

              <label for="Email Address">Email Address</label><br>

               <input type="email" name="email" id="email"><br><br>

               <label for="Phone Number">Phone Number</label><br>

               <input type="tel" name="phone" id="phone"><br><br>

       </fieldset>

<!-- field set for Payment Information -->

       <fieldset>

   <legend>Payment Information</legend>

               <label for="Card Name">Card Name</label><br>

               <input type="text" name="cName" id="cName"><br><br>

               <label for="Card Number">Card Number</label><br>

               <input type="number" name="cNum" id="cNum"><br><br>

               <label for="Expiration Date">Expiration Date</label><br>

               <input type="text" name="expDate" id="expDate" placeholder="MM/YY"><br><br>

               <label for="CCV">CCV</label><br>

               <input type="number" name="ccv" id="ccv">

       </fieldset><br>

       <!-- Button CSS -->

       <button type="button" class="btn">SUBMIT</button>    

</form>

</main>

<!-- Use the footer area to add webpage footer content -->

<footer>

<!-- please change with your name and date -->

<p>Student's Name, Today's Date</p>

</footer>

</div>

</body>

</html>

Learn more about HTML here:

https://brainly.com/question/15093505

#SPJ4