×

How to view the HTML source code in Microsoft Word?

Using Microsoft Word, the document can be saved as a web page, but word does not support the feature which enables the user to view the source code in the latest versions.

Microsoft Word 2007, 2010, and later

In the latest version of the Microsoft word, there is not any option to view html source code, but the html source code can be seen by opening the HTML document in any browser.

Viewing the code is possible in the browser but when the user wants to make changes to the HTML source code, like editing the code or linking some web pages, etc., then using the text editors or HTML editor is the best choice with the usage of HTML or text editors to modify the html document.

Microsoft Expression Web provides a simple user interface to edit the document and is open source. The users usually prefer using Microsoft word to edit the html code because of the advantage that in word, there is an interface called WYSIWYG ("what you see is what you get – this means the word shows the document how exactly it looks when it is printed). But many html editors are also providing WYSIWYG interface.

Microsoft Word 2003

Microsoft Word 2003 can view the HTML source code.

Follow the below steps to view HTML source code using Microsoft word.

  1. First, select the content like text, pictures, or any other data you want to create the HTML code.
  2. After selecting the data, please copy and paste them into the blank word document.
  3. Click on the "File" menu, and in that, select "Save as Web Page" now name the word document and save it in your device at your preferred location.
  4. Go to the "View" menu which is at the right side of the File menu. In the view menu, click on "HTML Source".
  5. Finally, the html source code of the entire document you have done is seen in the Microsoft Script Editor, as shown in the figure below.
How to view the HTML source code in Microsoft Word

How to view HTML source code in Microsoft word 2007 and 2010 versions?

Microsoft word has made many changes to these versions compared to the 2003 version. In the 2007 and 2010 versions of word, remove the Microsoft Script Editor. So, to view the html source code add a Web Page Preview button to the Quick Access Toolbar (QAT).

But this process is viewing the HTML source in words 2010 and 2007.

The steps for adding the web page preview in word:

  • Click on the dropdown arrow in the QAT bar in the word, as shown below. In that, click on the "More Commands" option.
How to view the HTML source code in Microsoft Word
  • Select "Choose Commands From" from the dialog box which pops up, then select "Commands Not in the Ribbon".
How to view the HTML source code in Microsoft Word
  • Select "Web Page preview" from the command list and click on the "Add" button.
How to view the HTML source code in Microsoft Word

When you do the process mentioned earlier, that is, by adding the Web Page Preview option, the word document will open in the web browser that is set as default in the user's computer. Now use the browser's process to view the HTML code.

This method opens the html source code file in the browser rather than in word directly. For example, if you use Internet Explorer or Firefox as your browser, select "View" on the toolbar and select the "Source" option, as shown in the figure below.

How to view the HTML source code in Microsoft Word

Then an extra window is opened, which contains the html code written in Microsoft Word.


Related Topics

How to install a computer processor

Installing a CPU is much simpler than many other steps in the PC-building process. There is no need to worry that you will make a mistake because we will walk...

6 minutes read.

How to open the Windows My Documents or Documents folder

Documents or My Documents (known in earlier versions of Windows such as Windows XP) is basically an in-built directory provided by Microsoft Windows. This is a very valuable directory that...

5 minutes read.

What is a Print Preview?

Print Preview is one of the functionalities that helps users to see the pages layout before printing. It gives the users an idea of what pages look like when printed....

3 minutes read.

What is Google Chrome?

Google Chrome, released on December 11, 2008, is a free Internet browser. The benefits of Chrome include synchronization with Google service and accounts and automated translation and spell checking. It...

6 minutes read.

Types of Area Networks (LAN, WAN, MAN)

Computer Network When two or more computers/devices are connected to transfer files and data or to communicate to each other then the medium is referred to as a computer network. In a...

3 minutes read.

Difference between Desktop and Laptop

What is Desktop? A Desktop Computer is designed for steady use at a particular location near a desk due to its huge size and power requirement. It uses devices for...

7 minutes read.

What is AM?

AM may refer to any of the following: When referring to audio or a signal, amplitude modulation (AM) is a method of transmitting information using radio waves. In AM, the information...

4 minutes read.

What does Alt + T do?

Alt + T is one of the keyboard shortcuts mostly used to open the Tools present in the file menu. Usage of Alt + T Keyboard shortcut For using the Alt +...

4 minutes read.

What is Task Pane?

Task panes are interface elements frequently appearing on the right side of the windows in Word, PowerPoint, Excel, and Outlook. Through task panes, users can access interface controls that can...

3 minutes read.

What is Hybrid Topology?

A hybrid topology is also called network topology. Topology can be defined as the physical and logical arrangements of computer networks. We can say that topology is nothing, but how...

6 minutes read.

What is a Memory Slot?

The memory slot, often known as a RAM slot, is what enables computer memory chips or sticks to be inserted in computer. It helps in determining the type of RAM to be used...

11 minutes read.

What is a Silicon Chip?

A silicon chip is a microscopic silicon component found inside computers. It has electronic circuits holding much data or conducting logical or mathematical computations. An integrated circuit comprised mostly of...

4 minutes read.

What is PC

PC stands for personal computer that allows the user to perform certain functions that can reduce the load of daily tasks and be effectively used by an individual. Ed Roberts...

12 minutes read.

What Hardware Device Drivers should be Updated?

Our recommended hardware for updates is shown below. Driver and other component updates for your computer can resolve problems, improve functionality, and boost stability. How Frequently Should Your Drivers Be Updated? Consider...

6 minutes read.

What is a multicore processor?

A multi-core processor is an electronic component that has two or more processors attached to it for increased performance, more efficient power use, and rapid and parallel processing of multiple...

6 minutes read.

How many types of files are there in Linux

You will undoubtedly come across several file types when browsing the Linux file system. Regular files and directories are the most common and evident file formats. But with an additional...

3 minutes read.

What is CD-ROM?

An optical disc called a CD-ROM (Compact Disc Read-Only Memory) stores digital data, such as software, music, and videos. It is read-only, meaning that data can be read from the...

4 minutes read.

What is the Pg up Key (Page up Key)

The Pg Up key is a computer key located between the keyboard and the numeric pad or on the numeric pad number 9. It can also be referred to as...

2 minutes read.

What is Barcode Reader?

A barcode reader is an optical scanner and handheld or stationary input device, also known as a price scanner or point-of-sale (POS). It is an input device because it brings...

5 minutes read.

What is an App Drawer?

An App Drawer is a dedicated section responsible for keeping a record of all the applications installed on your mobile phones or tablets. An app drawer consists of two words:...

7 minutes read.