14-3
12639 ワード
inputシリーズ
input type='text'-name属性value='alex'、デフォルトinput type='password'-name属性value='password'、デフォルトinput type='submit'-value='コミット'コミット'コミットボタン、フォームinput type='button'-value='ログイン'ボタン
input type='radio'-ラジオボックスvalue、デフォルト値checked=「checked」、name属性(nameが同じで反発)input type='checkbox'-チェックボックスvalue、デフォルト値checked=「checked」、name属性(一括取得データ)input type='file'-formフォームに依存する属性enctype=「multipart/form-data」input type='set'-リセット
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Titletitle>
head>
<body>
<form action="https://www.sogou.com/web">
<input type="text" name="query" />
<input type="submit" value=" " />
form>
body>
html>
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Titletitle>
head>
<body>
<form enctype="multipart/form-data">
<div>
<input type="text" name="user" />
<p> :p>
:<input type="radio" name="gender" value="1" />
:<input type="radio" name="gender" value="2" checked="checked"/>
Alex:<input type="radio" name="gender" value="3" />
<p> p>
:<input type="checkbox" name="favor" value="1" />
:<input type="checkbox" name="favor" value="2" checked="checked" />
:<input type="checkbox" name="favor" value="3" />
:<input type="checkbox" name="favor" value="4" checked="checked" />
:<input type="checkbox" name="favor" value="5" />
<p> p>
C:<input type="checkbox" name="skill" value="1" checked="checked" />
Python:<input type="checkbox" name="skill" value="2" />
<p> p>
<input type="file" name="fname" />
div>
<input type="submit" value=" " />
<input type="reset" value=" " />
form>
body>
html>