Visine form html,cs



  • Hello, there's a code:

    <html>
        <head>
        <meta charset = "UTF - 8">
        <title>Форма</title>
        <script src="window.js"></script>
     </head>
     <body>
     <h1 align = "center">Создание таблици</h1>
     <form action = "">
      <fieldset>
      <label>Введите число: </label>
      <input type = "text" id = "txtName" />
      <input type="button" value="Построение таблици" onClick="">
      </fieldset>
     </form>
     </body>
    </html>

    It would be desirable for the form to be scattered at the centre of the page (with the blo field over the button) to have a certain size and its frame to have rounded edges. How do you do that? If you think the code is incorrect to adjust, please indicate the flaw.



  • h1 {
      text-align: center;
    }
    form {
      border: 1px solid black;
      border-radius: 5px;
      width:400px;
      margin:0 auto;
    }
    fieldset {
      text-align: center;
      border: none;
    }
    fieldset input[type=button] {
      display: block;
      margin: 20px auto 0px auto;
    }
    <html>
    

    <head>
    <meta charset="UTF-8">
    <title>Форма</title>
    <script src="window.js"></script>
    </head>

    <body>
    <h1>Создание таблици</h1>
    <form action="POST">
    <fieldset>
    <label for="txtName">Введите число:</label>
    <input type="text" id="txtName">
    <input type="button" value="Построение таблици">
    </fieldset>
    </form>
    </body>

    </html>


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2