Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Office 365. 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 March 10, 2020)
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, and 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, 2013, 2016, 2019, and Word in Office 365. 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!
Want a quick, easy way to "search again" for the next occurrence of what you need? Use the technique in this tip and ...Discover More
When using Find and Replace, how your replacements are formatted will depend on how the text being replaced is formatted. ...Discover More
Sarra is having a problem getting Find and Replace to behave properly when replacing italic-formatted text. This tip ...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.