hi what do you call this "gray line" in html, where you can use like a separator?
Thanks
hi what do you call this "gray line" in html, where you can use like a separator?
Thanks
I assume you're talking about the <hr />
element. HR stands for horizontal rule.
Do you mean simply a nicely formatted |
character?
Or perhaps a horizontal rule? <hr />
One thing I always found was CSS control over an HR tag is very limited, I always tend to go for a div defined in my CSS as being long and thin.
You're probably referring to <hr/>
, which is a Horizontal Rule.
this is called a horizontal rule and can be created using the following:
<hr />
However, the fact that the line is gray is online its default behaviour. Using CSS you can style it as you like.
It doesn't need to be gray either as it can take styles just like anything else, although how these behave in different browsers can be tricky.