Why are file and folder permissions important
for websites?
Ans: You want the owner of files and folders to have read and write
permission to that she can view the files and change or delete them.
The owner of folders also wants to be able to view the contents of those
folders in the browser or SSH; execute permission is required for this.
You want group and other (everyone besides the owner) to be able to read
files and folders. You also want them to have execute permission for folders
for the same reason as above. You do not want group and other to have
write permission because they might be able to alter or delete the files
in your website.
What are the recommended permissions for files
and folders?
Read and write for owner files; read, write and execute for
owner folders. Read for group and other files; read and execute for
group and other files.
How do you set the background color for a webpage in FrontPage?
Ans: In the Normal View, right click on the page, select Page Properties >>
Formatting Tab >> Background Colors Dropdown Box >> More Colors >>
Select Color.
How do you delete a folder in SSH?
Ans: First delete all the contents of the folder, then
delete the folder.
How do you add a link to an external site to
a webpage?
Ans: Right click on the link and select Hyperlink Properties.
Select Target Frame and New Window.
More about Files and Folders
All files on the students.depaul.edu server visible over
the World Wide Web must be in the
public_html folder.
Right click on each of the files ch1.htm, ch2.htm, ch3.htm.
Select Save Target As and save each file to the example-file-system
website.
In the FrontPage website example-file-system, create the new
folder nameed.
Download each of the files app1.htm, app2.htm, app3.htm in the
folder appendix from the HCI201 course website into FrontPage website.
In FrontPage, select View >> Refresh to verify that all of the files
have been successfully downloaded.
Open a browser to text the website example-file-system.
Hyperlinks, Addresses and Bookmarks
Recall that an absolute address begins with http://. It is used for
external web sites.
A relative address does not contain http://. It gives the location
relative to the current page. There are three cases:
A page in the same folder as the current page: <a href="page2.htm">
A page in a subfolder of the current page: <a href="cities/page2.htm">
A page in a parent folder: <a href="../page2.htm">
A bookmark is used in a hyperlink to jump to a specific position
within the target page.
To create a bookmark (also called an anchor) using FrontPage, position
the cursor at the location of the new bookmark. Then select
Insert >> Bookmark.
Here is the HTML code to indicate a bookmark: <a name="section1">
To jump to the section1 bookmark within page1.htm, use an address link
like this: <a href="page1.htm#section1">
To force a hyperlink to display a page in a new browser window,
right click on the hyperlink and click the button Target Frame in the
Insert Hyperlink Dialog. Then select New Window.
The HTTP address tag that forces the page to be displayed in a new
browser window is <a target="_blank"
href="page1.htm#section1">
Practice Problems
Verify in the FrontPage example-file-system website the
HTML code for hyperlinks and bookmarks.
Create sections D, E and F in ch3.htm similar to sections
A, B and C in ch2.htm. Add bookmarks for these sections and
hyperlinks to them in ch1.htm.
Create a link to an external website that opens in a new
browser window.
Fix your uploaded Ex5 contents.htm page so that the Ex3 link
refers to the actual Ex3 submission, not to the Ex3 stub page:
Download contents.htm to your HCI201 folder using SSH.
Open contents.htm with FrontPage as a standalone webpage.
Change the hyperlink using FrontPage. Make sure the link is a
relative link.