How to Insert Text From an External File to an HTML

Written by addie kaye
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Insert Text From an External File to an HTML
Insert text into an HTML Web page. (website image by 6922Designer from Fotolia.com)

Instead of creating a Web page with new content, many people build websites based on content from an existing document. Using HTML, you can easily copy text from another file and insert it into web page code. If you do not know how to write HTML code, you must be careful to insert the text in locations that do not interfere with code output.

Skill level:
Easy

Other People Are Reading

Things you need

  • HTML text editor

Show MoreHide

Instructions

  1. 1

    Open a Web browser such as Internet Explorer or Mozilla Firefox. Press CTRL-O, find the HTML file on your computer hard drive and press the "Open" button to view the web page. Find the location on the Web page where you wish to insert the text. If you want to replace existing text with new text, copy the text you want to replace by moving your mouse over the text and pressing CTRL-C. If you want to add text and not remove existing text, copy the text right above where you want to insert the new text.

  2. 2

    Open the HTML file in an HTML or text editor, such as Windows Notepad. Press CTRL-F, paste the text you copied from the Web page and press the "Find" button to position your cursor over the copied text. If you want to replace the text, press your backspace to erase the text that already exists. After removing the last character of text, leave your cursor in position. If you want to add text, place your cursor to the end of the existing text.

  3. 3

    Open the external file in its appropriate application. Copy the desired text by moving your mouse over the text and pressing CTRL-C.

  4. 4

    Press CTRL-V to insert the copied text into the HTML file at the cursor's location. Save the HTML file.

  5. 5

    View the updated Web page in the browser by pressing "Refresh" or "Reload" inside the "View" menu to view the newly inserted text.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.