Html, value = "send" is not displayed?

I am looking for value = "send" to display in the middle of the button. I don’t see any text, I don’t know why?

<button type="button" class="button btn_big_blue" value="Submit"></button>

.button{
    display: block;
    width: 137px;
    height:    44px;
    text-align:center;
    line-height: 40px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color:#fff;
    border:none;
    cursor: pointer;
}

.button.btn_big_blue {
    background: url(/img/btn_big_blue.png) no-repeat;
    color: #fff;
}
+4
source share
3 answers

when you use the button tag, you put the text that you want to put in the button between the opening and closing tags.

<button>Submit</button>

value="Submit"only for <input type="button">

+9
source

The tag <button>does not use an attribute value.

You must either switch to <input type="submit" value="..." />or move the title to the content of the tag.

+3
source

value - , / .

:

 <button class="button …">Submit</button>

. ,

+1

Source: https://habr.com/ru/post/1786194/


All Articles