This article mainly introduces some of the application of the HTML button label, mainly introduces the button label how to change the color, and so on, this chapter is the basic knowledge, I hope you have a good grasp, a lot of practice, now let us look at this article
First we introduce the label of the button:
<button> tag defines a button.
Inside the button element, you can place content, such as text or an image. This is the difference between the element and the button created by using the INPUT element.
<button> controls provide more powerful functionality and richer content than <input type= "button" >. All content between <button> and </button> tags is the content of the button, including any acceptable body content, such as text or multimedia content. For example, we can include an image and related text in the button and use them to create an attractive tag image in the button.
The only prohibited element is an image map because its mouse-and keyboard-sensitive actions interfere with the behavior of the form button.
Always specify the Type property for the button. The default type of Internet Explorer is "button", while the default value for other browsers, including the specifications, is "submit".
Note: If you use the button element in an HTML form, different browsers submit different button values. Use the INPUT element to create a button in an HTML form.
Having introduced so much, let's deepen our understanding of HTML button tags.
Now let's see how HTML gives the button a color:
<button>php Chinese Network </button>
This is one of the simplest buttons,
This simple button is supposed to be all right, so let's take a look at some code examples that add style colors:
<button type= "button" class= "btn" style= " background-color: #7ED321; Width:76px;height:36px;color: #FFFFFF" >php Chinese Network </button>
This is a little bit of a simple attribute, so let it change its style and see what it looks like now:
This style is not much better than the original style, but also can add a lot of styles, you can start knocking on their own code.
Now take a look at the properties of the button tag
To get people to forget about the attributes they need when they hit the code.
The above is the entire content of this article, button label for the color to believe that everyone should be, these are the most basic application, and so learned advanced, then feel now learn these are not what. If you have questions, you can leave a comment below.