How to Underline Text Using HTML Codes

HTML--Hypertext Markup Language--is a computer language that is used to create web pages. Websites and web pages are written in HTML code. Whether you are setting up a personal or a business web page, learning HTML code can be very beneficial. Knowing how to use the codes can help you manipulate your page settings. HTML documents contain plain text and have the extension .html or .htm. You can underline text in your documents to place emphasis on wording. This guide will teach you how to underline text using HTML.

Step

Start your word processor or text editor that you will use to create your web page.

Step

Type in front of the text that you wish to underline.

Step

Type after the text you wish to underline. Your text should look like the example below.

Step

This is your text

This is your text.

This is your text be underlined.

Step

Open a new web browser and display your new heading. Ensure that the underlined text meets your approval.

Step

Type in front of your text if you wish to use a line to strike out your text.

Step

Type after the text that you are striking out. Your text should look like this:

This is your strikeout text.

Step

Display your page in your web browser.