SlideShare a Scribd company logo
Creating Lists
Creating Lists
• Lists are a part of everyday life. To-do lists determine what to get
done. Navigational routes provide turn-by-turn lists of directions.
Recipes provide lists of ingredients and lists of instructions. With a list
for nearly everything, it’s easy to understand why they are also
popular online.
• When we want to use a list on a website, HTML provides three
different types to choose from: unordered, ordered, and description
lists. Choosing which type of list to use—or whether to use a list at
all—comes down to the content and the most semantically
appropriate option for displaying that content
Unordered Lists
• An unordered list is simply a list of related items whose order does
not matter. Creating an unordered list in HTML is accomplished using
the unordered list block-level element, <ul>. Each item within an
unordered list is individually marked up using the list item element,
<li>.
example
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
Ordered HTML Lists
An ordered list starts with the <ol> tag. Each list item starts with the
<li> tag.
The list items will be marked with numbers.
<h2>Unordered List with Default Bullets</h2>
<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>
Ordered HTML Lists
The Type Attribute
A type attribute can be added to an ordered list, to define the type of the marker:
Type Description
type="1" The list items will be numbered with
numbers (default)
type="A" The list items will be numbered with
uppercase letters
type="a" The list items will be numbered with
lowercase letters
type="I" The list items will be numbered with
uppercase roman numbers
type="i" The list items will be numbered with
lowercase roman numbers
Ordered HTML Lists (Numbers)
<h2>Unordered List with Default Bullets</h2>
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Upper Case:
<h2>Unordered List with Default Bullets</h2>
<ol type="A">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Lower Case:
<h2>Unordered List with Default Bullets</h2>
<ol type="a">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Roman Upper Case:
<h2>Unordered List with Default Bullets</h2>
<ol type="I">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Roman Lower Case:
• <h2>Unordered List with Default Bullets</h2>
<ol type="i">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
HTML Description Lists
• A description list, is a list of terms, with a description of each term.
• The <dl> tag defines a description list.
• The <dt> tag defines the term (name), and the <dd> tag defines the
data (description).
Description Lists
Description List:
<h2>Unordered List with Default Bullets</h2>
<dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
Nested HTML Lists
List can be nested (lists inside lists).
<ol>
<li>Walk the dog</li>
<li>Fold laundry</li>
<li>
Go to the grocery and buy:
<ul>
<li>Milk</li>
<li>Bread</li>
<li>Cheese</li>
</ul>
</li>
<li>Mow the lawn</li>
<li>Make dinner</li>
</ol>
Horizontal Lists
HTML lists can be styled in many different ways with CSS.
One popular way, is to style a list to display horizontally:
• <h2>Horizontal List</h2>
• <ul id="menu">
• <li>Apples</li>
• <li>Bananas</li>
• <li>Lemons</li>
• <li>Oranges</li>
• </ul>
Chapter Summary
1. Use the HTML <ul> element to define an unordered list
2. Use the HTML style attribute to define the bullet style
3. Use the HTML <ol> element to define an ordered list
4. Use the HTML type attribute to define the numbering type
5. Use the HTML <li> element to define a list item
6. Use the HTML <dl> element to define a description list
7. Use the HTML <dt> element to define the description term
8. Use the HTML <dd> element to define the description data
9. Lists can be nested inside lists
10. List items can contain other HTML elements
11. Use the CSS property display:inline to display a list horizontally
html - font
• The <font> tag provides no real functionality by itself, but with the
help of a few attributes, this tag is used to change the style, size, and
color of HTML text elements. The size, color, and face attributes can
be used all at once or individually, providing users with the ability to
create dynamic font styles for any HTML element.
html - font size
Set the size of your font with size. The range of accepted values goes
from 1 -- the smallest, to 7 -- the largest. The default size of a font is 3.
• HTML Font Size Code:
<p>
<font size="5">Here is a size 5 font</font>
</p>
html - font color
HTML Font Color Code:
<font color="#990000">This text is hex color #990000</font>
<br />
<font color="red">This text is red</font>
html - font face
Choose a different font face by specifying any font you have installed. Font face is
synonymous with font type. As a web designer, be aware that if you specify a
custom font type and users viewing the page don't have the exact same font
installed, they will not be able to see it. Instead the chosen font will default to
Times New Roman. To reduce the risk of running into this situation, you may
provide a list of several fonts with the face attribute, such as outlined below.
HTML Font Face Code:
<p>
<font face="Georgia, Arial, Garamond">This paragraph
has had its font...</font>
</p>
beautiful first letter style
Customize your fonts to achieve any desired look.
HTML Code:
<p><font size="7" face="Georgia, Arial" color="maroon">W</font>elcome To
South Africa The Rainbow Nation.</p>

More Related Content

PPT
Citing Sources with easybib.com
PPTX
Cit 230 internal css
PPTX
Turorial css
PDF
Website Structure Games Class #2
PPTX
How to Use EBSCO Business Searching Interface
PPTX
Introduction to CSS
DOCX
Html
PPTX
Html notes with Examples
Citing Sources with easybib.com
Cit 230 internal css
Turorial css
Website Structure Games Class #2
How to Use EBSCO Business Searching Interface
Introduction to CSS
Html
Html notes with Examples

What's hot (7)

DOCX
Web pract
PDF
APA Format
PDF
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
PPTX
Web Development - Lecture 2
PPTX
CSS (Cascading Style Sheet)
KEY
Scientific writing pro : Office word & Mendeley (dani r firman)
Web pract
APA Format
Girl Develop It Cincinnati: Intro to HTML/CSS Class 2
Web Development - Lecture 2
CSS (Cascading Style Sheet)
Scientific writing pro : Office word & Mendeley (dani r firman)
Ad

Similar to Creating lists (20)

PPTX
HTML LIST
PPT
Web Development
PPTX
FYBSC IT Web Programming Unit I HTML 5 & andcss
PPTX
1-24-24 INFO 3205.pptx
PPTX
HTML Lists HTML FormsHTML FormsHTML For.pptx
PPT
HTML List, Nesting List & Hyperlinks.ppt
PPT
Html ppt by Fathima faculty Hasanath college for women bangalore
PPTX
Web topic 8 listings in html
PPTX
Learn html Basics
PPTX
HTML.pptx
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
DOC
Handout4 lists
POTX
Introduction to php 2
PPTX
Html link and list tags
PPTX
1-22-24 INFO 2106.pptx
PPTX
UNIT 3 presentation for subj ITWS 01.pptx
PPTX
Week 2 html
PPTX
HTML 5 Basics Part Two
HTML LIST
Web Development
FYBSC IT Web Programming Unit I HTML 5 & andcss
1-24-24 INFO 3205.pptx
HTML Lists HTML FormsHTML FormsHTML For.pptx
HTML List, Nesting List & Hyperlinks.ppt
Html ppt by Fathima faculty Hasanath college for women bangalore
Web topic 8 listings in html
Learn html Basics
HTML.pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
Handout4 lists
Introduction to php 2
Html link and list tags
1-22-24 INFO 2106.pptx
UNIT 3 presentation for subj ITWS 01.pptx
Week 2 html
HTML 5 Basics Part Two
Ad

More from nobel mujuji (15)

PPTX
Table structure introduction
PPTX
Positioning text
PPTX
Inserting imagesin html
PPTX
Html images and html backgrounds
PPTX
Html hyperlinks
PPTX
Html frames
PPTX
Html forms
PPTX
Html character entities
PPTX
Horizontal lines!
PPT
Frames tables forms
PPTX
Chapter 2 introduction to html5
PPTX
Chapter 1 one html
PPTX
Chapter 1 html
PPTX
Adding text in html
PPTX
Javascript conditional statements
Table structure introduction
Positioning text
Inserting imagesin html
Html images and html backgrounds
Html hyperlinks
Html frames
Html forms
Html character entities
Horizontal lines!
Frames tables forms
Chapter 2 introduction to html5
Chapter 1 one html
Chapter 1 html
Adding text in html
Javascript conditional statements

Recently uploaded (20)

PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PDF
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
PPTX
rapid fire quiz in your house is your india.pptx
PDF
Urban Design Final Project-Site Analysis
PDF
SEVA- Fashion designing-Presentation.pdf
PPTX
12. Community Pharmacy and How to organize it
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PDF
Phone away, tabs closed: No multitasking
DOCX
The story of the first moon landing.docx
PDF
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PPTX
building Planning Overview for step wise design.pptx
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PDF
Urban Design Final Project-Context
PPTX
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Integrated-2D-and-3D-Animation-Bridging-Dimensions-for-Impactful-Storytelling...
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
rapid fire quiz in your house is your india.pptx
Urban Design Final Project-Site Analysis
SEVA- Fashion designing-Presentation.pdf
12. Community Pharmacy and How to organize it
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Phone away, tabs closed: No multitasking
The story of the first moon landing.docx
Skskkxiixijsjsnwkwkaksixindndndjdjdjsjjssk
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
building Planning Overview for step wise design.pptx
Fundamental Principles of Visual Graphic Design.pptx
Urban Design Final Project-Context
LITERATURE CASE STUDY DESIGN SEMESTER 5.pptx
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Wisp Textiles: Where Comfort Meets Everyday Style

Creating lists

  • 2. Creating Lists • Lists are a part of everyday life. To-do lists determine what to get done. Navigational routes provide turn-by-turn lists of directions. Recipes provide lists of ingredients and lists of instructions. With a list for nearly everything, it’s easy to understand why they are also popular online. • When we want to use a list on a website, HTML provides three different types to choose from: unordered, ordered, and description lists. Choosing which type of list to use—or whether to use a list at all—comes down to the content and the most semantically appropriate option for displaying that content
  • 3. Unordered Lists • An unordered list is simply a list of related items whose order does not matter. Creating an unordered list in HTML is accomplished using the unordered list block-level element, <ul>. Each item within an unordered list is individually marked up using the list item element, <li>.
  • 5. Ordered HTML Lists An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. The list items will be marked with numbers. <h2>Unordered List with Default Bullets</h2> <ol> <li>Coffee</li> <li>Milk</li> </ol>
  • 6. Ordered HTML Lists The Type Attribute A type attribute can be added to an ordered list, to define the type of the marker: Type Description type="1" The list items will be numbered with numbers (default) type="A" The list items will be numbered with uppercase letters type="a" The list items will be numbered with lowercase letters type="I" The list items will be numbered with uppercase roman numbers type="i" The list items will be numbered with lowercase roman numbers
  • 7. Ordered HTML Lists (Numbers) <h2>Unordered List with Default Bullets</h2> <ol type="1"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 8. Upper Case: <h2>Unordered List with Default Bullets</h2> <ol type="A"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 9. Lower Case: <h2>Unordered List with Default Bullets</h2> <ol type="a"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 10. Roman Upper Case: <h2>Unordered List with Default Bullets</h2> <ol type="I"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 11. Roman Lower Case: • <h2>Unordered List with Default Bullets</h2> <ol type="i"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol>
  • 12. HTML Description Lists • A description list, is a list of terms, with a description of each term. • The <dl> tag defines a description list. • The <dt> tag defines the term (name), and the <dd> tag defines the data (description).
  • 13. Description Lists Description List: <h2>Unordered List with Default Bullets</h2> <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 14. Nested HTML Lists List can be nested (lists inside lists). <ol> <li>Walk the dog</li> <li>Fold laundry</li> <li> Go to the grocery and buy: <ul> <li>Milk</li> <li>Bread</li> <li>Cheese</li> </ul> </li> <li>Mow the lawn</li> <li>Make dinner</li> </ol>
  • 15. Horizontal Lists HTML lists can be styled in many different ways with CSS. One popular way, is to style a list to display horizontally:
  • 16. • <h2>Horizontal List</h2> • <ul id="menu"> • <li>Apples</li> • <li>Bananas</li> • <li>Lemons</li> • <li>Oranges</li> • </ul>
  • 17. Chapter Summary 1. Use the HTML <ul> element to define an unordered list 2. Use the HTML style attribute to define the bullet style 3. Use the HTML <ol> element to define an ordered list 4. Use the HTML type attribute to define the numbering type 5. Use the HTML <li> element to define a list item 6. Use the HTML <dl> element to define a description list 7. Use the HTML <dt> element to define the description term 8. Use the HTML <dd> element to define the description data 9. Lists can be nested inside lists 10. List items can contain other HTML elements 11. Use the CSS property display:inline to display a list horizontally
  • 18. html - font • The <font> tag provides no real functionality by itself, but with the help of a few attributes, this tag is used to change the style, size, and color of HTML text elements. The size, color, and face attributes can be used all at once or individually, providing users with the ability to create dynamic font styles for any HTML element.
  • 19. html - font size Set the size of your font with size. The range of accepted values goes from 1 -- the smallest, to 7 -- the largest. The default size of a font is 3. • HTML Font Size Code: <p> <font size="5">Here is a size 5 font</font> </p>
  • 20. html - font color HTML Font Color Code: <font color="#990000">This text is hex color #990000</font> <br /> <font color="red">This text is red</font>
  • 21. html - font face Choose a different font face by specifying any font you have installed. Font face is synonymous with font type. As a web designer, be aware that if you specify a custom font type and users viewing the page don't have the exact same font installed, they will not be able to see it. Instead the chosen font will default to Times New Roman. To reduce the risk of running into this situation, you may provide a list of several fonts with the face attribute, such as outlined below. HTML Font Face Code: <p> <font face="Georgia, Arial, Garamond">This paragraph has had its font...</font> </p>
  • 22. beautiful first letter style Customize your fonts to achieve any desired look. HTML Code: <p><font size="7" face="Georgia, Arial" color="maroon">W</font>elcome To South Africa The Rainbow Nation.</p>