SlideShare ist ein Scribd-Unternehmen logo
1 von 26
HTML
                        Lesson Five –
Indenting and Creating Spaces with   and Creating Lists




                     http://www.htmltutorials.ca/lesson5.htm
 
• the nbsp stands for
  – non-breaking space character
• simply known as the space character
• Note that the "nbsp" must be in lower case
  letters.
•   will not work.
• The character "&" is pronounced
  "ampersand"
                http://www.htmltutorials.ca/lesson5.htm
• browsers also read commands between the
  "&" and ";" (that is, between the ampersand
  and semicolon)
• Ampersand commands are used to create
  special characters not found on the keyboard
  such as the copyright symbol, the trademark
  symbol, the symbol for degrees, etc.


                http://www.htmltutorials.ca/lesson5.htm
• popular symbols and their ampersand
    commands that work in all browsers

                                                           Quote       "    "
Non-breaking space            
                                                       Apostrophe      '    '
    Copyright        ©       ©
                                                            Cent       ¢    ¢
    Trademark        ™       ™
                                                            Euro       €
                                                                           € or
                                                                           €
    Registered       ®   ® or ®               One quarter     ¼    ¼
                                                          One half     ½    ½
    Less Than        <         &lt;
                                                     Three quarters    ¾    &#190;
   Greater Than      >         &gt;                       Degrees      °    &#176;
   Ampersand         &       &amp;                 Larger middle dot   •    &#149;


                           http://www.htmltutorials.ca/lesson5.htm
Exercises
• Switch to Notepad




               http://www.htmltutorials.ca/lesson5.htm
CREATING A LIST
There are three types of lists:
  1. UNORDERED LISTS (uses bullets)
  2. ORDERED LISTS (uses numbers)
  3. DEFINITION LISTS (no numbers or bullets).


NOTE: Break and paragraph tags can still be use



                 http://www.htmltutorials.ca/lesson5.htm
CREATING AN UNORDERED LIST
• Unordered Lists are bulleted lists.
• You use the opening tag <UL> to indicate the
  beginning and </UL> for the end of an
  Unordered List.
• Each item in your bulleted list must begin with
  the tag <LI>
• <LI> stands for List Item.


                http://www.htmltutorials.ca/lesson5.htm
CREATING AN UNORDERED LIST
<HTML>
  <HEAD> <TITLE>SAFETY TIPS </TITLE> </HEAD>
     <BODY>
           <H2 ALIGN="CENTER">SAFETY TIPS FOR
     CANOEISTS</H2>
           <UL>
           <LI>Be able to swim
                 <LI>Wear a life jacket at all times
           <LI>Don't stand up or move around
           <LI>Don't overexert yourself
           <LI>Use a bow light at night
           </UL>
     </BODY>
</HTML>

                   http://www.htmltutorials.ca/lesson5.htm
CREATING AN UNORDERED LIST WITHIN A LIST
<HTML>
 <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD>
  <BODY>
   <H2 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H2>
     <UL>
      <LI>Be able to swim
      <LI>Wear a life jacket at all times
      <LI>Don't stand up or move around. If canoe tips,
         <UL>
         <LI>Hang on to the canoe
         <LI>Use the canoe for support and
         <LI>Swim to shore
         </UL>
      <LI>Don't overexert yourself
      <LI>Use a bow light at night
      </UL>
  </BODY></HTML>
                    http://www.htmltutorials.ca/lesson5.htm
• for each <UL>tag, you need a </UL> tag.
• If you want lists within lists within lists, just
  remember to follow the LIFO principle (Last In,
  First Out principle)




                 http://www.htmltutorials.ca/lesson5.htm
CREATING AN ORDERED LIST (A NUMBERED LIST)


• You treat an Ordered List in the same way as
  an Unordered List, except that you use <OL>
  instead of <UL>.
• OL stands for Ordered List.




                http://www.htmltutorials.ca/lesson5.htm
<HTML>
  <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD>
   <BODY>
     <H2 ALIGN="CENTER">SAFETY TIPS FOR
       CANOEISTS</H2>
     <OL>
     <LI>Be able to swim
     <LI>Wear a life jacket at all times
     <LI>Don't stand up or move around
     <LI>Don't overexert yourself
     <LI>Use a bow light at night
     </OL>
  </BODY></HTML>
               http://www.htmltutorials.ca/lesson5.htm
COMBINING UNORDERED AND ORDERED LISTS
<HTML>
  <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD>
   <BODY>
    <H2 ALIGN="CENTER">SAFETY TIPS FOR
      CANOEISTS</H2>
       <OL>
       <LI>Be able to swim
       <LI>Wear a life jacket at all times
       <LI>Don't stand up or move around. If canoe tips,
         <UL>
         <LI>Hang on to the canoe
         <LI>Use the canoe for support and
         <LI>Swim to shore
         </UL>
      <LI>Don't overexert yourself
      <LI>Use a bow light at night
      </OL>
  </BODY></HTML>
                     http://www.htmltutorials.ca/lesson5.htm
CREATING A DEFINITION LIST (NO BULLETS OR NUMBERS)
<HTML>
  <HEAD> <TITLE>TRIP PLANNING</TITLE> </HEAD> <BODY>
  <H2 ALIGN="CENTER">TRIP PLANNING</H2><HR>
  <DL>
  <DT>Winter
    <DD>Write for maps and travel brochures
    <DD>Read camping books
    <DD>Prepare budget and equipment list
  <DT>Spring
    <DD>Visit camping shows
    <DD>Buy essential items
    <DD>Make reservations
  <DT>Day before trip
    <DD>Load vehicle
  </DL>
  </BODY></HTML>
                     http://www.htmltutorials.ca/lesson5.htm
• DL stands for Definition List
• <DL> denotes the beginning of a of a
  Definition List and </DL> denotes the end of
  a Definition List.
• DT stands for Definiton Term.
• The DT tag may only contain text-level
  elements (definition of text-level elements
  given below).

                http://www.htmltutorials.ca/lesson5.htm
• The DT tag has an optional end tag (</DT>)
• DD stands for Definition Description.
• Note that the second tier is indented from the
  first tier and that the second tier describes the
  items in the first tier.
• That is, the second tier is a description of the
  first tier.


                 http://www.htmltutorials.ca/lesson5.htm
• DD may contain block-level elements as well
  as text-level elements.
• There are two types of elements in the BODY
  section of a web page
  1. block-level elements
  2. text-level elements.




                 http://www.htmltutorials.ca/lesson5.htm
• Elements that generate a new paragraph such
  as a header tag (for example <H1>) or a
  paragraph tag (<P>), are called block-level
  elements.
• Text-level elements are elements that do not
  generate a new paragraph (examples are
  <EM> and <STRONG>).


               http://www.htmltutorials.ca/lesson5.htm
Exercise
• Try to copy the format of this example




                http://www.htmltutorials.ca/lesson5.htm
CHANGING THE STYLE OF YOUR BULLETS AND NUMBERS
• CHANGING THE APPEARANCE OF BULLETS
Here is the way to change your bullets to
  SQUARE bullets: <UL TYPE="square">
  <LI>item 1
  <LI>item 2
  <LI>item 3
  </UL>




               http://www.htmltutorials.ca/lesson5.htm
• You can also change the appearance of your
  bullets to hollow or open bullets with:
  – <UL TYPE="circle">
• To get the round solid bullets back again
  (which is the default value), use:
  – <UL TYPE="disc">




                 http://www.htmltutorials.ca/lesson5.htm
CHANGING THE APPEARANCE OF AN ORDERED LIST
 • We can also change the ordered list to
   something other than Arabic numbers (1, 2, 3,
   etc.). For example, to change to a capitalized
   Roman Numeral numbered list, it is:
   – <OL TYPE="I">
     <LI>item 1
     <LI>item 2
     <LI>item 3
     </OL>




                 http://www.htmltutorials.ca/lesson5.htm
• <OL TYPE="i"> for lower case Roman
  Numerals (i, ii, iii, iv, and so on).
  <OL TYPE="A"> for capital letters (A, B, C, and
  so on).
  <OL TYPE="a"> for lower case letters (a, b, c,
  and so on).




                 http://www.htmltutorials.ca/lesson5.htm
• The START attribute is used to begin an Ordered
  List with any number or letter. For example,
• <OL START="3">
• as in:
• <OL START="3">
  <LI>item 3
  <LI>item 4
  <LI>item 5
  </OL> ,
                 http://www.htmltutorials.ca/lesson5.htm
• Also, try the following if your browser
  supports these attributes:
  – <OL TYPE="I" START="3">
    will begin numbering with Roman Numeral III.

  – <OL TYPE="i" START="3">
    will begin numbering with Roman Numeral iii.



                 http://www.htmltutorials.ca/lesson5.htm
• The following example numbers the statements
  in the list as 1, 2, 3, 7, 8 as shown below the
  document.
• <OL>
  <LI>This is List Item 1
  <LI>This is List Item 2
  <LI>This is List Item 3
  <LI VALUE="7">This is List Item 7
  <LI>This is List Item 8
  </OL>

                 http://www.htmltutorials.ca/lesson5.htm

Weitere ähnliche Inhalte

Ähnlich wie Lesson 5 indenting and creating spaces

Ähnlich wie Lesson 5 indenting and creating spaces (6)

Testing Merb
Testing MerbTesting Merb
Testing Merb
 
Cooking with Chef
Cooking with ChefCooking with Chef
Cooking with Chef
 
Office
 Office Office
Office
 
Struds overview
Struds overviewStruds overview
Struds overview
 
Callimachus introduction 20111021
Callimachus introduction 20111021Callimachus introduction 20111021
Callimachus introduction 20111021
 
MoneyBird - The Rails Side
MoneyBird - The Rails SideMoneyBird - The Rails Side
MoneyBird - The Rails Side
 

Kürzlich hochgeladen

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 

Kürzlich hochgeladen (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

Lesson 5 indenting and creating spaces

  • 1. HTML Lesson Five – Indenting and Creating Spaces with &nbsp; and Creating Lists http://www.htmltutorials.ca/lesson5.htm
  • 2. &nbsp; • the nbsp stands for – non-breaking space character • simply known as the space character • Note that the "nbsp" must be in lower case letters. • &NBSP; will not work. • The character "&" is pronounced "ampersand" http://www.htmltutorials.ca/lesson5.htm
  • 3. • browsers also read commands between the "&" and ";" (that is, between the ampersand and semicolon) • Ampersand commands are used to create special characters not found on the keyboard such as the copyright symbol, the trademark symbol, the symbol for degrees, etc. http://www.htmltutorials.ca/lesson5.htm
  • 4. • popular symbols and their ampersand commands that work in all browsers Quote " &quot; Non-breaking space &nbsp; Apostrophe ' &#39; Copyright © &copy; Cent ¢ &#162; Trademark ™ &#153; Euro € &euro; or &#8364; Registered ® &reg; or &#174; One quarter ¼ &#188; One half ½ &#189; Less Than < &lt; Three quarters ¾ &#190; Greater Than > &gt; Degrees ° &#176; Ampersand & &amp; Larger middle dot • &#149; http://www.htmltutorials.ca/lesson5.htm
  • 5. Exercises • Switch to Notepad http://www.htmltutorials.ca/lesson5.htm
  • 6. CREATING A LIST There are three types of lists: 1. UNORDERED LISTS (uses bullets) 2. ORDERED LISTS (uses numbers) 3. DEFINITION LISTS (no numbers or bullets). NOTE: Break and paragraph tags can still be use http://www.htmltutorials.ca/lesson5.htm
  • 7. CREATING AN UNORDERED LIST • Unordered Lists are bulleted lists. • You use the opening tag <UL> to indicate the beginning and </UL> for the end of an Unordered List. • Each item in your bulleted list must begin with the tag <LI> • <LI> stands for List Item. http://www.htmltutorials.ca/lesson5.htm
  • 8. CREATING AN UNORDERED LIST <HTML> <HEAD> <TITLE>SAFETY TIPS </TITLE> </HEAD> <BODY> <H2 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H2> <UL> <LI>Be able to swim <LI>Wear a life jacket at all times <LI>Don't stand up or move around <LI>Don't overexert yourself <LI>Use a bow light at night </UL> </BODY> </HTML> http://www.htmltutorials.ca/lesson5.htm
  • 9. CREATING AN UNORDERED LIST WITHIN A LIST <HTML> <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD> <BODY> <H2 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H2> <UL> <LI>Be able to swim <LI>Wear a life jacket at all times <LI>Don't stand up or move around. If canoe tips, <UL> <LI>Hang on to the canoe <LI>Use the canoe for support and <LI>Swim to shore </UL> <LI>Don't overexert yourself <LI>Use a bow light at night </UL> </BODY></HTML> http://www.htmltutorials.ca/lesson5.htm
  • 10. • for each <UL>tag, you need a </UL> tag. • If you want lists within lists within lists, just remember to follow the LIFO principle (Last In, First Out principle) http://www.htmltutorials.ca/lesson5.htm
  • 11. CREATING AN ORDERED LIST (A NUMBERED LIST) • You treat an Ordered List in the same way as an Unordered List, except that you use <OL> instead of <UL>. • OL stands for Ordered List. http://www.htmltutorials.ca/lesson5.htm
  • 12. <HTML> <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD> <BODY> <H2 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H2> <OL> <LI>Be able to swim <LI>Wear a life jacket at all times <LI>Don't stand up or move around <LI>Don't overexert yourself <LI>Use a bow light at night </OL> </BODY></HTML> http://www.htmltutorials.ca/lesson5.htm
  • 13. COMBINING UNORDERED AND ORDERED LISTS <HTML> <HEAD> <TITLE>SAFETY TIPS</TITLE> </HEAD> <BODY> <H2 ALIGN="CENTER">SAFETY TIPS FOR CANOEISTS</H2> <OL> <LI>Be able to swim <LI>Wear a life jacket at all times <LI>Don't stand up or move around. If canoe tips, <UL> <LI>Hang on to the canoe <LI>Use the canoe for support and <LI>Swim to shore </UL> <LI>Don't overexert yourself <LI>Use a bow light at night </OL> </BODY></HTML> http://www.htmltutorials.ca/lesson5.htm
  • 14. CREATING A DEFINITION LIST (NO BULLETS OR NUMBERS) <HTML> <HEAD> <TITLE>TRIP PLANNING</TITLE> </HEAD> <BODY> <H2 ALIGN="CENTER">TRIP PLANNING</H2><HR> <DL> <DT>Winter <DD>Write for maps and travel brochures <DD>Read camping books <DD>Prepare budget and equipment list <DT>Spring <DD>Visit camping shows <DD>Buy essential items <DD>Make reservations <DT>Day before trip <DD>Load vehicle </DL> </BODY></HTML> http://www.htmltutorials.ca/lesson5.htm
  • 15. • DL stands for Definition List • <DL> denotes the beginning of a of a Definition List and </DL> denotes the end of a Definition List. • DT stands for Definiton Term. • The DT tag may only contain text-level elements (definition of text-level elements given below). http://www.htmltutorials.ca/lesson5.htm
  • 16. • The DT tag has an optional end tag (</DT>) • DD stands for Definition Description. • Note that the second tier is indented from the first tier and that the second tier describes the items in the first tier. • That is, the second tier is a description of the first tier. http://www.htmltutorials.ca/lesson5.htm
  • 17. • DD may contain block-level elements as well as text-level elements. • There are two types of elements in the BODY section of a web page 1. block-level elements 2. text-level elements. http://www.htmltutorials.ca/lesson5.htm
  • 18. • Elements that generate a new paragraph such as a header tag (for example <H1>) or a paragraph tag (<P>), are called block-level elements. • Text-level elements are elements that do not generate a new paragraph (examples are <EM> and <STRONG>). http://www.htmltutorials.ca/lesson5.htm
  • 19. Exercise • Try to copy the format of this example http://www.htmltutorials.ca/lesson5.htm
  • 20. CHANGING THE STYLE OF YOUR BULLETS AND NUMBERS • CHANGING THE APPEARANCE OF BULLETS Here is the way to change your bullets to SQUARE bullets: <UL TYPE="square"> <LI>item 1 <LI>item 2 <LI>item 3 </UL> http://www.htmltutorials.ca/lesson5.htm
  • 21. • You can also change the appearance of your bullets to hollow or open bullets with: – <UL TYPE="circle"> • To get the round solid bullets back again (which is the default value), use: – <UL TYPE="disc"> http://www.htmltutorials.ca/lesson5.htm
  • 22. CHANGING THE APPEARANCE OF AN ORDERED LIST • We can also change the ordered list to something other than Arabic numbers (1, 2, 3, etc.). For example, to change to a capitalized Roman Numeral numbered list, it is: – <OL TYPE="I"> <LI>item 1 <LI>item 2 <LI>item 3 </OL> http://www.htmltutorials.ca/lesson5.htm
  • 23. • <OL TYPE="i"> for lower case Roman Numerals (i, ii, iii, iv, and so on). <OL TYPE="A"> for capital letters (A, B, C, and so on). <OL TYPE="a"> for lower case letters (a, b, c, and so on). http://www.htmltutorials.ca/lesson5.htm
  • 24. • The START attribute is used to begin an Ordered List with any number or letter. For example, • <OL START="3"> • as in: • <OL START="3"> <LI>item 3 <LI>item 4 <LI>item 5 </OL> , http://www.htmltutorials.ca/lesson5.htm
  • 25. • Also, try the following if your browser supports these attributes: – <OL TYPE="I" START="3"> will begin numbering with Roman Numeral III. – <OL TYPE="i" START="3"> will begin numbering with Roman Numeral iii. http://www.htmltutorials.ca/lesson5.htm
  • 26. • The following example numbers the statements in the list as 1, 2, 3, 7, 8 as shown below the document. • <OL> <LI>This is List Item 1 <LI>This is List Item 2 <LI>This is List Item 3 <LI VALUE="7">This is List Item 7 <LI>This is List Item 8 </OL> http://www.htmltutorials.ca/lesson5.htm

Hinweis der Redaktion

  1. the bullets are round and solid each item in the list has been indented 3 or 4 spaces from the left side of the screen no &lt;BR&gt; tag is needed as each new LI command forces a line break before printing the next item.
  2. 3rd year