【前端学习笔记】day2:html

50 阅读1分钟

select下拉列表

语法:

<select>
	<option>选项1</option>
	<option>选项2</option>
	……
</select>

<option>中可以设置selected=“selected”属性,当前项即为默认选中项

textarea表单元素

用户输入内容较多的情况

<textarea rows="3" cols="20">
	文本内容
</textarea>

css

构成:选择器以及一条或多条声明

h1 {color:red font-size:25px}