提交学习笔记专用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.3 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<!--<select> <option>下拉列表-->
<form action="/demo/demo_form.asp">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<input type="submit">
</form>
<!--<textarea>多行输入字段(文本域)-->
<textarea name="message" rows="10" cols="30">
The cat was playing in the garden.
</textarea>
<!--<button>按钮-->
<input type="button" onclick="alert('Hello World!')" value="Click Me!">
<!--输入类型
color date datetime datetime-local email month number range search tel time url week-->
<!--只读属性 readonly-->
<input type="text" name="firstname" value="Bill" readonly>
<!--禁用属性 disabled-->
<input type="text" name="firstname" value="Bill" disabled>
<!--pattern 属性规定用于检查 <input> 元素值的正则表达式-->
<input type="text" name="country_code" pattern="[A-Za-z]{3}" title="Three letter country code">
</body>
</html>