How to Insert a Line in HTML

Open a simple text editing program such as either Notepad or WordPad on Windows, or, on a Mac, open up TextEdit., Type all preceding HTML text that you want before the horizontal line., Create the horizontal rule on it's own line of HTML text., Type...

10 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open a simple text editing program such as either Notepad or WordPad on Windows

    Due to the necessary need to show off the line, it is necessary to place this line inside the <body> and </body> HTML tags.

    This should include the <html>

    <head> and </head> at the top before the <body> tag. , After the last line of text before the rule, make sure to insert a carriage return between the lines.

    Consider using either the <br> HTML tag or <br/> XHTML tag to each item into their own single line.This is a single break.
    - like pressing ↵ Enter. ,, Type the proceeding HTML text that you want for the remainder of the document. ,,
  2. Step 2: on a Mac

  3. Step 3: open up TextEdit.

  4. Step 4: Type all preceding HTML text that you want before the horizontal line.

  5. Step 5: Create the horizontal rule on it's own line of HTML text.

  6. Step 6: Type the horizontal rule-opening tag

  7. Step 7: <hr> to create the horizontal rule/horizontal line that will be displayed on the page.

  8. Step 8: Continue with the text and other information you'd like to add to the HTML page.

  9. Step 9: End the document with a </body> and </html> tags.

  10. Step 10: Save and view your final produced file in your web browser.

Detailed Guide

Due to the necessary need to show off the line, it is necessary to place this line inside the <body> and </body> HTML tags.

This should include the <html>

<head> and </head> at the top before the <body> tag. , After the last line of text before the rule, make sure to insert a carriage return between the lines.

Consider using either the <br> HTML tag or <br/> XHTML tag to each item into their own single line.This is a single break.
- like pressing ↵ Enter. ,, Type the proceeding HTML text that you want for the remainder of the document. ,,

About the Author

B

Betty Barnes

Experienced content creator specializing in hobbies guides and tutorials.

109 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: