Bordered tags in HTML: 1. input tag, used to specify input fields in which users can enter data; 2. hr tag, used to insert a horizontal line; 3. textarea tag, used to define A multi-line text input control; 4. Select tag, used to create single-select or multi-select menus.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
Tags with borders in HTML:
##1、input
Labels specify input fields into which users can enter data.<form action="#"> 用户名: <input type="text" name="name"><br> 密 码: <input type="password" name="password"><br><br> <input type="submit" value="提交"> </form>
##2. hr
Example:
<h1>HTML</h1> <p>HTML 是用于描述 web 页面的一种语言。</p> <hr> <h1>CSS</h1> <p>CSS 定义如何显示 HTML 元素。</p>
It can be seen that it is just a black line, which is not beautiful at all, let alone using
For example, set the thickness (bold) and color of hr
<hr style="max-width:90%"/><!--修改的样式--> <br /> <hr /><!--默认的样式-->
##3, textarea
< The textarea> tag defines a multi-line text input control.
The text area can hold an unlimited amount of text, and the default font for the text is a fixed-width font (usually Courier).<textarea rows="10" cols="30">我是一个文本框。</textarea>
4. select
The select element can create a single-select or multi-select menu.
The