Upcoming SlideShare
×

T.2.8.pp

244 views
203 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
244
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
1
0
Likes
0
Embeds 0
No embeds

No notes for slide
• Lesson 8 Overview
• Post one or more of these questions in an area where students can read them and allow time for students to respond to the questions. Discuss the student answers these questions.
• Introduce lists by discussing the types of lists that will be covered in this module.Unordered OrderedDefinition
• Unordered lists are similar to a bulleted list in word processing. These lists items are presented in no special order. If the order of the list is changed, it does not change the meaning of the information. For example, if you created a list of the subjects you are studying in school you can list them in any order. The order has nothing to do with the meaning of the list.
• To create an unordered list, two tags are needed. The &lt;ul&gt;…&lt;/ul&gt; tag is used to designate the beginning and ending of the unordered list, while the &lt;li&gt;…&lt;/li&gt; is used to identify the items to be placed in the list. Here is the code needed to create the list of school subjects: &lt;ul&gt; &lt;li&gt;Science&lt;/li&gt; &lt;li&gt;Math&lt;/li&gt; &lt;li&gt;Reading&lt;/li&gt; &lt;/ul&gt;
• Discuss ordered lists. Ordered lists use the numbering system and give an order to the items in the list. Changing this order would mean changing the meaning of the information in the list. For example, if you created a list of steps to make a peanut butter sandwich you would need to put the steps in a certain order. Changing the order would mean changing the outcome of the steps.
• To create an ordered list, only one of the tags needs to be changed. Instead of the &lt;ul&gt; tag a &lt;ol&gt; tag is used. The same &lt;li&gt; tag used to identify items in the list is used. Here is the code needed to create the steps in making a peanut butter sandwich. &lt;ol&gt; &lt;li&gt;Get a slice of bread.&lt;/li&gt; &lt;li&gt;Open a jar of peanut butter.&lt;/li&gt; &lt;li&gt;Spread peanut butter on the slice of bread with a knife.&lt;/li&gt; &lt;li&gt;Place another slice of bread on top.&lt;/li&gt; &lt;li&gt;Eat the sandwich.&lt;/li&gt; &lt;/ol&gt;
• To create an ordered list, only one of the tags needs to be changed. Instead of the &lt;ul&gt; tag a &lt;ol&gt; tag is used. The same &lt;li&gt; tag used to identify items in the list is used. Here is the code needed to create the steps in making a peanut butter sandwich. &lt;ol&gt; &lt;li&gt;Get a slice of bread.&lt;/li&gt; &lt;li&gt;Open a jar of peanut butter.&lt;/li&gt; &lt;li&gt;Spread peanut butter on the slice of bread with a knife.&lt;/li&gt; &lt;li&gt;Place another slice of bread on top.&lt;/li&gt; &lt;li&gt;Eat the sandwich.&lt;/li&gt; &lt;/ol&gt;
• A definition list is used when you want to define terms for the viewer. This list is a little different than unordered and ordered lists. A definition list includes two parts, the term and the definition. Of course, correct labeling of these items is very important.
• To create a definition list, a &lt;dl&gt;…&lt;/dl&gt; tag is needed to identify the beginning and ending of the list. Each term is identified by a &lt;dt&gt;…&lt;/dt&gt; tag and each definition is identified by a &lt;dd&gt;…&lt;/dd&gt; tag. It is important to include the definition with the term so that they appear correctly on your Web page. Here is the code for a definition list for a few terms from this module: &lt;dl&gt; &lt;dt&gt;format&lt;/dt&gt; &lt;dd&gt;the design and layout of a page&lt;/dd&gt; &lt;dt&gt;source code&lt;/dt&gt; &lt;dd&gt;the HTML code that creates a Web page&lt;/dd&gt; &lt;dt&gt;Web page&lt;/dt&gt; &lt;dd&gt;a file written in HTML or other Web publishing language&lt;/dd&gt; &lt;/dl&gt;
• Review concepts covered if needed with the students and discuss the practice activity.
• This is the last slide of the presentation.
• T.2.8.pp

1. 1. HTML ListsLesson 8Module 2: HTML Basics
2. 2. Lesson Overview In this lesson, you will learn to: 1. Create lists using HTML code. 2. Improve readability of a Web page using lists.
3. 3. Guiding Questions1. Find a Web page that uses a list. How does a list impact the readability of the page?2. Give 2 examples of how a list could be used in a Web page or Web site on another topic?
4. 4. Types of Lists Threetypes of lists which will be covered in this lesson: 1. Unordered lists 2. Ordered lists 3. Definition lists
5. 5. Unordered Lists Similarto bulleted lists in word processing Items in the list have no special order Changing the order would not change the meaning of the information  Example: A listing of your school subjects:  Science  Math  Reading
6. 6. Creating an Unordered List Start with the <ul>…</ul> tags to designate the beginning and ending of an unordered list Add <li>…</li> tags to identify items to be placed in the list To create our list of school subjects, use the following HTML code: <ul> <li>Science</li> <li>Math</li> <li>Reading</li> <ul>
7. 7. Ordered Lists Use a numbering or ordering system to create meaning Changing the order changes the meaning For example: A list of the steps to make a peanut butter sandwich.  Changing the order of the steps changes the outcome of the sandwich
8. 8. Creating an Ordered List Startwith the <ol>…</ol> tags to designate the beginning and ending of an ordered list The same <li> tag identifies items in the list
9. 9. Creating an Ordered List Code for making a peanut butter sandwich: <ol> <li>Get a slice of bread.</li> <li>Open a jar of peanut butter.</li> <li>Spread peanut butter on the slice of bread with a knife.</li> <li>Place another slice of bread on top.</li> <li>Eat the sandwich.</li> </ol>
10. 10. Definition Lists Used to define terms Different from unordered and ordered lists Has two parts 1. The term 2. The definition Labeling of the parts is very important
11. 11. Creating a Definition ListA <dl>…</dl> tag identifies the beginning and ending of the list A <dt>…</dt> tag identifies the terms A <dd>…</dd> tag identifies the definitions
12. 12. Creating a Definition List Example of definition list coding: <dl> <dt>format</dt> <dd>the design and layout of a page</dd> <dt>source code</dt> <dd>the HTML code that creates a Web page</dd> <dt>Web page</dt> <dd>a file written in HTML, or other Web publishing language</dd> </dl>
13. 13. Lesson Review Describe the code needed to create each of the following: 1. Unordered list 2. Ordered list 3. Definition list
14. 14. Practice: Lists1. Create the following changes in your “Tags and Attributes” Web page:  An unordered list  An ordered list  A definition list2. Challenge Activity: Add underlining as appropriate.