This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Lists and Links


Learning Objectives

  • Arrange several items in an unordered list
  • Arrange several items in an ordered list
  • Distinguish ordered and unordered lists
  • Describe similarities between ordered and unordered lists
  • Create a hyperlink to a section within your document
  • Link your document to external content
  • Summarize the purpose of hyperlinks (anchor tags)
  • Create a diagram depicting two hyperlinked documents
  • Share your diagram with this study group

Task Materials

Lists

Lets take a look at ways to itemize lists, link to other documents, and insert multimedia into our pages.

Lists come in two flavors ordered and unordered. Ordered lists flow in sequence while unordered lists have no required, or meaningful, order. For example, a shopping list may be considered as an unordered list as you are not concerened with the order in which you find the items in the store.

The <ol> tag is used to create ordered lists, while the <ul> tag denotes unordered lists.

Lets create two lists one will be a grocery list and the other wil be instructions describing how to check out at the market.

Unordered List

First the grocery list. Creating an unordered list has three steps:

  1. Open the unordered list: <ul>
  2. List items are surrounded by <li> tags
  3. Close the unordered list: </ul>

Lets see an unordered list in its entirety:

<ul>
  <li>Asparigus</li>
  <li>Milk</li>
  <li>Tempeh</li>
</ul>

Ordered List

Secondly, we will list the checkout steps.

  1. Open the ordered list: <ol>
  2. Insert the steps as list items: <li>Item</li>
  3. Close the ordered list tag: </ol>
<ol>
  <li>Unload your shopping basket</li>
  <li>Greet the cashier</li>
  <li>Smile at the cute baby next to you in line</li>
  <li>Pay the cashier</li>
  <li>Gather your groceries and leave</li>
</ol>

Hyperlinks

Hyperlinks are interconnections between pages and resources on the World Wide Web. Creating hyperlinks requires another aspect of HTML tags called attributes. Attributes are descriptive text elements within the HTML tag enclosures (the < & >). Attributes are associated with values. For example:

<tag attribute="value">

The anchor tag <a> is how we create links both within a document and to external resources. An anchor tag has an attribute called 'href' which stands for hypertext reference. The hypertext reference is the internal or external element to which the link points. For example:

<a href="http://mozilla.org">Mozilla Website</a>

This link points to mozilla.org with the helpful link text "Mozilla Website".

Task Discussion


  • Angel_hero   Aug. 16, 2012, 10:09 p.m.
  • al read   Aug. 16, 2012, 10:11 p.m.
    In Reply To:   Angel_hero   Aug. 16, 2012, 10:09 p.m.
    Thanks for your message. I will be out of the office on annual leave until Monday 20th August If your enquiry is urgent, please SMS me on my mobile. Kind regards, Alan Read Head of Learning Technologies Learning Technologies Group Pearson UK +44 (0) 7703 750913 This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723
  • Paolo Vagnini   Aug. 14, 2012, 8:49 a.m.

    My page is here.

  • al read   Aug. 14, 2012, 8:51 a.m.
    In Reply To:   Paolo Vagnini   Aug. 14, 2012, 8:49 a.m.
    Thanks for your message. I will be out of the office on annual leave until Monday 20th August If your enquiry is urgent, please SMS me on my mobile. Kind regards, Alan Read Head of Learning Technologies Learning Technologies Group Pearson UK +44 (0) 7703 750913 This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723
  • saravanan   Aug. 14, 2012, 9:40 a.m.
    In Reply To:   Paolo Vagnini   Aug. 14, 2012, 8:49 a.m.

    definitely a call to learn

  • al read   Aug. 14, 2012, 9:43 a.m.
    In Reply To:   saravanan   Aug. 14, 2012, 9:40 a.m.
    Thanks for your message. I will be out of the office on annual leave until Monday 20th August If your enquiry is urgent, please SMS me on my mobile. Kind regards, Alan Read Head of Learning Technologies Learning Technologies Group Pearson UK +44 (0) 7703 750913 This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723
  • saravanan   Aug. 13, 2012, 3:27 a.m.
  • al read   Aug. 13, 2012, 3:29 a.m.
    In Reply To:   saravanan   Aug. 13, 2012, 3:27 a.m.
    Thanks for your message. I will be out of the office on annual leave until Monday 20th August If your enquiry is urgent, please SMS me on my mobile. Kind regards, Alan Read Head of Learning Technologies Learning Technologies Group Pearson UK +44 (0) 7703 750913 This email was sent by a company owned by Pearson plc, registered office at 80 Strand, London WC2R 0RL. Registered in England and Wales with company number 53723
  • Joanne   Aug. 5, 2012, 5:13 p.m.
  • C.hamiltonjohnson   Aug. 1, 2012, 9:12 p.m.

    Here is the required work. I hope you find it satisfactory.

  • Joanne   Aug. 5, 2012, 5:10 p.m.
    In Reply To:   C.hamiltonjohnson   Aug. 1, 2012, 9:12 p.m.

    You must have been hungry when you did this task!

  • Marco Antonio González Gómez-Caro   July 29, 2012, 7:47 a.m.

    Here is my task. I expect your comments.

    https://thimble.webmaker.org/p/xki

     

    Thank you!

  • Motlar   July 27, 2012, 5 a.m.

    My completed page for the second task: https://thimble.webmaker.org/p/8nk

  • PoweredByLinux   July 26, 2012, 1:42 a.m.

    Here you guys go! Feel free to correct me if I did anything wrong. I couldn't figure out how to get HTML Pad to show the code as the browser would see it. It would just show me the raw HTML I typed out instead.

  • sjasti   July 26, 2012, 2:08 a.m.
    In Reply To:   PoweredByLinux   July 26, 2012, 1:42 a.m.

    Hi, 

    If you have the html pad url just remove /edit at the end to see the HTML as you see in browser

    Example - 

    http://htmlpad.org/samplehtml/edit - HTML Code

    http://htmlpad.org/samplehtml - As you see in browser

  • PoweredByLinux   July 27, 2012, 12:08 a.m.
    In Reply To:   sjasti   July 26, 2012, 2:08 a.m.

    Well boy do I feel really stupid now haha. Thank you for such a quick response, such a simple fix too. I hope this tip helps somebody else out.

    Thank you again sir!

  • sjasti   July 21, 2012, 5:45 p.m.
  • chinnan   July 7, 2012, 7:38 a.m.
  • mtillson   July 7, 2012, 2:03 a.m.

    Lists and links along with the basic tags

    http://htmlpad.org/Tillson/

     

  • Jasper.dg   July 4, 2012, 8:03 a.m.
  • caroline   July 3, 2012, 2:17 p.m.
  • Jasper.dg   July 4, 2012, 7:59 a.m.
    In Reply To:   caroline   July 3, 2012, 2:17 p.m.

    Not very correctly coded...

    1. The <meta charset> is outside the <head> section;
    2. Your hyperlink is outside the <body> section;
    3. The <body> endtag is used twice.
  • caroline   July 19, 2012, 1:16 p.m.
    In Reply To:   Jasper.dg   July 4, 2012, 7:59 a.m.

    Hey, thanks for the correction :)

    Here we go again:

    http://htmlpad.org/newmilklist/

  • mcattack   June 27, 2012, 11:33 a.m.

    wola! http://htmlpad.org/lesson3/#bottom

  • hamilton mena quejada   June 22, 2012, 1:10 p.m.

    Actualización de la pagina anteriormente enviada.

    http://htmlpad.org/listandlinkshmq/

  • hamilton mena quejada   June 22, 2012, 12:53 p.m.

    Esta es el resultado del aprendizaje en esta segunda clase.

    http://htmlpad.org/listandlinkshmq/

  • oscar   June 18, 2012, 7:12 p.m.

    here is my task

     

  • John   June 12, 2012, 10:59 p.m.
  • Toss   May 25, 2012, 8:22 p.m.
  • ctk974   May 14, 2012, 1:07 a.m.