您的位置:首页 > Web前端 > HTML5

html5 css3表单

2015-01-10 20:43 218 查看
<!DOCTYPE html>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
div{
margin:20px;
}
</style>
<script type="text/javascript"></script>
</HEAD>

<BODY>
<form id="redemption" method="post">
<hgroup>
<h1>Oscar Redemption</h1>
<h2>Here`s your chance to set the record straight:tell us what year the wrong film got nominated,and which film <b>should</b>have received a nod ...</h2>
<hgroup>
<fieldset>
<legend>About the offending film (part 1 of 3)</legend>
<div>
<label for="film">The film in question?</label>
<input id="film" name="film" type="text" placeholder="e.g.King Kong" required aria-required="true">
</div>
<div>
<label for="search">Search the site...</label>
<input id="search" name="search" type="search" placeholder="Wyat Earp" autofocus>
</div>
<div>
<label for="tel">Thphone(so we berate you if you're wrong)</label>
<input id="tel" name="tel" type="tel" placeholder="1-234-546758" autocomplete="off" required aria-required="true">
</div>
<div>
<label for="awardWon">Award Won</label>
<input id="awardWon" name="awardWon" type="text" list="awards">
<datalist id="awards">
<select>
<option value="Best Picture1"></option>
<option value="Best Picture2"></option>
<option value="Best Picture3"></option>
<option value="Best Picture4"></option>
</select>
</datalist>
</div>
</form>
</BODY>
</HTML>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  html5 css3 表单 label search