Free Hosting

วันอาทิตย์ที่ 5 เมษายน พ.ศ. 2558

Button

ชนิดของ <input> เป็น Button
Button
เป็นการสร้างคอนโทรลที่เป็นปุ่ม (Button)
nameกาหนดชื่อของ Control
sizeกาหนดขนาดของ Control
valueชื่อที่ปรากฏบนปุ่ม
<input type="button" value="button" name="button1" size="20" />
ชนิดของ <input> เป็น Button


<html>
<head>
<title>Using Buttons</title>
</head>
<body>
<h2><center><font color="hotpink" face = "arial">
Personal Information</font></center></h2>
<hr align = "center" />
<form name= "form3_1">
<input type="button" value="button" name="button1" size="20" />
</form>
</body>
</html>


ตัวอย่างการผสมผสาน

<html>
<head><title>Using Buttons</title></head>
<body>
<h2><center><font color=hotpink face = arial>
Personal Information</font></center></h2>
<hr align = "center" />
<form name="ex3_9"action="http://www.nayoktech.ac.th" method = "get"><p>
First Name : <input type = "text" name = "firstname"/>
<br /><br />
Last Name : <input type = "text" name = "lastname"/><br />
Sex :<input type = "radio" name="sex" value="Male"/>Male
<input type="radio" name="sex" value="Female">Female <br /><br /><br />
<input type = "submit" value="submit" />
<input type="reset" /> </p>
</form>
</body>
</html>

0 ความคิดเห็น:

แสดงความคิดเห็น


พื้นที่โฆษณา

Free Hosting

พื้นที่โฆษณา

Free Hosting
 

Copyright © สอนเขียนโปรแกรม html php css Java SQL jQuery XML Ajax Design by ScriptMasterWebDesign | Theme by ScriptMasterWebDesign | Powered by HosTing