How to Convert Text to HTML Codes

HyperText Markup Language (HTML) is the programming language that creates Web pages. If you have plain text, consider adapting your content to this code so that you can display it online, or format and style your data in an online forum. Although many programming languages take time to learn, HTML is one of the easier languages to pick up. Using the text editor application provided on your computer, convert your text to HTML code for your own needs.

Things You'll Need

  • Text editor
Show More

Instructions

    • 1

      Launch your text editor and create a new document.

    • 2

      Enter the HTML codes (tags) that begin a basic Web page:
      <html>
      <body>

    • 3

      Type in the text that you want to to convert to HTML directly under the "<body>" tag. Any content underneath the "<body>" is visible on a Web document. For instance:
      <body>
      This is the text that I want to convert to HTML.

    • 4

      Place HTML codes around the content that you want you to highlight. For example, create larger, bold font by entering "<h1></h1>" heading tags before and after the desired text as such:
      <h1>Heading Text</h1>

    • 5

      Type beginning and ending "<p></p>" paragraph elements to create data that is double spaced. To illustrate:
      <p>This is your paragraph content.</p>

    • 6

      Type in closing "</body>" and "</html>" tags at the end to complete your HTML page. Save your document and open the file in in your Web browser to view the converted text.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured