"."/> ".">

Home >Web Front-end >HTML Tutorial >How to set border color in html

How to set border color in html

青灯夜游
青灯夜游Original
2021-12-10 14:27:5731409browse

In HTML, you can use the style attribute to add a border-color inline style to the label element to set the border color. The syntax is "".

How to set border color in html

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

In HTML, you can use the style attribute to add the border-color inline style to the label element to set the border color.

For example:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
	</head>

	<body>
		<p style="height: 50px;border-style: solid;"></p>
	</body>
</html>

How to set border color in html

You only need to add the border-color inline style to set the border color:

<p style="height: 50px;border-style: solid;border-color: red;"></p>

How to set border color in html

Recommended tutorial: "html video tutorial"

The above is the detailed content of How to set border color in html. 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