Home >Web Front-end >Front-end Q&A >Which tags in HTML have borders?

Which tags in HTML have borders?

青灯夜游
青灯夜游Original
2022-01-21 16:03:085330browse

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>

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>

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="border: 5px solid red;"/><!--修改的样式-->
<br />
<hr /><!--默认的样式-->

Which tags in HTML have borders?##3, 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>

Which tags in HTML have borders?4. select

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

The

The above is the detailed content of Which tags in HTML have borders?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn