Which tags in HTML have borders?

青灯夜游
Release: 2022-01-21 16:03:08
Original
5280 people have browsed it

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.

Which tags in HTML have borders?

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>
Copy after login

Which tags in HTML have borders?

##2. hr


tag defines theme changes in HTML pages ( such as topic transfer) and displayed as a horizontal line. The


element is used to separate content in an HTML page (or to define a variation).

Example:

<h1>HTML</h1>
<p>HTML 是用于描述 web 页面的一种语言。</p>
<hr>
<h1>CSS</h1>
<p>CSS 定义如何显示 HTML 元素。</p>
Copy after login

Which tags in HTML have borders?It can be seen that it is just a black line, which is not beautiful at all, let alone using


to make the page beautiful. This requires using css border to set the style of hr.

For example, set the thickness (bold) and color of hr

<hr   style="max-width:90%"/><!--修改的样式-->
<br />
<hr /><!--默认的样式-->
Copy after login

Which tags in HTML have borders?##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>
Copy after login

Which tags in HTML have borders?4. select

The select element can create a single-select or multi-select menu.

The