继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Difference between input

安卓软件程序开发入门学习
关注TA
已关注
手记 289
粉丝 49
获赞 282

We all know input markup in XHTML, which can be used to create TextBox, Button, CheckBox, RadioButton, HiddenField etc via type attribute. There are three types of button, one is used to submit form, another is used to reset form, the third one has no default actions, which should be enhanced by JavaScript.

There is another markup usded to present a button is button, following is found in the W3C site:

Buttons created with the BUTTON element function just like buttons created with the INPUT element, but they offer richer rendering possibilities: the BUTTON element may have content. For example, a BUTTON element that contains an image functions like and may resemble an INPUT element whose type is set to “image”, but the BUTTON element type allows content.

Now it’s the example time to use button markup to create an image button:

<button type="submit">    <img src="mini/alert.gif" mce_src="mini/alert.gif" alt="" />    Image</button>
打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP