The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Are HR tags bad?
This may be a stupid question, but I had someone tell me recently I shouldn’t be using them. Are they considered a bad practice?
They aren’t necessarily bad practice, the problem with them is that they are near impossible to display properly across all browsers.
The hr tag is not bad practice by any means. It is part of the HTML5 spec after all. I thought this explanation on HTML5 Doctor was spot on. http://html5doctor.com/small-hr-element/
Agree with poster above about how they render so differently across browsers. I tend to just make a div with a class of HR and style it accordingly, never have an issue with cross browser then.