Article directory
LearnWordPress website, how to add the advertising code in the form of buttons to the 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.
Things to note
- 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 HTML 5:autofocus, form, formaction, formenctype, 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.
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "How to add button form advertising html code to a website? , to help you.
Welcome to share the link of this article:https://www.chenweiliang.com/cwl-1977.html
Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!