A label in HTML?

css Israel
  • 18 years ago

    Hey,


    How do i make a label in HTML and set it's visiblity?


    Is it something like-
    <Input type =label visible = false id=myLabel>


    Because that didn't work.
    Should i use Jscript?
    thanks
    I.

  • 18 years ago

    A label?  That must be VB terminology?  


    Do you mean text fields?  If so then you can create hidden text fields like this:


    <INPUT type="hidden" id=text1 name=text1>


    If you want to try to hide cetain groups of text such as a label then you might try DHTML, or in ASP you can use an IF statement to show text based on certain criteria.


    By the way, a lable in HTML is just a tag like:  


    <LABEL>
    This is fun!
    </LABEL>


    Hope that helped some...




Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.” - E. W. Dijkstra