Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Adding Tags to Text.
by Allen Wyatt
(last updated November 15, 2018)
If you love working in HTML, you know that it is created by simply adding tags to regular text. Tags do nothing more than describe how a browser should display the text. HTML can be created by hand or automatically, by program. You can even use Word to create your HTML for you.
What if you don't want Word to do the HTML automatically, but you want to use Word's tools to help you in your HTML creation? For instance, you might want to search for italicized text within a document and then surround it with the HTML tags that signify the text should be displayed in italics. You can do this by following these steps:
Figure 1. The Replace tab of the Find and Replace dialog box.
Figure 2. The Find Font dialog box.
The same find and replace technique can be used to add other HTML tags, as desired. For instance, you could add the tags for bold text, <b> and </b> by searching for Bold in step 4, using the proper tags in step 6, and replacing with Not Bold in step 8.
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12991) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Adding Tags to Text.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
Need to know how many times a particular word appears in a document? Here's a handy trick that will tell you the count, ...Discover More
Word has a powerful find and replace capability that can help you perform quite a few changes to your documents. This tip ...Discover More
If you have a document that contains optional hyphens (special characters that mark where a word can be split between ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.