Home > Web Front-end > HTML Tutorial > What does border mean in html

What does border mean in html

coldplay.xixi
Release: 2023-02-17 16:21:05
Original
31880 people have browsed it

Border means border in html. Border is a border attribute that can set all border styles in one statement. The syntax is [Object.style.border=borderWidth borderStyle borderColor].

What does border mean in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

border means border in html.

border property sets all border properties in one statement.

Syntax:

Object.style.border=borderWidth borderStyle borderColor
Copy after login

Example

This example changes the border of the element:

<html>
<head>
<style type="text/css">
p
{ 
border: thin dotted #FF0000
}
</style>
<script type="text/javascript">
function changeBorder()
{
document.getElementById("p1").style.border="thick solid #0000FF";
}
</script>
</head>
<body>
<input type="button" onclick="changeBorder()"
value="Change border" />
<p id="p1">This is a paragraph</p>
</body>
</html>
Copy after login

What does border mean in html

Related learning recommendations: html video tutorial

The above is the detailed content of What does border mean in html. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
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
Latest Issues
Create a gradient border with a border radius
From 1970-01-01 08:00:00
0
0
0
css - img tag has border
From 1970-01-01 08:00:00
0
0
0
android - image set border-radius
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template