Forum Moderators: open
<input style="visibility:hidden;" type="button" value="Hello world!" disabled>
If, however, you simply want to make the form control hidden - you don't want the end user to ever have control over the element, then consider using
type="hidden". Although this is not a button!?
To style the button in other ways, you need to use CSS. (Perhaps/preferebly with an external stylesheet.) Using an inline style in this case...
<input style="background-color:#ccf;" type="button" value="Hello world!">
Will give the button a light blue (#ccf) background.
So if your intent is to disable the button to avoid double-clicks, use a submit button instead. This will still allow Javascript-disabled browsers to use your button:
<form>
<input type="submit" onClick="this.disabled=true;" value="Submit">
</form>