Horizontal Rules<HR> is used to make a horizontal rule. You've probably seen horizontal rules all over the place on the web. Rules are one of the easiest things to do, because the HR tag isn't a container tag -- it's just one part with no closing tag necessary. <HR> Here's an example of the code for the HR tag:
And here's what that code looks like: There's a line above this text. Stupid HR TricksThere are some other things you can do with HRs. You can make them thick, thin, wide or narrow. You can also make them solid instead of the default "engraved" or "shadowed" line that most browsers display. Here is the code for doing each of these things. <HR SIZE="50"> <HR WIDTH="75%"> <HR NOSHADE> Both size and width can have either a percentage value -- such as 75% -- or a pixel value, such as 50. Note that you can combine these effects -- for example, you can change a lines width, thickness, and make it a solid line, all in one tag, as in the tag below. <HR NOSHADE SIZE="20" WIDTH="200"> |