How do you enter a black line into a document?

If you want a horizontal line to appear in MSFT Word, then type --- then press Enter

If you want a vertical line, then this is probably a | (Control-forward slash on most keyboards).