Nvu tutorial1 1
Upcoming SlideShare
Loading in...5

Nvu tutorial1 1






Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Nvu tutorial1 1 Nvu tutorial1 1 Presentation Transcript

  • Exploring the Internet Creating web pages with Nvu/Kompozer a WYSIWYG web editor 91.113-021 Instructor: Michael Krolak 91.113-031 Instructor: Patrick Krolak See also http://www.cs.uml.edu/~pkrolak/lab4/lab4.html Authors: P. D. & M. S. Krolak Copyright 2005
  • Tonight
    • Creating a web page using a WYSIWYG web editor
    Source: http://www.arteffectsni.co.uk/web_design/cartoon_web_design.gif
  • Class Announcements
    • Class Notes Have been posted on class blog.
  • Nvu Now called KomPozer Nvu (pronounced New View) is an open source editor, i.e. the source and the program are freeware . NVU has a next version called Kompozer which is new and improved.
  • Instructions for Downloading The Web Editor Kompozer (next generation of NVU)
    • Directions:
    • To download Kopozer go to http://www.kompozer.net/
    • Depending on your computer settings, you may get the following warning:
      • Press Run.
      • When prompted click "Next" or "I accept the agreement". Finally click on Install.
  • Using Kompozer to set up and edit your website
  • Goals of the tutorial
    • Goals of the tutorial:
    • The goals of this are centered around creating interesting, attractive, and compelling web documents in an efficient and productive manner.
    • To learn the Nvu web editor an editor that makes creating web pages only slightly more difficult than creating word processing documents.
    • To learn how to design tables and to use the table tags to create attractive two dimensional layouts.
    • To learn how to find and create a web resource page to keep track of sites that contain free and shareware resources to make creating more attractive web pages easier.
  • WYSIWYG editor
    • Writing Web Pages using the Web Editor.
    • Kompoze r works like a What You See Is What You Get (WYSIWYG) word processor, e.g. MS Word.. In the previous lab we actually used some of the HTML tags and created HTML documents.
    • To use Kompoze r one only needs to:
      • select the appropriate button in the composition toolbar,
      • answer the questions in the resulting dialog box and fill in the appropriate text boxes, and
      • click the [Apply] button to see what the change looks like and the [Close].
  • WYSIWYG editor (more)
    • As we move into the era of dynamic documents, this becomes harder and harder to do. In newer Web page editors, much of the action is also buried in the source code. Thus, it is hidden from the viewer. As a result, Nvu and other similar editors use tags to indicate how the content behaves at the source code level.
    • This hidden layer could include:
    • Java applets,
    • Javascript and other scripts,
    • Forms,
    • Frames, and
    • XML.
  • Kompozer’s Site Management
  • Opening your web page on Kompozer
  • Enter the location of your web page
  • Opening your Publishing Settings
  • Site Settings Remember: Your username is your first initial and last name and 113. So JohnSmith would have a http address of http://ceweb.uml.edu/jsmith113 , a ftp site of ftp://ceweb.uml.edu and a username of jsmith113
  • Adding a link to a file on your webserver
    • Add the text that you want to display
    • Then copy the name of the file into the lower field.
    • Click OK.
  • Opening your web page on Kompozer
  • Kompozer Editor to create web pages in HTML
  • Enter the location of your web page
  • Opening your Publishing Settings
  • Kompozer -- a WYSIWYG HTML Editor:
    • To open Kompozer
    • Select
  • The Toolbar
    • The toolbar has the standard functions File, Edit, View on the left side, Help
    • Insert, Format, Table, and Tools contain detailed HTML functions.
  • [ I nsert]
  • [ I nsert]/Named A nchor
  • [ I nsert]/HorizontalLine
  • The Composition Bar The Composition Bar offers one button tools for rapidly carrying out common tasks .
  • Composition bar
    • The one button tools are the most frequently used editing operations, and offer assistance with the more complex HTML tags for creating links, targets, images, horizontal rules, and, most importantly, setting up tables. Dialog boxes request user preferences and other information necessary to create the containers for the tag(s). The most common examples are the image and the table tags.
    • Table tags are really containers within containers that denote colors or backgrounds, captions, horizontal and vertical alignment of text and table, and the borders of the table and each cell. Thus, the dialog box involves specifying many items.
  • Composition bar
    • Composition bar contains frequently used functions, New, Open, Save file operations
    • Publish - allows publishing the document to the web,
    • Browse - view the it in the browser,
    • Anchor
    • Link -- Link HTML documents, named anchors, audio and multimedia.
    • Image – Add an inline image to the document
    • Table – Create a table
    • Form – Create a form and add actions to interact with the server.
    • Spell check the document
    • Print
  • New Button
  • Open Button
  • Save Button
  • Publish Button
  • First Step -- Publish button
    • Click [Publish]
    • Click Setting Tab
      • Site Name –
        • Ceweb.uml.edu
      • Pub address – ftp://ceweb.uml.edu/
      • Http address (URL) -- http://ceweb.uml.edu/User_id
        • Note User_id
      • Fill in the User_id and Password
  • Before Publishing
    • After the Web page has been:
    • Created,
    • Edited,
    • Checked for grammar, spelling, content, and appearance, and
    • Finally validated [Tools]/Validate HTML
    • then it is ready to be uploaded to your website (Published).
  • Page is ready to Publish
    • Click [Publish] button
    • Click Publish tab
    • Site Name – ceweb.uml.edu
    • Make sure the page has a title and a file name with a “.html” extension
    • Use the defaults and click publish button (see arrow)
  • Browse Button
  • A nchor – Named Anchor
  • Linking materials
  • Link Button
  • The Link Properties Dialog
    • The URL can be an absolute URL, in which case:
    • Type it in the "Link to" window in the dialog box.
    • Copy from the Netscape Location: window and paste in the second window.
    • Place the mouse on the text link and click the right mouse button; then select the Copy Link to Clipboard option. Finally, paste it in the "Link to" window.
    • The URL can be a file in the current system's directory, (i.e. a relative URL).
    • A simpler method is to click [Choose file..] and use the usual Window's directory dialog box to find the correct file, highlight it, and click [Open ].
    • After the link's text and URL are completed and click [OK].
  • Linking to Special URLs
    • Linking to Special URLs including Mailto to setup Email Links
    • Review the material on special URLs such as: ftp, etc.
    • The Mailto link is of major interest to most authors. Simply fill in the text as in a general link in the second window:
      • Mailto: Author's_Email_Address
    • Where Author's_Email_Address is your usual email address, e.g. pkrolak@cs.uml.edu
  • Using Images in your web page
  • Image possibilities
    • The Image Button allows you to add images to your page.
    • The images placed on a page are known as inline images .
    • Clickable images that link the image to a URL are called  buttons . A button can link to another location on the page, another external page, or a sound or video.
    • An image used as a background upon which the text and inline images are placed is called, naturally, a background image .
    • An image with defined clickable regions that point to URLs, or cause an action when a mouse event occurs (onMouseOver, onMouseOut) is called an image map .
  • Image Button
  • Fill out the image dialog box
    • Image Location Tab:
    • Image Location – use the location on the web, i.e. its URL or use the [Choose File..] to locate the image on your computer.
    • The image is saved with the HTML file in the same directory unless the URL is relative to page location check box  is checked (clicked on), in which case it leaves it where it is..
    • Use the Alternative text (short title or description for visually impaired).
    • Note after the Image location is chosen a thumb nail of the image will appear.
    • Advanced Edit – normally used by advanced web designer.
  • Image Dimensions Tab
    • Image Dimensions tab:
    • Optional if Actual size
    • If you need to resize, click Custom Size.
    • Constrained check leaves the ratio of height to width the same.
    • Select the new width (and height if not constrained)
    • The size can be either in pixels or % of window size
  • Image Appearance tag
    • The Appearance tab allows the user to chose:
      • Spacing around the image and whether to use a solid border.
      • The Align text option tells the browser how to flow the text around the image.
  • Image Link tab
    • The Image Link Tab is used to create a button.
    • After a suitable image that makes clear the action of the link is chosen then a URL that carries out the action is inserted in the text window.
    • If the link is to a local file in the directory, then use the Choose File .. Option.
  • Table Button Tables allow the author to create a two dimensional layout for the document. This control is necessary for a professional and pleasing appearance. Read: http://www.cs.uml.edu/~pkrolak/lab4/lab4.html
  • The Table Button
  • Initial Table Dialog
    • Click the Table button
    • Fill in the number of rows and columns
    • Fill in width either in Pixels or % of window.
    • Border 0 is none, 1-2 is flat, 5-10 is a 3-d boarder
    • Click [Advanced Edit..] and fill in the table attributes
    • When done click [OK]
  • Advanced Edit – set the attributes
    • The Advanced Properties Edits the Table attributes
    • Click Selector arrow
    • Select the attribute from the list and double click on it.
    • Set the value in the Value window.
    • When done click [OK ]
  • After the table appears – Modify cells, rows, columns
    • In the table click your mouse on the object to change (cell, row, col).
    • Click [Table]
    • Cell dialog box appears fill in changes and use [Advance Edit] to modify object’s attributes
    • As an example in the attributes select bgcolor to change the table’s color. Use value to get color, then click [OK]
  • Mistakes, Modification, and Redesign of Tables:
    • How do I delete a table, row, column, or cell?
    • You may create too many rows or columns, and want to delete some. This is done in the following manner:  
    • Click the Edit button in the Toolbar:
    • Undo maybe used right after creating the table to delete it and start again.
    • Otherwise, you can use the D elete Table sub-menu:
      • Table -- Deletes the selected Table.
      • Row   -- Deletes the selected Row.
      • Column --Deletes the selected Column.
      • Cell     -- Deletes the selected Cell.
    • The S elect Table allows the selected Table to be modified
  • Examples
  • Forms for creating user interaction Forms allow the user to interact with the page, a necessary function for e-commerce and other applications Read http://www.cs.uml.edu/~pkrolak/lab8/lab8.html
  • Forms
    • Forms:
    • Allows for interaction between the user and the web page or the web server. This is a necessary requirement for e-business and distance learning.
  • Creating the form <form></form>
    • The form tag creates a container for all of the rest of the input tags , thus the first step to creating a Form on a page is [Form]/define form…
    • Fill out the Definition dialog box
    • After filling out the form and clicking [OK] a box will appear on the screen as doted lines.
  • Form Name
    • The form name can be anything that is not a reserved one.
    • It is a good idea to name the form in a meaningful manner. The form is an object. When programmers refer to it is easier to refer it by name.
  • Form Method Method Comment Get A message attached to the URL of the location where the information is to be processed. The attachment follows the usual URL starting with a &quot;?&quot; and followed by name and value pairs. Some special character information is encoded to allow the receiving location to distinguish the operator characters from those used as normal text. Post A file that is passed with the URL to where it will be sent to be processed.
  • About Encoding The Commonly Supported Encoding Types Encoding Type Comments application/x-www-form-urlencoded This process translates spaces in the information to &quot;+&quot;, non-alphanumeric data into % followed by a two digit hexadecimal that are the ASCII code for the symbol, and the line brakes as %0D%0A . text/plain As the name implies, a simple text file. multipart/form-data Allows the form's components, i.e. the type, send file, to be used to send a single MIME-compatible compound document. This is a fancy way of describing the familiar  email attachments.
  • The Components of the Form Container
    • These other tags go inside the Form, i.e. you only use one form container but you can have as many components as you need
    • Form Field (input type)
    • Form Image
    • Text Area
    • Selection List …
    • Define Button …
    • Define Label …
  • Form Field (input type)
    • [Form]/ Form Field..
    • A selector will occur with all of the input types:
      • Text
      • Password
      • Checkbox
      • Radio Button
      • Submit button
      • Reset button
      • File
      • Hidden
      • Image
      • Button.
  • Form Field (input type) more
    • Note the radio button requires that you put then into a group, since only one of the group can be selected.
    • Every member must have the same group name (spelling and case).
    • The field value is the value that goes with that choice.
    • One of the group can be checked as Initially Selected to indicate the normal choice.
  • Form – Define Button
    • In order for this option to work correctly is to highlight the text to appear on the button and then select [Form]/Define Button ..
    • For example to create a submit button Highlight the word “submit” and then
  • Design of a Form
  • Spell Button
  • Print Button
  • The style bar (Formatting Bar) Creating the look and feel of the document.
  • Formatting Tool bar -- Style bar
    • The style bar allows the author to create the html text containers, i.e. physical, logical, and font.
    • Lists – ordered and unordered
    • Alignment
      • Left
      • Center
      • Right
      • Justified
    • Tab right and left
  • Style
  • Text and Background Color Selection
  • Selecting colors
  • Highlighting
  • Physical Text
  • Lists
    • Simple lists breaks down into two main types:
      • Unordered lists with each item denoted by a printer's bullet or other symbol , or
      • Ordered lists (those that use a number or letter)
    • Other list types that require the use of the F o rmat button on the tool bar are:
      • Definition , and
      • Dictionary
      • Menu
    • Note that the Unordered List will select the style of the bullet (disk) for you based on rules of nesting or indentation. Similarly, for Ordered Lists, it will select order element type (numbers or alphabetic characters). If this offends your sense of layout,  use the HTML editor to override Nvu's selection. You can achieve almost all the control needed for any list layout -- select the [F o rmat] button/ Character Properties/Paragraph , then select the correct options to determine list style, type of character or disc to display, and the starting value. This is tedious, but necessary for greater control over the details.
  • Text Alignment
  • Unordered List
  • Ordered List
  • Align the text element
  • FAQs
    • Q: How do I begin to use Nvu: Ans: It is recommended that the reader start by reading the Nvu Users Guide:
    • http://www.nvudev.org/guide/1.0PR/nvuug10.pdf
    • Q: How do I open Nvu to begin editing? Ans. : Click on Nvu icon on your desktop.
  • FAQs (more)
    • Q: How do I set the background color, image, or the default colors of the text, link, alink (active link), or the vlink (visited link)? Ans.: Click [Format]/Page Colors and Backgrounds ...
    • Q: How do I get special characters, for instance the copyright symbol, into my text? Ans.: Click [Insert]/Characters and Symbols ...  For more  information see .
    • Q: How do I get the Nvu plugins? Ans: The plugins and instructions for using them -- 
  • FAQs (more)
    • Q: How do I find out what plug-ins are available on my copy of  Nvu? Ans.: Click on the [ T ools] menu.
    • Q: How do I stop the Link operator from &quot;linking the text following the text that was specified&quot;?  
    • Ans.: Nvu still thinks that the container for the link text is open. Highlight the text that you don't want to be part of the Link, click [ F o rmat ] and select &quot;Remove Lin ks &quot;.
    • Q; How do I insert tags not supported by the current Nvu editor?  
    • Ans: Nvu does not support the full set of HTML tags -- <base>, <Object>, <Embed>. To overcome this one can insert the non-supported tags one at a time using [ I nsert]/HTML Tag .. See the discussion on the [Insert]   Also by clicking on the <HTML> Source tab on the bottom of the Nvu window one can edit the source code directly.
  • The <Embed></Embed> tag
    • Use the <embed> tags when you need a plugin or other helper that is not part of the browser original programs.
    • Basic attributes are:
      • SRC= “URL_of_Media_file” can be sound or video, etc.
      • Controls to set volume, start, loop, etc.
  • Attributes for the Controls Control Attribute Value Controls True|False Height integer Width integer Autostart True|False Loop True|False
  • Adding Audio and Video
    • Use the [Insert]/HTML
    • In the dialog box window insert
      • < embed src=“ Insert File Location (URL) Here ” controller =“True” >
      • Then your Text message </embed>
    • Note the attributes should allow for a controller so the user can correct volume, on/off etc.