HTML Hide Element
You can hide an element by using the Boolean attribute hidden with the element. When you specify the hidden attribute in the HTML file, then the browser will not display that element, which is specified with this attribute.
Examples:T he following examples are specified to understand easily how to use the hidden attribute with different elements or tags:
Example 1: This example uses the hidden attribute with the paragraph tag.Test it Now
Example 2: The following example uses the hidden attribute with the <input type=text> element.
In this example, we have used the hidden attribute with two input tags. These input fields will not display on the web page, when the following program executes.Test it Now
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week