select size - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:select

Description

select size

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <form method="post" action="http://example.com/form"> 
         <input type="hidden" name="recordID" value="1234"> 
         <p> 
            <label for="name">
                Name: <!--  w ww . j a  va  2 s.  c  o  m-->
               <input value="book2s.com" id="name" name="name"> 
            </label> 
         </p> 
         <p> 
            <label for="password">
                Password: 
               <input type="password" placeholder="Min 6 characters" id="password" name="password"> 
            </label> 
         </p> 
         <p> 
            <label for="fave" style="vertical-align:top">
                Favorite Fruit: 
               <select id="fave" name="fave" size="5" multiple> 
                  <option value="CSS" selected label="CSS">CSS</option> 
                  <option value="HTML" label="HTML">HTML</option> 
                  <option value="Oracle" label="Oracle">Oracle</option> 
                  <option value="Typescript" label="Typescript">Typescript</option> 
               </select> 
            </label> 
         </p> 
         <input type="submit" value="Submit"> 
      </form>  
   </body>
</html>

Related Tutorials