HTML/CSS/Form Tags/fieldset

Материал из Web эксперт
Перейти к: навигация, поиск

"fieldset" groups "form" elements by drawing a rectangle

   <source lang="html4strict">
   

<html> <head> <title>fieldset element example</title> </head> <body>

   <form name="form1" method="post" action="">

<fieldset> <input type="text" name="textfield1" value="First text field in first fieldset"size="60">
<input type="text" name="textfield2" value="Second text field in first fieldset"size="50"> </fieldset>

   </form>
   <form name="form2" method="post" action="">

<fieldset> <input type="text" name="textfield3" value="First text field in second fieldset"size="65">
<input type="text" name="textfield4" value="Second text field in second fieldset"size="45">
<input type="text" name="textfield5" value="Third text field in second fieldset"size="55"> </fieldset>

   </form>

</body> </html>


     </source>
   
  


Form field set with legend

   <source lang="html4strict">

<html> <body> <html> <body> <fieldset>

   <legend>
       Health information:
   </legend>
   <form>
       Height <input type="text" size="3">
       Weight <input type="text" size="3">
   </form>

</fieldset> </body> </html>

</body> </html>


      </source>