Adding Underlined and Strikethrough Text in HTML

Intro to Web Design

victor rodriguez
When conveying a message to your readers it is important to use different text decorations to add emotion or direction to your text. One of the ways that you can emphasize the importance of a certain word or sentence in your text is through the use of underline and strikethrough text. The use of underline text varies widely depending on the content of the website. You may use underlined text to underline the title of a certain paragraph or to indicate to the reader the importance of a certain phrase or word.

HTML does not allow you to add text decorations directly into your text. No matter how many times you try to underline the text within the HTML document it will not appear in the final site. In order to underline text within a website you must wrap the text between the opening and closing underline tag which would be too noted by a and . This tag operates similarly to the bold text tag. For example, if you wanted to write the sentence "see Spot run", and you wanted to emphasize the word spot, you would write the code as follows...

See spot run.

As with any HTML code, it is important that you make sure to close your tags to prevent the effects of the tag from carrying over to all text and images beyond that point.

Strikethrough text is not a popular text decoration style, however when such a style is needed it can play an important role in conveying your ideas to your readers. Strikethrough text allows you to show discontent with the word or show when a word has been edited or changed from an original copy. They're also a wide range of other uses for strikethrough text based on context and content of your website. Just as with the underlined text, in order to strikethrough text within an HTML document you must use the open and close strikethrough tag. For example, if you wanted to write see Spot walk, but also wanted to indicate that the original phrase was see Spot run you would write the code as follows...

See Spot run walk.

you may also choose to use the code and instead.It is important that you only wrap the tags around the text that you want stricken through. Otherwise the entire text body would be stricken after the opening text tag.

Published by victor rodriguez

Hello everyone. I am the owner and Designing Manager of Victory Web Productions. I live in Guilderland, NY and am a father of a beautiful baby girl, Amy.I guess this is where I tell you a little about my h...   View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.