SlideShare une entreprise Scribd logo
1  sur  12
Web Authoring

      Topic 8 –
 Listings in HTML
Objectives
Students should able to:
1 Use Web Authoring tool to create
various types of listing tags:
    • Un-numbered list;
    • Number list
2 Use Web Authoring tool to create
    • definition lists <dl>:
    • definition term <dt> ;
    • definition description <dd> tags.
Objectives
Students should able to:
3 Use Web Authoring tool to insert special
characters.

4 Use Web Authoring tool to insert
horizontal lines.
HTML List
The most common HTML lists are
ordered and unordered lists:
 An ordered list:        An unordered list:

 1.The first list item   • List item
 2.The second list       • List item
 item                    • List item
 3.The third list item
Un-ordered list
An unordered list starts with the <ul> tag.
Each list item starts with the <li> tag.
Example:
      <ul>
      <li>Coffee</li>
      <li>Milk</li>
      </ul>
Un-ordered list
For unordered list, type attributes
determine bullet style.

For unordered list, TYPE of LI can take
following values:
“disc”               <LI TYPE = “disc”>
“circle”             <LI TYPE = “circle”>
“square”             <LI TYPE = “square”>
Ordered List
An ordered list starts with the <ol> tag.
Each list item starts with the <li> tag.

       <ol>
       <li>Coffee</li>
       <li>Milk</li>
       </ol>
Ordered List
For ordered list, the TYPE attribute of LI
determines the numbering type:

1   Arabic numbers   1, 2, 3, ...       <LI TYPE = “1”>
a   lower alpha      a, b, c, ...       <LI TYPE = “a”>
A   upper alpha      A, B, C, ...       <LI TYPE = “A”>
i   lower roman       i, ii, iii, ...   <LI TYPE = “i”>
I   upper roman      I, II, III, ...    <LI TYPE = “I”>
Definition List
A definition list is a list of items, with a
description of each item.

The <dl> tag defines a definition list.

The <dl> tag is used in conjunction with <dt>
(defines the item in the list) and <dd>
(describes the item in the list):
Definition List
Example:
     <dl>
     <dt>Coffee</dt>
     <dd>- black hot drink</dd>
     <dt>Milk</dt>
     <dd>- white cold
     drink</dd>
     </dl>
Special Characters
Symbols

&         &amp;        ampersand
¢         &cent;           cent
©         &copy;        copyright
÷         &divide;        divide
>          &gt;       greater than
<           &lt;        less than
          &nbsp;     Non breaking
                     space
Special Characters
Making a horizontal rule, or line , is easier
than most people think.

It's one small, short, and simple command;
<hr>
    <hr width="75%">   Creates a horizontal
                       line of 75% window
                       width

Contenu connexe

En vedette

Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 htmlCK Yang
 
Web topic 4 style in html
Web topic 4  style in htmlWeb topic 4  style in html
Web topic 4 style in htmlCK Yang
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formattingCK Yang
 
Web topic 9 navigation and link
Web topic 9  navigation and linkWeb topic 9  navigation and link
Web topic 9 navigation and linkCK Yang
 
Web topic 10 2 web design basics
Web topic 10 2  web design basicsWeb topic 10 2  web design basics
Web topic 10 2 web design basicsCK Yang
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in htmlCK Yang
 
Web topic 7 html tags for links
Web topic 7  html tags for linksWeb topic 7  html tags for links
Web topic 7 html tags for linksCK Yang
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browserCK Yang
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibilityCK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validationCK Yang
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contentsCK Yang
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layoutCK Yang
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesCK Yang
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized websiteCK Yang
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meetCK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validationCK Yang
 
Web topic 14 cascading style sheets
Web topic 14  cascading style sheetsWeb topic 14  cascading style sheets
Web topic 14 cascading style sheetsCK Yang
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tagsCK Yang
 
Web topic 1 internet
Web topic 1  internetWeb topic 1  internet
Web topic 1 internetCK Yang
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and securityCK Yang
 

En vedette (20)

Web topic 2 html
Web topic 2  htmlWeb topic 2  html
Web topic 2 html
 
Web topic 4 style in html
Web topic 4  style in htmlWeb topic 4  style in html
Web topic 4 style in html
 
Web topic 5 text formatting
Web topic 5  text formattingWeb topic 5  text formatting
Web topic 5 text formatting
 
Web topic 9 navigation and link
Web topic 9  navigation and linkWeb topic 9  navigation and link
Web topic 9 navigation and link
 
Web topic 10 2 web design basics
Web topic 10 2  web design basicsWeb topic 10 2  web design basics
Web topic 10 2 web design basics
 
Web topic 12 tables in html
Web topic 12  tables in htmlWeb topic 12  tables in html
Web topic 12 tables in html
 
Web topic 7 html tags for links
Web topic 7  html tags for linksWeb topic 7  html tags for links
Web topic 7 html tags for links
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
 
Web topic 15 1 basic css layout
Web topic 15 1  basic css layoutWeb topic 15 1  basic css layout
Web topic 15 1 basic css layout
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 14 cascading style sheets
Web topic 14  cascading style sheetsWeb topic 14  cascading style sheets
Web topic 14 cascading style sheets
 
Web topic 3 html format tags
Web topic 3  html format tagsWeb topic 3  html format tags
Web topic 3 html format tags
 
Web topic 1 internet
Web topic 1  internetWeb topic 1  internet
Web topic 1 internet
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
 

Similaire à Web topic 8 listings in html (20)

lists-and-links.ppt
lists-and-links.pptlists-and-links.ppt
lists-and-links.ppt
 
lists-and-links.ppt
lists-and-links.pptlists-and-links.ppt
lists-and-links.ppt
 
html-lists-ordered-unordered-and-links.ppt
html-lists-ordered-unordered-and-links.ppthtml-lists-ordered-unordered-and-links.ppt
html-lists-ordered-unordered-and-links.ppt
 
Creating lists
Creating listsCreating lists
Creating lists
 
Html-list
Html-listHtml-list
Html-list
 
v3-html-list-210321161325.pdf
v3-html-list-210321161325.pdfv3-html-list-210321161325.pdf
v3-html-list-210321161325.pdf
 
Web forms and html (lect 3)
Web forms and html (lect 3)Web forms and html (lect 3)
Web forms and html (lect 3)
 
Html
HtmlHtml
Html
 
Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
 
Html introduction Part-2
Html introduction Part-2Html introduction Part-2
Html introduction Part-2
 
Use of Lists and Tables in HTML
Use of Lists and Tables in HTMLUse of Lists and Tables in HTML
Use of Lists and Tables in HTML
 
Web Development
Web DevelopmentWeb Development
Web Development
 
Handout4 lists
Handout4 listsHandout4 lists
Handout4 lists
 
Html tags-chart
Html tags-chartHtml tags-chart
Html tags-chart
 
Html training slide
Html training slideHtml training slide
Html training slide
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
Unit 2.5
Unit 2.5Unit 2.5
Unit 2.5
 
computer language - html lists
computer language - html listscomputer language - html lists
computer language - html lists
 
Html ppt
Html pptHtml ppt
Html ppt
 
Table tags 2
Table tags 2Table tags 2
Table tags 2
 

Plus de CK Yang

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class testCK Yang
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websitesCK Yang
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote siteCK Yang
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web formsCK Yang
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascriptCK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html formsCK Yang
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html formsCK Yang
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in cssCK Yang
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in cssCK Yang
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflowCK Yang
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layoutCK Yang
 
Web topic 13 html validation tools
Web topic 13  html validation toolsWeb topic 13  html validation tools
Web topic 13 html validation toolsCK Yang
 
Web topic 11 importance of html validation
Web topic 11  importance of html validationWeb topic 11  importance of html validation
Web topic 11 importance of html validationCK Yang
 

Plus de CK Yang (13)

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
 
Web topic 13 html validation tools
Web topic 13  html validation toolsWeb topic 13  html validation tools
Web topic 13 html validation tools
 
Web topic 11 importance of html validation
Web topic 11  importance of html validationWeb topic 11  importance of html validation
Web topic 11 importance of html validation
 

Web topic 8 listings in html

  • 1. Web Authoring Topic 8 – Listings in HTML
  • 2. Objectives Students should able to: 1 Use Web Authoring tool to create various types of listing tags: • Un-numbered list; • Number list 2 Use Web Authoring tool to create • definition lists <dl>: • definition term <dt> ; • definition description <dd> tags.
  • 3. Objectives Students should able to: 3 Use Web Authoring tool to insert special characters. 4 Use Web Authoring tool to insert horizontal lines.
  • 4. HTML List The most common HTML lists are ordered and unordered lists: An ordered list: An unordered list: 1.The first list item • List item 2.The second list • List item item • List item 3.The third list item
  • 5. Un-ordered list An unordered list starts with the <ul> tag. Each list item starts with the <li> tag. Example: <ul> <li>Coffee</li> <li>Milk</li> </ul>
  • 6. Un-ordered list For unordered list, type attributes determine bullet style. For unordered list, TYPE of LI can take following values: “disc” <LI TYPE = “disc”> “circle” <LI TYPE = “circle”> “square” <LI TYPE = “square”>
  • 7. Ordered List An ordered list starts with the <ol> tag. Each list item starts with the <li> tag. <ol> <li>Coffee</li> <li>Milk</li> </ol>
  • 8. Ordered List For ordered list, the TYPE attribute of LI determines the numbering type: 1 Arabic numbers 1, 2, 3, ... <LI TYPE = “1”> a lower alpha a, b, c, ... <LI TYPE = “a”> A upper alpha A, B, C, ... <LI TYPE = “A”> i lower roman i, ii, iii, ... <LI TYPE = “i”> I upper roman I, II, III, ... <LI TYPE = “I”>
  • 9. Definition List A definition list is a list of items, with a description of each item. The <dl> tag defines a definition list. The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list):
  • 10. Definition List Example: <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 11. Special Characters Symbols & &amp; ampersand ¢ &cent; cent © &copy; copyright ÷ &divide; divide > &gt; greater than < &lt; less than &nbsp; Non breaking space
  • 12. Special Characters Making a horizontal rule, or line , is easier than most people think. It's one small, short, and simple command; <hr> <hr width="75%"> Creates a horizontal line of 75% window width