HTML Input - already filled in text

前端 未结 5 1833
太阳男子
太阳男子 2020-12-29 02:59

I was wondering, is there a way to put text into an input field? What i\'ve got now is a placeholder, but that\'s actually an empty inputfield. So that\'s not what i\'m look

5条回答
  •  长发绾君心
    2020-12-29 03:25

    The value content attribute gives the default value of the input element.

    - http://www.w3.org/TR/html5/forms.html#attr-input-value

    To set the default value of an input element, use the value attribute.

    
    

提交回复
热议问题