90 likes | 236 Views
Week 5 Lab Agenda. Lists. Lists – The 2 most common types:. Web Browser. unordered (bulleted) ordered (numbered) Lists can contain other tags. (<b>,<i>). This is a ordered list 1. item one 2. Item number 2 3. item #3 4. item 4 5. Item 5. source: Inge McLaurin.
E N D
Week 5 Lab Agenda • Lists Week 5 Lab
Lists – The 2 most common types: Web Browser • unordered (bulleted) • ordered (numbered) • Lists can contain other tags. (<b>,<i>) This is a ordered list 1. item one 2. Item number 2 3. item #3 4. item 4 5. Item 5 Week 5 Lab source: Inge McLaurin
Section of unorderList.html <UL> <LI>item</LI> <LI>other item</LI> <LI><B>bolditem</B></LI> <LI>item</LI> </UL> All Lists use a “List Type” • The list type for a unordered list is <UL> • The list type for an ordered list is <OL> • Every item in the list is contained by the tag <LI> • The list type has the optional attribute TYPE Week 5 Lab source: Inge McLaurin
Section of unorderList.html <UL TYPE=circle> <LI>item</LI> <LI>other item</LI> <LI><B>bolditem</B></LI> <LI>item</LI> </UL> For an Unordered List (bulleted list) the values for the optional “type” attribute are... circle, disc, square. (default = disc) Web Browser • item • other item • bolditem • item Week 5 Lab source: Inge McLaurin
Ordered lists – each item gets a number, letter, or roman numeral Section of orderList.html Web Browser <OL> <LI>item</LI> <LI>other item</LI> <LI><B>bolditem</B></LI> <LI>item</LI> </OL> • 1. item • 2. other item • 3. bolditem • 4. item Week 5 Lab source: Inge McLaurin
For an ordered list the values for the “type” attribute are... • <OL TYPE=“1”> numbers (default) • <OL TYPE=“A”> uppercase letters • <OL TYPE=“a”> lowercase letters • <OL TYPE=“I”> uppercase Roman Numerals • <OL TYPE=“i”> lowercase Roman Numerals. Week 5 Lab source: Inge McLaurin
Ordered list – the Start attribute • Makes an ordered list start at any number you want. • The attribute “START” can be used inside the <OL> tag or inside the <LI> tag. Week 5 Lab source: Inge McLaurin
Your turn - Nested List Week 5 Lab
How to prepare your Test 1 • You are allowed to bring 8 1/2 x 11 reference sheet, handwritten on one side only. • Click on “Prepare” button on my web Week 5 Lab source: Ling Zhu