Download presentation
Presentation is loading. Please wait.
1
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.htmlhttp://www.cs.uml.edu/~pkrolak/lab4/lab4.html Authors: P. D. & M. S. Krolak Copyright 2005
2
Tonight Creating a web page using a WYSIWYG web editor Source: http://www.arteffectsni.co.uk/web_design/cartoon_web_design.gif http://www.arteffectsni.co.uk/web_design/cartoon_web_design.gif
3
Class Announcements Class Notes Have been posted on class blog.
4
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.
5
Instructions for Downloading The Web Editor Kompozer (next generation of NVU) Directions: 1.To download Kopozer go to http://www.kompozer.net/ http://www.kompozer.net/ 2.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.
6
Using Kompozer to set up and edit your website
7
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.
8
WYSIWYG editor Writing Web Pages using the Web Editor. Kompozer 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 Kompozer 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].
9
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.
10
Kompozer’s Site Management
11
Opening your web page on Kompozer
12
Enter the location of your web page
13
Opening your Publishing Settings
14
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
15
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.
16
Opening your web page on Kompozer
17
Kompozer Editor to create web pages in HTML
18
Enter the location of your web page
19
Opening your Publishing Settings
20
Kompozer -- a WYSIWYG HTML Editor: To open Kompozer Select
21
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.
22
[Insert]
23
[Insert]/NamedAnchor
25
[Insert]/HorizontalLine
26
The Composition Bar The Composition Bar offers one button tools for rapidly carrying out common tasks.
27
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.
28
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
29
New Button
30
Open Button
31
Save Button
32
Publish Button
33
First Step -- Publish button 1.Click [Publish] 2.Click Setting Tab 1.Site Name – Ceweb.uml.edu 2.Pub address – ftp://ceweb.uml.edu/ ftp://ceweb.uml.edu/ 3.Http address (URL) -- http://ceweb.uml.edu/User _id http://ceweb.uml.edu/User _id Note User_id 4.Fill in the User_id and Password
34
Before Publishing After the Web page has been: 1. Created, 2. Edited, 3. Checked for grammar, spelling, content, and appearance, and 4. Finally validated [Tools]/Validate HTML then it is ready to be uploaded to your website (Published).
35
Page is ready to Publish 1.Click [Publish] button 2.Click Publish tab 3.Site Name – ceweb.uml.edu 4.Make sure the page has a title and a file name with a “.html” extension 5.Use the defaults and click publish button (see arrow)
36
Browse Button
37
Anchor – Named Anchor
38
Linking materials
39
Link Button
40
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].
41
Linking to Special URLs Linking to Special URLs including Mailto to setup Email LinksMailto 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
42
Using Images in your web page
43
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.
44
Image Button
45
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.
46
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
47
Image Appearance tag The Appearance tab allows the user to chose: 1.Spacing around the image and whether to use a solid border. 2.The Align text option tells the browser how to flow the text around the image.
48
Image Link tab The Image Link Tab is used to create a button. 1.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. 2.If the link is to a local file in the directory, then use the Choose File.. Option.
49
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
50
The Table Button
51
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]
52
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]
53
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]
54
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 Delete Table sub-menu: –Table -- Deletes the selected Table. –Row -- Deletes the selected Row. –Column --Deletes the selected Column. –Cell -- Deletes the selected Cell. The Select Table allows the selected Table to be modified
55
Examples
56
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
57
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.
58
Creating the 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.
59
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.
60
Form Method MethodComment 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 "?" 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.
61
About Encoding Encoding TypeComments application/x-www-form-urlencoded This process translates spaces in the information to "+", 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/plainAs 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 Commonly Supported Encoding Types
62
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 …
63
Form Field (input type) [Form]/ Form Field.. A selector will occur with all of the input types: 1.Text 2.Password 3.Checkbox 4.Radio Button 5.Submit button 6.Reset button 7.File 8.Hidden 9.Image 10.Button.
64
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.
65
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
66
Design of a Form
67
Spell Button
68
Print Button
69
The style bar (Formatting Bar) Creating the look and feel of the document.
70
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
71
Style
73
Text and Background Color Selection
74
Selecting colors
75
Highlighting
76
Physical Text
77
Lists Simple lists breaks down into two main types: –Unordered lists with each item denoted by a printer's bullet or other symbol, orUnordered –Ordered lists (those that use a number or letter)Ordered Other list types that require the use of the Format button on the tool bar are: –Definition, andDefinition –DictionaryDictionary –MenuMenu 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 [Format] 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.
78
Text Alignment
79
Unordered List
80
Ordered List
81
Align the text element
82
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.p df Q: How do I open Nvu to begin editing? Ans.: Click on Nvu icon on your desktop.
83
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.see Q: How do I get the Nvu plugins? Ans: The plugins and instructions for using them --
84
FAQs (more) Q: How do I find out what plug-ins are available on my copy of Nvu? Ans.: Click on the [Tools] menu. Q: How do I stop the Link operator from "linking the text following the text that was specified"? 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 [Format] and select "Remove Links". Q; How do I insert tags not supported by the current Nvu editor? Ans: Nvu does not support the full set of HTML tags --,,. To overcome this one can insert the non-supported tags one at a time using [Insert]/HTML Tag.. See the discussion on the [Insert] Also by clicking on the Source tab on the bottom of the Nvu window one can edit the source code directly.[Insert]
85
The tag Use the 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.
86
Attributes for the Controls Control AttributeValue ControlsTrue|False Heightinteger Widthinteger AutostartTrue|False LoopTrue|False
87
Adding Audio and Video Use the [Insert]/HTML In the dialog box window insert Then your Text message Note the attributes should allow for a controller so the user can correct volume, on/off etc.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.