'What do you call this gray line thing in HTML

What do you call this "gray line" in HTML, where you can use like a separator?



Solution 1:[1]

<hr /> is this what you mean?

Solution 2:[2]

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.

Solution 3:[3]

I assume you're talking about the <hr /> element. HR stands for horizontal rule.

Solution 4:[4]

You're probably referring to <hr/>, which is a Horizontal Rule.

Solution 5:[5]

<hr />, which is horizontal rule

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.

Solution 6:[6]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 simnom
Solution 2 Dr. Simon Harrer
Solution 3 Tatu Ulmanen
Solution 4 Rob Hruska
Solution 5 halfer
Solution 6 Tom Gullen