-1

I want to replicate the border around "Contact details:". I've been searching everywhere but I didn't find anything that helped me.

https://i.stack.imgur.com/hw1LK.png

wex
  • 9
  • 2

2 Answers2

0

Fieldset and legend will take care of this for you:

<fieldset>
  <legend>Contact Details:</legend>
  Name: <input type="text"><br> 
  Password: <input type="text"><br> 
  Email: <input type="text">
</fieldset>
JRoss
  • 1,375
  • 10
  • 19
0

The fieldset tag does that automatically.

<form>
   <fieldset>
       <!-- code -->
    </fieldset>
</form>