Article directory
How do I add button-style ad code to my WordPress website ?
The following html code marks a button ▼
<form action="https://www.chenweiliang.com/"> <input type="submit" value="陈沩亮博客" /> </form>
The following is the html code in the form of a button ▼
<div class="su-button-center"><a href="https://www.chenweiliang.com/cwl-1876.html?cb" class="su-button su-button-style-3d" style="color:#FFFFFF;background-color:#000000;border-color:#000000;border-radius:7px;-moz-border-radius:7px;-webkit-border-radius:7px" target="_blank" rel="noopener nofollow" title="成功赚到100万美元的方法"><span style="color:#FFFFFF;padding:7px 20px;font-size:16px;line-height:24px;border-color:#4d4d4d;border-radius:7px;-moz-border-radius:7px;-webkit-border-radius:7px;text-shadow:none;-moz-text-shadow:none;-webkit-text-shadow:none"><i class="sui sui-external-link" style="font-size:16px;color:#FFFFFF"></i> 成功赚到100万美元的方法</span></a></div>
- This is usedWordPress plugin- "The Ultimate Shortcode"
- Try it for yourself!
For the introduction of the Shortcodes Ultimate plugin, please click the link below to browse▼
Browser support
IE Firefox Chrome Safari Opera
All major browsers support tabs.
notice
- If you use the button element in an HTML form, different browsers will submit different values.
- Internet Explorer will submit text between and , while other browsers will submit the content of the value attribute.Please use the input element in the HTML form to create the button.
Definition and Usage
The label defines a button:
- Inside the button element, you can put things like text or images.
- This is the difference between this element and buttons created with input elements.
- Controls provide more thanMore powerful functions and richer content.
- andEverything between the 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 to create an attractive label image in the button.
The only forbidden element is an image map, because its mouse and keyboard sensitive operation may interfere with the behavior of the form buttons.
Always specify a type attribute for buttons. The default type for Internet Explorer is "button", while the default for other browsers (including the W3C specification) is "submit".
Differences between HTML 4.01 and HTML 5

New attributes in HTML5: autofocus, form, formaction, formtype, formmethod, formnovalidate, and formtarget.
Tips and Instructions
Note: If you use the button element in an HTML form, different browsers will submit different button values.
Please use the input element to create a button in the HTML form.
Hopefully, the article "How to Add Button-Style Ad HTML Code to a Website?" shared on Chen Weiliang's blog ( https://www.chenweiliang.com/ ) will be helpful to you.
Feel free to share this article's link: https://www.chenweiliang.com/cwl-1977.html
