Transcript February 15

13 February
Building a Web Page
Links

Links: One always links to an anchor point
 Every page has an implicit anchor point at the start
 In addition, can add anchor points to the middle of the page by
using



Insert->Named anchor point
If text is highlighted, it will default to that text
OR you can use a name of your choosing
To point to an anchor point you need to know
 The page
 The point in the page
 <a href=“page#point”> linkpoint </a>
Identifying links: page

Absolute address (remote external)
 Full url: http://...
 Use when its not part of your web site



Definition: web site – a collection of web pages that work together
Relative address (local external)
 Just use the file name
 Use when its part of your web site
 You must use move it with your home page
 Confirm that the href does NOT include any of the path name
Current page
 No page required
HTML Internal Links


Internal points are called anchors
To create an anchor point


To move to an anchor point



<a name=“anchor"></a>
<a href="#anchor">Link text</a>
What differences do you observe?
Two items


Anchor is a point, not a piece of text
Anchor points have a “#” pre-pended to the name
HTML Local Links

Other pages that are always kept with the
current one



Not only the same machine, but the same folder
All pages are automatically defined as access
points
Connect with the same access tag

<a href=“other page">Link text</a>
HTML Remote Links

Other locations on the Internet


Connect with the same access tag


Any URL
<a href=“other full ref">Link text</a>
Now need to use full URL

e.g., http://www.cs.unc.edu/~pozefsky/15September05 .ppt
Demos
The Lighter Side

Introducing the Book
Posting a Web Site


First, a bit about file systems
File systems


How data is stored: 1s and 0s
But where is it stored?
Files

Simply stream of bits



May be text or represent other things
May be one stream or multiple subunits
What type of data are HTML files?
File Systems


A means of organizing and structuring files
A disk stores 0s and 1s



How do you find a specific file?
How do you know where the file begins and
ends?
How do you know if there are subunits in the file
or if it is just a single stream?
UNC Site

UNC website





Everything that is going to be available on the web must be
in your public_html folder
Treats index.html as your home page
Default is “This page is blank”
Need to get your files to their server
Two choices:


afs – too fragile
ftp
Key Web Pages

Putting Your Page on the Web


http://help.unc.edu/?id=110
Creating WWW Pages at UNC-CH

http://help.unc.edu/?id=108
Steps





Create your home page locally
Get space allocation on the public domain
Install WS-FTP if needed
Transfer pages
Test it