 |
We finished
the previous activity with a "plain vanilla" webpage. In this
activity, we are going to embellish the webpage, adding some graphics
that will make it more visually appealing. Lets get started
- Open
the DiDa HTML Editor. (See the specific instructions for your
operating system if you need a review of this process.)
- When
the new blank html screen appears, click on the File
menu.
- Click
on Open. (The Open dialog box will appear.)
- Double-Click
on the a:\ folder that appears at the top in the Directories
or Folders box. (A list of all the directories or folders located
on the a: drive will now appear.)
- Double-click
on the root folder (The test.htm file you created in
Activity 1 should appear in the File Name list on the left side of
the screen.)
- Click
on test.htm and click on OK. (The test.htm HTML document
should now be in the window.)
We are going to use some of the editing features of the DiDa HTML
Editor to change the appearance of the simple page we ended with
last time. Hint: You will want to remember these procedures as they
can be used to modify future webpages you will be creating.
- Click
on the Image Button in the toolbar.
- Click
on the Text and Backgrounds option.
- A Body
Code Generator dialog box will appear.
- On the
right side of this dialog box you will note 16 color palettes that
will allow you to change the text, background and link colors the
web browser will use to display your webpage.
- Clicking
any of the 16 default colors will change the sample box on the left
side of the dialog box, showing you what your webpage will look like
using the colors you have selected.
- If you
need more options, click on the color palette button below
the default colors. This will bring up 48 more color options.
- If you
need even more options, you can use the define custom colors
option at the bottom of this dialog box.
- When
you are satisfied with your choices, click on the OK button.
- Note
that DiDa added a new set of <BODY COLOR=, BGCOLOR=, LINK=>
tags to the top of the webpage. (The numbers and letters are hexadecimal
codes that the web browser will use to create the colors that will
appear on the screen.)
- You
can go back and change these colors along the way if you decide you
dont like the way your webpage appears. Just click on the Image
button and select Text and Backgrounds and repeat your selection
process.
- Click
on the Preview Screen tab on the lower left hand side to see
what your modified page looks like in the full screen mode.
- Click
on the HTML Document tab to return to the source code.
- Position
the cursor below the <BODY BGCOLOR... line of tags (you
may need to hit Enter to create a blank line.)
- Position
the cursor on the blank line.
- Click
on the Image button.
- Click
on Picture. A dialog box will appear. (Note: The root
folder on the a: drive should appear by default since this
is where you saved the test.htm file. If it doesnt, navigate
to the root folder on the a: drive).
- Select
the hr4.gif file from the list on the left side of the dialog
box.

- Click
on OK and a <IMG SRC="hr4.gif"> tag
should appear on the webpage. This will cause the browser to display
a graphic file that I placed in the root folder to be displayed on
your webpage.
- Click
on the Preview Screen tab to see if it is there.
- If it
isnt, go through the above steps again.
- Position
the cursor between the first <H2> tag and the words This
is my first webpage.
- Click
on the Image button.
- Click
on the Picture option.
- This
time, select the new_star.gif file from the root folder
on the a: drive and click on OK.
- A <IMG
SRC="new_star.gif"> set of tags should appear on
the webpage. (this will cause the browser to display another graphic
image on the webpage.
- Click
on the Preview Screen tab to see what it looks like. If the
image does not appear, go through the above steps again.
- Position
the cursor after the second </H2> tag near the end of
the webpage and hit the Enter key to insert a blank line.
- Position
the cursor in this blank line and perform steps 15 to 19 from
the list above to add another hr4.gif image to the end of the
webpage.
- Save
the changes you made (File/Save).
- Your
modified webpage should now look something like this:

- Click
on the Preview Screen tab. Your webpage should appear looking
like this:

Note: If
you notice a mistake, click on the HTML Document tab. This will take
you back to the HTML source code where you can edit the document just
as you would in a word processing program. The ability to immediately
preview the changes you are making to the source code is one of the
best features of the DiDa HTML Editor. You will be using this feature
a great deal in the activities that follow.
Checking
the Webpage
- Log
on to the Internet.
- Open
your web browser.
- Click
on the File menu.
- Click
on Open File
- Click
on the a: drive under Drives.
- Double-click
on the a:\ folder under Directories/Folders.
- Double-Click
on the root folder.
- Click
on test.htm (it will turn blue and appear in the File Name
box)
- Click
on OK.
- Your
webpage should load with the new background color, the horizontal
rule .gif image and the NEW image in place. (If it doesnt, you
may need to click on the Reload button to refresh the browser
image
sometimes the browser loads the file from the cache memory
instead of the file you asked for
)
- Examine
the webpage, noting the changes that have been made. The webpage should
now like this:

- Test the hypertext
links to be sure that they are correctly configured and take you to
the desired website. When you are satisfied that everything works
properly, close the browser and log off the Internet. (File/Exit)
You have
now had a crash course in creating and modifying a simple webpage. When
you are on-line, you can see what the HTML code behind any webpage looks
like by clicking on the View menu and selecting Source. (Click
OK when you are finished looking at the source code.) This
is a good way to learn the HTML secrets of the pros. Countless
books and magazine articles have been written about how to create webpages.
You might want to check some of these out if you are interested in learning
more about creating webpages. The next activity in this series will
add some more graphic images that you will capture on-line.
|
 |