Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can do this by setting the CSS display property of the button and input elements to "none". For example, if your HTML code is like this:

<label for="name">Name:</label>
<input type="text" id="name" name="name">
<button type="submit">Submit</button>

You can add this CSS code to hide the button and input elements:

button, input[type="text"] {
  display: none;
}

This will hide the button and input box, leaving only the label and its text visible on the page.