Results 1 to 4 of 4

Thread: About Hidden tags in HTML

  1. #1
    Join Date
    Aug 2009
    Posts
    5

    About Hidden tags in HTML

    Hey,

    Do you guys know about any hidden tag in HTML?

    Is there any hidden tags in HTML exists?
    If Yes then please let me know about it.

    Thanks in advance.
    OmiWalia

  2. #2
    Join Date
    May 2008
    Posts
    28

    Re: About Hidden tags in HTML

    Hidden Tags in HTML

    Hidden fields are not displayed by the browser, there are a number of uses for them. When dealing with forms you will usually find yourself using some sort of database mechanism: MySQL, SQL Server, or maybe just a plain text file. In any case use hidden forms to pass along information to your database that may have already been received from the user. In this rare case, a hidden form field may come in handy.

    A hidden HTML field is used to pass along variables w/ values from one form to another page without forcing the user to re-enter the information. Use the type attribute to specify a hidden field.

    Code:
    <input type="hidden" />
    There is no display of your hidden field in the box because the browser is told to hide them from view.

    Naming your fields can be accomplished in two different ways discussed previously. Use the id or name attribute to specify a name for your hidden field.

    Code:
    <input type="hidden" id="age" name="age" value="23" />
    <input type="hidden" id="DOB" name="DOB" value="01/01/70" />
    <input type="hidden" id="admin" name="admin" value="1" />

    Above we have demonstrated 3 possible hidden fields that you may want to pass along some form at some point, especially if you have any kind of user base where returning users must log in. The admin field could be used to check some sort of user level entry of a returning user; 1 being administrator and 0 being non-administrator access.

    Use hidden fields when you have variables you want to pass from one form to another without forcing the user to re-type information over and over again.

  3. #3
    Join Date
    May 2008
    Posts
    33

    Re: About Hidden tags in HTML

    HIDDEN FIELD

    Hidden fields are similar to text fields, with one very important difference!
    The difference is that the hidden field does not show on the page. Therefore the visitor can't type anything into a hidden field, which leads to the purpose of the field:
    To submit information that is not entered by the visitor.

    AN EXAMPLE

    Code:
    <html>
    <head>
    <title>My Page</title>
    </head>
    <body>
    <form name="myform" action="http://www.mydomain.com/myformhandler.cgi" method="POST">
    <div align="center">
    <input type="text" size="25" value="Enter your name here!">
    <input type="hidden" name="Language" value="English">
    <br><br>
    </div>
    </form>
    </body>
    </html>
    The hidden field does not show, but still, when the form is submitted the hidden field is sent with it.

  4. #4
    Join Date
    May 2008
    Posts
    20

    Re: About Hidden tags in HTML

    Hidden Tag <html:hidden>:

    This tag facilitate an HTML <input> element of type hidden, populated from the specified value or the specified property of the bean associated with our current form. This tag is only valid when nested inside a form tag body.

    You will learn to use the Struts Html <html:hidden> tag.

    I hope this helps you.

Similar Threads

  1. How to remove HTML tags from Excel Sheet
    By Jaques Strapp in forum MS Office Support
    Replies: 3
    Last Post: 25-01-2012, 07:50 PM
  2. Are HTML Tags available in Hindi
    By Glasney in forum Software Development
    Replies: 6
    Last Post: 30-12-2011, 04:45 PM
  3. Javascript - replace HTML tags with spaces
    By Jensen Ackles in forum Software Development
    Replies: 6
    Last Post: 13-05-2010, 12:10 PM
  4. Need Semantic HTML tags and attributes
    By Muwafaq in forum Software Development
    Replies: 5
    Last Post: 17-02-2010, 12:44 AM
  5. html tags in windows
    By b.venu in forum Operating Systems
    Replies: 1
    Last Post: 17-09-2009, 12:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,648,604.00711 seconds with 17 queries