1 Web Site Design Development Lists and Links In HTML
2 What We Covered Last Time What we talked about 1. A little background on Internet, Web Browsers 2. Creating your first HTML Web Page - What is HTML - Basic HTML document - How to publish your basic document (FTP) 3. Understanding basics of HTML document 4. New paragraphs, Horizontal rule, and header. 5. Validator “lite”
3 Instructor Info l David Lash l l Phone: l Call if any questions...
4 The Course Requirements l Homework - 30% - Lab exercises based on lecture material. »E.g., create a web page that has an HTML table. l Midterm Test - 20% - Multiple guess questions about the 6 th week. l Major project - 50% - Select a project topic early. Send to with topic (or approve during »Page must have 5 sub-pages an be of ‘reasonable’ size. –Don’t select anything too hard requiring databases, or advanced graphics –Try to select something useful (e.g., a club site, church site or hobby) –More details next week.
5 How to do well in this class l Download and review class PowerPoint lectures. (They will be on class web site ( l Do homework on time (don’t let it pile up) l Ask questions when not understand. l Use lab time when needed »Immediately after lecture, will go to the lab, ask questions there is needed.
6 Using the course home page l Course homepage: http//condor.depaul.edu Any announcements will be posted here. E.g., A homework assignment problem/clarification. On-line syllabus Links to book websites Links to get books on-line Talk more about these next week
7 More on course web page As material becomes ready will change status here Click link to download power point slides Home work assignments are at end of PowerPoint slides.
8 One more item... l In order to get space on the DePaul Web Server. 1.Contact the DePaul O’hare Lab Assistant (outside of lab) 2.Ask to activate your account. 3.Do this even if you ‘have’ an account (all students have depaul accounts) (Note: Its routine practice for them to suspend inactive accounts). You will need to do this to publish your pages on DePaul's web server. You won’t need this for a couple weeks BUT DON’T DELAY. It can take up to a week to set up!!!!
9 Details on Final Project... l Can find details at: FinalWebDesignProj.htm Talk to or about what you are going to do.
10 What Was Covered Last Week l What we will talk about 1. A little background on Internet, Web Browsers 2. Creating your first HTML Web Page - What is HTML - Basic HTML document - How to publish your basic document. 3. New paragraphs, Horizontal rule, and header. 4. Validating HTML code
11 Review - HTML Overview - Example Mypage Welcome to Website Design. Stuff you write here becomes your HTML document. Indicates start and end of HTML document The header section of document This title appears in the upper left hand corner of browser. Not in the body of the document Inside the … tags is the main portion of your document. Note how new lines in file are ignored in web page display (because HTML did not indicate line break)
12 Review - Steps To Create HTML Document & Display 1. From your PC goto S tart->run enter n otepad 2. Enter your tags and document 3. From notepad window, goto f ile->saveas 4. Enter a filename with HTML suffix (SECOND WARNING!! No spaces or caps please!). 5. Start Netscape (or IE, or Firefox). 6. From Netscape, goto f ile->open page -> choose file. (Find the file you just saved and display it!) Competency Alert: You need to know this ! Common Problem Area! People seem to forget this
13 Objectives l A short section on aligning text »right, center and left with l Creating ordered, bullet and definition lists »Creating Lists within lists l Creating hyperlinks »Creating regular links »Using relative addresses »Linking addresses
14 Competency Objectives 1. Can center text using the tag 2. Lists - Can create a and list with attributes 3. Links: 1.Can create a link to another page outside of current web page 2.Can create a ‘relative’ link to another page within current web page Competency Alert: You need to know this ! Common Problem Area! People seem to forget this
15 Using To Align Text l We have seen can use to align text. l Can also use... » Stands for divide or division. »Can create logical divisions of the text you are formatting and treat them as 1 group. »It really does nothing unless you use arguments. »Often use align attribute to with to adjust text to left, right or center. Note: a subtle different between using VS to align text. will give an extra line break. will not Note2: We will see again. Will see div again in various places, e.g., CSS Competency Alert: You need to know this !
16 Using To Align Text For example, My Home Page This is a test of center adjusted text. Of Coarse, this is a Right sample By the way I can use a align=left but I don't need it because the default is to put the text to the extreme left anyway. Still there is a difference between using paragraph and div tags. This text will be aligned right This text will be centered Text will be aligned left by default
17 Objectives l A short section on aligning text »right, center and left with l Creating ordered, bullet and definition lists »Creating Lists within lists l Creating hyperlinks »Creating regular links »Using relative addresses »Linking addresses
18 List Management 101 l HTML supports 3 different types »Ordered lists - numbered, 1. Baseball 2. Hotdgs 3. Apple Pie »Unordered lists - bullet lists, »Baseball »Hotdogs »Apple Pie »Definition Lists - indented lists without numbers or symbols Baseball A only played well in NY Hotdogs A substance resembling meat Apple Pie What Sara Lee now makes instead of Mom
19 Ordered Lists l This is an ordered list: 1. This is the first element 2. This is the second line 3. This is the third line To format above use the, tags Marks the start and end of the ordered list section... - Indicates start and end of each ordered list item. Note: How do you remember these? OL – stands for ordered list LI – stands for List Item Competency Alert: You need to know this !
20 Ordered Lists l For example: This is the first element This is the second line This is the third line l Would look like: 1. This is the first element 2. This is the second line 3. This is the third line List item has start & List is contained in &
21 An Ordered List Example An Ordered List Example 3. 4.Some different endings for Lord of the Rings Gollum gets the ring and defeats Saron himself! 8. 9.Frodo jumps in the lava with the ring Sauron gets the ring and there is no more middle earth
22 Attributes For Ordered Lists l Using Type = E.g., For 1,2,3 Ordering.....… For A,B,C Ordering For a,b,c ordering For Roman Numeral (E.g, I, II, III, IV) For small Roman Numerals (E.g., i, ii, iii, iv) Competency Alert: You need to know this !
23 Unordered Lists l Unordered Lists - These would be bullet lists, For example This is the first element This is the second line This is the third line l To format above use the following tags »... Starts & ends the ordered list section » … - Starts & ends each individual item.
24 Unordered Lists l For example, This is the first element This is the second line This is the third line l Would create the following This is the first element This is the second line This is the third line List is contained in & List item has start & Competency Alert: You need to know this !
25 Unordered Lists Use An Attribute TYPE= E.g., Creates a small disc list Solid circles Solid Squares
26 An Unordered List Example John Adams Some information about John Adams He was a moral man and was against slavery He was friends with Tom Jefferson and then bitter political enemies and then friends again He and Tomas Jefferson died on the same day!
27 Definition Lists Indented lists without any numbers or symbol in front of each item Baseball A only played well in NY Hotdogs A substance resembling meat Apple Pie What Sara Lee now makes instead of Mom ... A definition list … A definition term as part of a definition list - Level 1 term … - A Definition to definition term - level 2 term
28 An Unordered Example An Ordered List Example A few definitions Baseball 8. A only played well in NY Hotdogs 11. A substance resembling meat 12. Apple Pie 13. What Sara Lee now makes instead of Mom
29 Lists Within Lists l Lists Within Lists »You can put lists within lists if you wish creating an outline feel for your text. 1. Baseball White Sox Cubs 2. Football Bears l Corresponding HTML Code: Baseball> WhiteSox Cubs Football Bears Bullet list w/I numb list Separate Bullet list 1 Major Number list Note: It greatly helps to indent to keep things straight. Competency Alert: You need to know this !
30 A Roman Numeral Example Attention, attention, attention: Chicago Professional Sports Teams Baseball Cubs White Sox Football Bears? (well sort-of professional) basketball Bulls? (Well that is a stretch) Again It helps to indent when using lists within lists Lists Within Lists – Things can get confusing quickly Common Problem Area! People seem to forget this
31 Objectives l A short section on aligning text »right, center and left with l Creating ordered, bullet and definition lists »Creating Lists within lists l Creating hyperlinks »Creating regular links »Using relative addresses »Linking addresses
32 HTML Hyperlinks l Hyperlinks are the means which HTML lets you branch from 1 file to another. l You can link to any file, that includes but not limited to: »wav files, »picture files (gif, jpg, etc), »powerpoint files, »xcl (excel files) »html files. »Or even a link to preaddressed letter (mailto: learning.com)
33 Anatomy of a Hyperlink l HTML hyperlinks have the following format: Click Here Anchor tag can be used for links HREF attribute specifies Internet address of file to link to The “clickable text” Home Page Clickable text displayed on page Page to load when link is clicked Competency Alert: You need to know this !
34 A Link Example DePaul Link You can visit this course at the Indelible Website 4. YOu can also see lots of Disney Stuff at the Disney website
35 Note A common link problem l Sometimes, people forget the in an absolute address... Home Page l DON’T DO THIS. It will look for a file called in the current directory structure (which of coarse will not be there) Common Problem Area! People seem to forget this
36 Linking to non-HTML Files l Linking to non-html files if no different than linking to HTML files 1. DePaul Link 2. The picture can be found at this link 5. 6.
37 Specify links that are portable l Specifying complete URL works well but what happens when … »You need to change domain names or userids? –For example, move site from to »For example, suppose had a site with 3 files: myhome.html, moreinfo.html, and faq.html ) –myhome.html has link to moreinfo.html and faq.html –moreinfo.html and faq.html each link back to myhome.html [public_html] myhome.html moreinfo.html faq.html
38 Specify links that are portable If change domain name would have to change 2 lines in myhome.html and 1 each in moreinfo.html and faq.html. more info Frequently Asked Questions This document contains more information. Here is lots of stuff … Go back home click for home. Frequently asked questions... Go back home click for home. faq.html myhome.html moreinfo.html All 4 links in 3 different files must change if I move my site.
39 Soln: Use relative Internet addresses l Absolute addresses – Specify the complete address of the file to link to: »E.g., The file is here l Relative Address – Specify just file name (relative to current site.) »E.g., The file is here file.html l So can now move directories w/o link changes … Note leave off and domain name Competency Alert: You need to know this !
40 So Use Relative Addresses l So these pages can change directories or domains w/o changes moreinfo.html more info faq.html Frequently Asked Questions This document contains more information. Here is lots of stuff … Go back home myhome..html click for home. Frequently asked questions... Go back home click for home.myhome..html faq.html myhome.html moreinfo.html
41 Using Relative Links l So relative links work well when file to connect to are in the same directories … »But how to link from myfile.html to hw.html? [public_html] index.html \ myfile.html \ \ [homework] hw.html index.html and myfile.html are in public_html hw.html is in homework Note: Link from index.html to myfile.html: my personal file
42 Using Relative Links between directories... How link from myfile.html to hw.html? [public_html] index.html \ myfile.html \ \ [homework] hw.html l Precede the file to link to by a forward slash (‘/’) and directory name: my homework index.html and myfile.html are in public_html hw.html is in homework Link to this file that is in this directory Note: the forward slash is used on both UNIX a MircoSoft web servers Competency Alert: You need to know this !
43 Linking up … to the parent directory l To link to file in a parent directory (a directory above your current): »Use.. to access the parent directory. E.g., [public_html] index.html \ \ [homework] hw.html Link from hw.html to back index.html: my home page index.html is in public_html hw.html is in homework Go u p 1 level to parent Get this file in parent directory
44 Relative Link Examples... l Assume the following file structure [public_html] index.html / \ [labs] [homework] lab1.html hw1.html hw2.html l What is the URL of hw2.html if web server students.depaul.edu l How would you link from hw2.html to lab1.html? l How would you link from hw2.html to index.html? Lab1.html is in “labs” hw1.html and hw2.html is in homework Lab1 Competency Alert: You need to know this !
45 Objectives l A short section on aligning text »right, center and left with l Creating ordered, bullet and definition lists »Creating Lists within lists l Creating hyperlinks »Creating regular links »Using relative addresses »Linking addresses
46 Linking to a pre-addressed l A Link that when clicked, opens a page automatically to a pre-addressed mail form l General Format: Click here l For example: me! address Text to display Note: This construct is not often used in on Web sites. Why? It opens to a window using the users defined default client. If the user’s definition is wrong, no gets sent!
47 Summary l A short section on aligning text »right, center and left with l Creating ordered, bullet and definition lists »Creating Lists within lists l Creating hyperlinks »Creating regular links »Using relative addresses »Linking addresses
48 A Hyperlink Review... What file does each of the following load? 1. Click Here 2. pick one of these out 3. home. 4. Here are the results 5. The boys
49 Lab 2 - Hands-on Exercise
50 One Possible Solution A few of my favorite things Top three things Frodo should have done with the ring Not taken it from Bilbo Sold it on e-bay Bury it back in the lake After all it was there for hundreds of years I don't think Sauron could swim since he was a fireball
51 Lab 2 – b Create an HTML page that looks like: Put link to each homework And lab work for course. When click link automatically open your completed lab. You will need to continue to add to this page to link in each assignment as you finish it.