HTML 5 <button> ��ǩ

�������÷�

<button> ��ǩ���尴ť���������� button Ԫ���з������ݣ������ĵ���ͼ�������Ǹ�Ԫ������ input Ԫ�ش����İ�ť�IJ�֮ͬ����

HTML 4.01 �� HTML 5 ֮���IJ���

�� HTML 5 ����һ�������ԣ�autofocus��

���ӣ�

<button>Click Me!</button>

����

���� ֵ ���� 4 5
autofocus true | false ��ҳ������ʱ���Ƿ��ð�ť���ý��㡣   5
disabled disabled ���ð�ť 4 5
name button_name Ϊ��ť�涨Ϊһ�����ơ� 4 5
type
  • button
  • reset
  • submit
���尴ť�����͡� 4 5
value some_value Ϊ��ť�涨��ʼֵ����ֵ��ͨ���ű��ı䡣 4 5

��׼����

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, 
lang, ref, registrationmark, tabindex, template, title

�������������������� HTML 5 �б�׼������

�¼�����

onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, 
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, 
ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, 
onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, 
onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload

�������������������� HTML 5 ���¼�������