tag creates a line from the current position in the document to the right margin and breaks the line accordingly.For example,you may want to give a line between two paragraphs as in the given example below:
Example
This will produce the following result:This is paragraph one and should be on topThis is paragraph two and should be at bottomAgaintag is an example of theemptyelement, where you do not need opening and closing tags, as there is nothing to go in between them.The
element has a space between the charactershrand the forward slash. If you omit this space, older browsers will have trouble rendering the horizontalline, while if you miss the forward slash character and just use
it is not valid in XHTML