Home > Article > Web Front-end > How to set html border line
htmlHow to set the border line: First create a new HTML document and write the basic frame; then create a new div tag; finally set the border line style through the "border:1px solid red;" attribute.
The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.
Open the editor, create a new HTML document, and write the basic framework.
Create a new CSS document and associate it with the HTML document you just created.
Create a new div tag. You can see that this div has no border by default.
border: 1px solid red;
This is our common format for setting borders.
We can change the border to dotted style.
can also be modified to a dotted shape.
For more detailed HTML/CSS knowledge, please visit the CSS Video Tutorial column!
The above is the detailed content of How to set html border line. For more information, please follow other related articles on the PHP Chinese website!