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

What does border mean in html

coldplay.xixi
coldplay.xixiOriginal
2021-02-26 15:49:5831742browse

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

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>

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!

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