DEV Community

Discussion on: HTML tags | HTML tutorial

Collapse
mitya profile image
Dima

Can i use hr tag? Maybe, best way to create line is css?

Collapse
mrtoxas profile image
mrtoxas • Edited on

Depends on the destination. If just for beauty, then use styles. If you need semantics and thematic break, then use <hr>

Collapse
mostafa85876 profile image
Mostafa85876

You can create a line with CSS by specifying a border-bottom for a section in the document, like this:
div{
border-bottom: 5px solid green;
}