Home > Article > Web Front-end > What does border mean in html
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].
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>
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!