In Association with Amazon.in   Flipkart

Thursday, August 22, 2013

HTML Fieldset And Legend Tags Example

Example:

<fieldset style=" width:350px; background-color:#CCF">

  <legend style="padding:4px 12px; border:double; background-color:#CC9">Login</legend>
    <table width="350" height="138" border="0" cellpadding="12" cellspacing="6" >
        <tr>
                <td>Username:</td>
            <td><input type="text" name="unm" placeholder="User Name" /></td>
        </tr>
        <tr>
                <td>Password:</td>
            <td><input type="password" name="pwd" placeholder="Password" /></td>
        </tr>
        <tr>
          <td colspan="2" align="center" valign="middle">
          <input type="submit" value="Login" />
          </td>
        </tr>
    </table>

</fieldset>


Output:


Login
Username:
Password:

No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...