tags:

views:

98

answers:

6

hi what do you call this "gray line" in html, where you can use like a separator?

Thanks

+6  A: 

<hr /> is this what you mean?

simnom
+2  A: 

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

Tatu Ulmanen
Isn't it a (H)orizontal(R)ule?
Tom Gullen
Last I checked, it stood for Horizontal Rule.
Justin Niessner
Yup, just realized that :)
Tatu Ulmanen
+1  A: 

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.

Tom Gullen
+2  A: 

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

Rob Hruska
+3  A: 

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.

simonh
Except that so many problems arise with styling `<hr/>` elements in older browsers that it's best to use a `<div class="hr"></div>` and style `.hr` instead of `hr` to neatly sidestep the whole issue.
Jon Purdy
+1  A: 


, 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.

Cruachan