Home > Software design >  Button and text HTML
Button and text HTML

Time:03-02

Trying to create a button for an email input. have made it afew times but cannot make it the correct way here is what i am trying to make.

enter image description here

I ahve tried a few ways i can get the button and input fields there but how can i get the button to register the text "sign up"

      <div >
      <p> Join our mailing list!</p>
      <label for="email">Enter your email:</label>
      <input type="email" id="email" name="email">
      Sign Up
      </div>

CodePudding user response:

Check out the documentation! You need to wrap the "Sign Up"-text around a <button>-Tag like so:

<button>Sign Up</button>

CodePudding user response:

You can add this line.

<button type="submit">Sign Up</button>

And if you are willing to style the Sign up Button. you can use the following code

<button type="submit" >Sign Up</button>
  • Related