100 likes | 197 Vues
Creating a Hypertext Document. Links can point to another section in the same document, to an entirely different document, or to a variety of other web objects. Creating Anchors.
E N D
Creating a Hypertext Document • Links can point to another section in the same document, to an entirely different document, or to a variety of other web objects.
Creating Anchors • The <a> tag creates an anchor which is text that is specially marked so that you can link to it from other points in the document.
Creating Links • The HREF property can refer to an anchor that you place in the document or to a different page on the internet. • Anchor names ARE case sensitive.
Web Page Structures • Before writing the code for your pages you should map out exactly how you want your pages to relate using a technique known as storyboarding. • Storyboarding is deciding how you want to set up your pages to relate to each other so that users can navigate through them.
Web Page Structures • Linear structure- each page is linked to the next and to the previous pages in an ordered chain of pages. • Hierarchical structures- starts with a general topic that includes links to more specific topics. • Mixed structures- a combination of structures.
Creating Links Between Documents • To link a page to another page you use the <a> tag with the HREF code. • Example: A HREF="linkpage.htm"> Click here </a> • The text Click here is linked to the page "linkpage.htm" so that when the user click on the text he/she will go to that page.
Linking to Documents in Other Folders • Browsers assume that if no folder information is given, the file is in the same folder as the current document. • Use the absolute path to show exactly where the file is on the computer.
Linking to Documents in Other Folders (Cont.) • If the file you want to link to is in a folder called folder2 which is in a folder called folder1 the link should be: • /folder1/folder2 • A relative path gives a file's location in relation to the current web document.
Linking to Documents on the Internet • To link to a document on the internet you must know its URL (Uniform Resource Locator). • The URL gives the file's location on the web. To link to the class web site type: <a HREF="http://www.jonesboroweb.com/brtc">Class Page</a> • This will allow the user to click on Class Page to go to our class web site.