Web Authoring with Nvu

The following instructions describe how to set up a website on the CAEDM J: drive using Nvu.

Nvu is a free web page authoring utility. You can download a copy for your personal use from the official NVU site or you can grab a copy from our local server. When you download Nvu it will place a zip archive on your local drive. Simply unzip this archive and go inside the resulting folder to find the Nvu.exe file and double-click to launch Nvu. There is no install utility and it does not make changes to the registry, so you can install it anywhere, including the J: drive or on a local flash drive.

Note: This tool only works for Windows. It is not supported by the latest Mac OS Mojave

The J:\www Directory

Before starting, let's review how webpages are hosted on the CAEDM system. When you logon to your CAEDM account you may have noticed that you have a subdirectory on the J:\ drive labelled "www". Everything you put in this directory will be visible on the internet using a web browser. This is done using an aliasing system handled by the CAEDM web server. For example, suppose that I create a web page in the J:\www folder called "mypage.htm". When I edit this folder while logged on to CAEDM, I edit it directly on:


To view this page using a web browser, I simply type in the following URL:


where username is my CAEDM user name. For example, if my CAEDM user name is njones, the URL becomes:


Note that the "~" character is on the upper left corner of your keyboard.

Recall that each website typically has a default home page named "index.htm" or "index.html". If this file is present in the directory for your website, you can omit the name of the file in your URL. For example, the following two URL's both point to the same web page:



Thus, you can shorten the URL for your website by using "index.htm" as the name for your main web page (i.e., your home page).

Many websites involve multiple web pages. If you want to organize your web pages into subdirectories, that is not a problem. Simply create subdirectories inside your www directory and give them descriptive names. Each subpage can have its own default page (index.htm) if you wish. For example, suppose I have a subdirectory called "hobbies" that contains the following files:


The following URL would point to each of these pages:

http://www.et.byu.edu/~username/hobbies/    (for the index.htm page)

Creating a New Site

To create a website on your J:\ drive using Nvu, do the following:

  1. Launch Nvu

At this point, you should see the Nvu window with an empty untitled document:

First we will create a new "site". A site is a collection of web pages at a common location. Defining a site allows you to manage all of the web pages associated with the site as a single group.

  1. Click on the Edit Sites button.
  2. Enter a descriptive name for your website in the Site Name box. This is simply used to identify your site in the list of websites managed by Nvu.
  3. Enter the URL of your site (http://www.et.byu.edu/~username/) in the HTTP address... section. If you are organizing your site in a subdirectory, include the name of the subdirectory in the URL.
  4. In the Publishing Server section, click on the Select Directory button and browse to the www directory (or your subdirectory) and click OK.
  5. Don't worry about the User name and Password fields. You only need to do this if you are publishing using FTP.

At this point, your settings should look something like this (I am using a subdirectory called "demo"):

  1. Click on the OK button. Your site should then appear in the list on the left side of Nvu.

Working from Off-Campus

The Publishing Server settings shown above are only valid if you are working on a computer in one of the CAEDM labs. If you work from home or off-campus from a laptop or a PC, you will want to set up the Publishing Server settings a little differently. If you are working on a web that is stored on the J: drive, you will not be able to use the Publish option in NVU to upload your files because CAEDM uses a secure FTP method that is not supported by the college. However, you could easily use FileZilla or some other FTP client to upload your files to the J: drive.

If you are using a different web hosting service to host your web files, you can use the Publish option in NVU to upload a local copy of your files to the remote server. Your settings will look something like this:

You would need to check with your web hosting service to get the precise details on the publishing server log in.

Creating a New Web Page

Now you are ready to make your first web page. Note that you have a blank page open called "untitled". Let's edit this page and make it our home page.

  1. Enter some text as a heading at the top of the web page ("Welcome" or something).
  2. Select File|Save As...
  3. Enter a title for your web page. This is not a file name. It is simply a title that will appear in the browser title bar when the page is active. Click OK.
  4. A file browser should appear. Path to you folder on the J: drive in the www directory where you want to save the file. This should either be in at the top level (J:\www\) or a subdirectory (J:\www\demo\).
  5. Change the name of the file to "index.htm" and select Save.

Let's test our new web. Bring up a web browser and type in the URL of your web. As described above, this will be something like:


Be sure to add the name of the subdirectory if appropriate.

Editing Your Web Page

Let's review some basic editing options. First of all, let's assign a style to the heading (controls the font size, etc.).

  1. Make sure your cursor is on the first line (the one containing the header you just made) and select the Heading 1 option from the class selector at the top left of the window.

Your heading now should appear larger and in bold. We will now enter some lines of text.

  1. Make sure the cursor is at the end of the heading and hit the Enter key. This will move the cursor to the next line.
  2. Each component of a web page corresponds to a certain style or tag type.

Generally, we want our main text to correspond to the Paragraph style, not Body text.

  1. Change the style from Body text to Paragraph using the same selector on the upper left.
  2. Type some text on this line and hit the enter key again.

Note that the new line is automatically defaulted to Paragraph style. You should also note that paragraphs are all separated by one blank line.

  1. Type in a second line of text.
  2. Hold down the Shift key and hit the enter key again.
  3. Type a third line of text.

At this point, your page should look something like this:

Note that last line did not have a separator. That is because Shift-Enter creates a line break within an existing paragraph. This is a simple and quick way to control the line spacing.

Viewing and Editing the HTML Source

The underlying code for web pages is HTML (hypertext markup language). We are currently viewing the web page in WYSIWYG (what you see is what you get) mode. To view in the native HTML format:

  1. Click on the Source tab at the bottom of the window.

Your source should look something like this:

Each of the items is wrapped in a pair of "tags". For example, the heading is enclosed in <h1></h1> tags. Each paragraph is enclosed in <p></p> tags. Some tags do not come in pairs. For example, the <br> tag marks a line break within a paragraph. Tags can also be nested. Everything is nested within the <html></html> tags. The main body of the page is nested within the <body></body> tags. You can next formatting tags within paragraph tags. For example <b></b> tag is used to make something bold.

  1. Choose one of the words in one of your paragraphs and manually type <b> and </b> before and after the word.
  2. Pick another work and wrap it in italic tags: <i></i>.

To view our changes:

  1. Switch back to WYSIWYG mode by clicking on the Normal tab at the bottom.

You can also adjust the formatting on selected text using the formatting tools at the top of the window.


Most web pages utilize images or graphics in addition to text. Since HTML is simply a text format, images must be stored separately from the text. So inserting an image is a two step process:

Step 1: Save a copy of the image to a folder on your website in either JPG or GIF format.
Step 2: Insert a link to the image from your HTML source.

To illustrate the process, let's find and image and put it in our web page.

  1. Bring up a web browser and find a web page with an image you would like to use.
  2. Right-click on the image and select Save Image As...
  3. Optional: Change the name of the figure to something simple (myfig.jpg or myfig.gif for example).
  4. In the Save Image dialog, path to the J:\www directory (include subdirectory if necessary) and click on the Save button.

This completes step 1. Now we need to create a link to the image in our web page.

  1. Put your cursor in the location on the web page where you wish to insert the image. You may want to make a new line.
  2. Select the Insert|Image command in the menu or click on the Insert Image tool .
  3. Click on the Choose File... button.
  4. Path to and select the figure you just downloaded. Click on the Open button.

At this point, the dialog should look something like this:

Note that the entire path of the file is listed. I am not sure why Nvu does it this way, but it won't work. The J:\ drive link is only valid when you are logged onto CAEDM; it won't work when we use a browser to view our web page. To fix this:

  1. Remove the text in the path prior to the figure name ("file:///j:/www/demo/" for the case shown above.

Now the dialog should look like this:


  1. Enter something for the Alternate text (otherwise it will complain).
  2. Click on the OK button.

Your image should appear at this point. You may want to switch to Source mode to see the HTML code associated with your image.


Next we will create a hyperlink to another website. Each hyperlink consists of two parts: 1) the text that is displayed and 2) the underlying URL of the webpage associated with the hyperlink. We will create a hyperlink to the ESPN website.

  1. Create new paragraph by moving the cursor to the end of an existing line and hitting the Enter key.
  2. Type "I like ESPN." on the new line.
  3. Select the "ESPN" part of the new line. (you can double-click on the word to select it)
  4. Select the Insert|Link command in the menu or click on the Insert Link tool .
  5. Type "http://www.espn.com" and click OK.

The color of the link should change. To test your link:

  1. Click on the Save icon to save your changes to the web page.
  2. Bring up the web browser showing your page and click on the Refresh button.
  3. Click on your link to test it.


Tables are a great way to organize information in your web page. They can be used with borders to present a traditional table of information in rows and columns or they can be used without borders as a simple way to arrange information (images, links, etc.) on your web page. To insert a table:

  1. Create new paragraph by moving the cursor to the end of an existing line and hitting the Enter key.
  2. Select the Insert|Table command in the menu or click on the Insert Table tool .
  3. Move your cursor over the table graphic to select how many rows and columns you want and then click OK.

A small table should appear in your web page. Position the cursor in each cell and type some text. Note that you can insert images or any other web content in the table of your cell. To edit the table:

You can also edit a table by viewing the source and editing the tr (rows) and td (column/cell) tags.

Additional Web Pages

To add new pages to your web, just create additional pages the same way you created the index.htm page, but use a different name. Save the pages to the same folder. You can create links to these pages from your main page using the Link tool and typing in the name of the page (as was the case with the image, don't use the full path).