ITPub博客

首页 > IT职业 > IT图书 > Difference between input

Difference between input

IT图书 作者:jinxiaoliang 时间:2021-09-09 09:37:07 0 删除 编辑

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:

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3996/viewspace-2805230/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-10-17

  • 博文量
    73
  • 访问量
    534