×

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

What is a Server?

The computer which processes the request and delivers the data to the other client over any network is called a Server. The server could be local or internet. These are specialized...

6 minutes read.

Generation of Computer

History of computer The abacus was initially used for the mathematical tasks in the history of the computer. It is also known as counting frame and a calculating tool that was used in Europe, China,...

6 minutes read.

How to choose which items show in the notification area

Icons in the notification area, also known as the system tray, contain information for users about several features of their operating system. Examples include the date and time, the state...

3 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.

Autoexec.bat and config.sys Information

Basically, the Config.sys and Autoexec.bat files are made for MS-DOS and Windows 3. x to load the device and operating system to work effectively. The most recent versions of MS-DOS...

7 minutes read.

What is Palmtop Computer?

Introduction A palmtop computer is a palm-sized electronic device that is compatible with IBM systems. The clamshell-like or laptop-like form factor of these devices allows them to be used as a...

9 minutes read.

How to test if a Website or Web Page is down?

The web server hosting a website, the routers, and other hardware connecting your computer to the server could all fail. The web server or routers may be unavailable due to...

6 minutes read.

What is EHCI?

EHCI stands for "Enhanced Host Controller Interface." It is a specification that defines the interface between a host controller (such as a computer or other device) and a device controller...

4 minutes read.

Augmented Reality

Augmented reality, or simply AR, is an alternate or enhanced version of the world we see around us with the help of some technologies. AR is like a new trend...

3 minutes read.

How to determine Which Version of Microsoft Office I'm using?

Many people who use Windows computers also use Microsoft's Office package. While it is simple to tell what version of Windows you are using just by glancing at your desktop,...

3 minutes read.

What is a Mechanical Mouse?

A computer mouse with a metal or rubber ball on the underside is a mechanical mouse. The mouse's internal sensors detect any movement of the ball when it is rolled,...

3 minutes read.

What is Data Manipulation?

Data Manipulation is the process in which the developer organizes the data making it more understandable by properly arranging it in the proper structure. For example, you have gathered the...

9 minutes read.

What programs can I use for speech recognition?

Since its inception, voice recognition software has advanced significantly. It can be utilised for a variety of things, such as speech-to-text software and voice commands on desktop computers and mobile...

3 minutes read.

Function Keys on Keyboard

The function keys are present in each keyboard. There are a total of twelve function keys labelled from F1 to F12. Each function key is designed to carry out a...

4 minutes read.

What are Storage Devices?

Computing hardware is capable of storing the information and can also be processed. Information on the storage can be stored permanently as well as temporarily. It is one of the core...

7 minutes read.

Smart Devices

Smart devices are all everyday objects made intelligent with, for all intents and purposes, advanced computing, including mostly AI and machine learning, and networked to form the internet of things,...

3 minutes read.

What is Auto Rotate?

On smartphones and tablets, the auto-rotate feature aligns the screen's alignment with the real orientation of the device. The display is switched to either portrait or landscape mode depending on...

3 minutes read.

What is Website?

Website A collection of web pages is known as a website. The web pages may have a collection of text, images, audio, video, etc. We can also say that website is...

4 minutes read.

How to Connect and Install a Computer Keyboard?

The wired keyboards used nowadays are linked to the computer using the USB interface. The older computers used the Personal System/2(PS/2), also called the mouse or keyboard port, to connect...

7 minutes read.

Computer Ports | Computer Fundamentals

What is a Port? A port is a physical connection on a computer or another electronic device that allows users to connect a device. There are several types of ports available...

10 minutes read.