Source view

Source view gives you total control over the HTML tags and content of your file, including the Head section and scripts. You can view and edit content as well as the HTML tags and their attributes.

The sample shows the Source view for the Web page shown in the two previous illustrations. It displays the H T M L tags and content that produce the page seen in Page view to allow for editing.

Basic document structure

When you create a new HTML file and switch to Source view, the basic document structure has already been created for you, including the HTML, HEAD, and BODY elements.

Using menu items and tools

In Source view you can type the tags manually, use menu items or tools, such as wizards, toolbar buttons, element property sheets, or the System Tree, and drag-and-drop items to add content and formatting. You can then edit these tags and attributes in the source code.

For more information on editing techniques in Source view, see “Basic editing in Page and Source views”.

Formatting the HTML source

Source view in the HTML editor can format your HTML code to make it more readable. Use the Editors tab of the Options Properties dialog box to specify formatting. You display the Options Properties dialog box by selecting the Design>Options menu item from the HTML editor menu bar.

You can also select an option to format the source code automatically, or trigger the formatting manually from the Source view pop-up menu.

For more information on formatting Source view display, see “Formatting HTML source display”.