SlideShare a Scribd company logo
1 of 21
LISTS AND LINKS
Explained By:
Sarbjit Kaur.
Lecturer, Department of Computer Application,
PGG.C.G., Sector: 42, Chandigarh
INTRODUCTION TO LISTS
Lists are the best way to provide information
in a structured, easy-to-read format. They help
to visitor easily spot information, and they
drew attention to important information.
lists are the best method of
oranganizg information and presenting it in a
structured fashion.
TYPES OF LISTS
There are three kinds of lists:
• Ordered List (Numbered List)
• Unordered List (Bulleted List)
• Definition Lists
Ordered List (Numbered List)
• Ordered list also called as Numbered list, is
used to present a numbered list of item in the
order of importance or the item(paragraph) is
marked with a number.
• An ordered list must begin with the <OL>
followed by an <LI>list item tag.
Example: An HTML document orderedList.html shows
the use of Ordered List
<HTML>
<HEAD>
<TITLE>
An Ordered List
</TITLE>
</HEAD>
<BODY>
<ol>
<li>Coffee>
<li>Milk
<li>Tea
<li>sugar
</ol>
</OL>
</BODY>
</HTML>
Output
1. Coffee
2. Milk
3. Tea
4. sugar
Attributes of <OL> tag
• COMPACT: render a list in compact form.
• TYPE : allows marking list items with different types.
By default the list Item markers are set to numbers
1,2,3… so on.Other values of TYPE attribute are:
• Attribute Description
• Type = A Capital letter eg. A, B, C………
• Type = a Small letter eg. a, b, c,………
• Type = I Uppercase Roman Numbers eg. I, II, III……
• Type = i Lowercase Roman Numbers eg. i, ii, iii……
• Type = 1 eg. 1, 2, 3……
Attributes of <OL> tag
• The start attribute: The attribute is used to override default
list numbering when a list is divide into multiple parts. E.g:
<HTML>
<HEAD>
<TITLE>
An Ordered List
</TITLE>
</HEAD>
<BODY>
Impact printers
<ol>
<li>DOT MATRIX
EXAMPLE OF START ATTRIBUTE
<li>CHAIN PRINTER
<li>DRUM PRINTER
</ol>
<P>NON-IMPACT PRINTER</P>
<OL START=4>
<li>LASER PRINTER
<li>ELECTROSTATIC PRINTER
</OL>
</BODY>
</HTML>
OUTPUT
Impact printers
1.DOT MATRIX
2.CHAIN PRINTER
3.DRUM PRINTER
NON-IMPACT PRINTER
4.LASER PRINTER
5.ELECTROSTATIC PRINTER
Nested Order List
• One ordered list might contain one or more ordered list that Is called as Nested
Order lists.
• Example: An HTML document nested.html shows the use of Nested Order Lists
with attributes:
<HTML>
<HEAD>
<TITLE> Use of Nested Ordered Lists</TITLE>
</HEAD>
<BODY>
<OL TYPE = A START =3>
<LI> Fruits
<OL TYPE = I>
<LI> Apple
<LI> MANGO
<LI> Orange
</OL>
Example: An HTML document nested.html shows the use of
Nested Order Lists with attributes
• <LI> VEGETABLES
• <OL TYPE = I>
• <LI> Brinjal
• <LI> Cabbage
• <LI> Tomato
• </OL>
• </OL>
• </BODY>
• </HTML>
Unordered List <UL>
• Unordered List also called as bulleted list,
used to present list of items marked with
bullets. An unordered list starts with in <UL>
followed by <LI> (List Item) tag. Use of <UL> is
very similar to <OL> (ordered list).
Use of Unordered List and Various
Attributes
<HTML>
<HEAD><TITLE> Use of Unordered List </TITLE>
</HEAD>
<BODY>
<UL>
<LI> FRUITS
<UL>
<LI> Apple
<LI> Mango
<LI> Orange
</UL>
<LI> VEGETABLE
<UL>
<LI> Brinjal
<LI> Cabbage
<LI> Tomato
</UL>
</UL>
</BODY>
</HTML>
OUTPUT
• FRUITS
--Apple
-Mango
-Orange
• VEGETABLE
- Brinjal
-Cabbage
-Tomato
Definition Lists
• 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):E.g.
• <dl>
<dt>Coffee</dt>
<dd>- black hot drink</dd>
<dt>Milk</dt>
<dd>- white cold drink</dd>
</dl>
OUTPUT
• Coffee
- black hot drink
• Milk
- white cold drink
INTRODUCTION HTML Hyperlinks (Links)
• A hyperlink (or link) is a word, group of words, or image that you
can click on to jump to a new document or a new section within the
current document. When you move the cursor over a link in a Web
page, the arrow will turn into a little hand.
• HTML provides <A> Anchor Tag to create links. The format of using
anchor tag is as follows:
<A HREF ="URL"> Make Me The Link </A>
HREF (Hyper Link Reference) is a mandatory attribute used
to refer the URL of the resource. URL (Uniform Resource Locator) is
an address tells the browser about the file to link to. It identifies file
locations (Addresses) on the web or on the local hard drive. These
addresses can be those of HTML documents or elements such as
images, scripts, applets and other files. It is always enclosed in
quotes.
HTML Link Syntax
• The HTML code for a link is simple. It looks like
this:
• <a href="url">Link text</a>
• The href attribute specifies the destination of a
link.
• Example:
• <a href=“http://www.flowers.com/”>
flowers</a>which will display like this: flowers
• Clicking on this hyperlink will send the user to
flowers. COM' homepage
Linking a text to a web site / an external document
• Example:
<A HREF ="http://www.nios.ac.in">Link to Website of NIOS</A>
OR
<A HREF="http://www.nios.ac.in/offices.htm">Links to Contact Us page of NIOS</A>
Opening Address of the document Link text Closing Anchor Tag
Anchor Tag
In the above example the link text “Links to Contact Us page of
NIOS” would appear underlined and in a color different from any
other text in the document to distinguish a link from normal text.
Also you would find that the mouse pointer changes into a hand
like symbol when taken over the hyperlink.
Linking (jumping) to a specific place within the same
document.
• Sometimes, it is required to jump different sections
in the same document. For this it needs two steps,
first; identify section with a name and or second; use
jumps to the location using the name used.
• The syntax is:
<A HREF="#section_name"> link to another section of
the same document </A>
• This link text jumps to the section named with HREF
on click.The # symbol before the section name is
must.

More Related Content

Similar to lists-and-links.ppt

Similar to lists-and-links.ppt (20)

Html link and list tags
Html link and list tagsHtml link and list tags
Html link and list tags
 
Web Design-III IT.ppt
Web Design-III IT.pptWeb Design-III IT.ppt
Web Design-III IT.ppt
 
chapter-17-web-designing2.pdf
chapter-17-web-designing2.pdfchapter-17-web-designing2.pdf
chapter-17-web-designing2.pdf
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Web Development
Web DevelopmentWeb Development
Web Development
 
HTML Lists & Llinks
HTML Lists & LlinksHTML Lists & Llinks
HTML Lists & Llinks
 
LINKING IN HTML
LINKING IN HTMLLINKING IN HTML
LINKING IN HTML
 
basic-tags.PPT
basic-tags.PPTbasic-tags.PPT
basic-tags.PPT
 
SHS-ADC(Hyperlinks)
SHS-ADC(Hyperlinks)SHS-ADC(Hyperlinks)
SHS-ADC(Hyperlinks)
 
shsadcppt1
shsadcppt1shsadcppt1
shsadcppt1
 
Html 5
Html 5Html 5
Html 5
 
shs-adcppt1
shs-adcppt1shs-adcppt1
shs-adcppt1
 
Introduction to HTML programming for webpages.pdf
Introduction to HTML programming for webpages.pdfIntroduction to HTML programming for webpages.pdf
Introduction to HTML programming for webpages.pdf
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
static dynamic html tags
 static dynamic html tags static dynamic html tags
static dynamic html tags
 
intro-to-html
intro-to-htmlintro-to-html
intro-to-html
 
web technology
web technologyweb technology
web technology
 
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
 
Html4
Html4Html4
Html4
 

Recently uploaded

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptxPoojaSen20
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 

Recently uploaded (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 

lists-and-links.ppt

  • 1. LISTS AND LINKS Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh
  • 2. INTRODUCTION TO LISTS Lists are the best way to provide information in a structured, easy-to-read format. They help to visitor easily spot information, and they drew attention to important information. lists are the best method of oranganizg information and presenting it in a structured fashion.
  • 3. TYPES OF LISTS There are three kinds of lists: • Ordered List (Numbered List) • Unordered List (Bulleted List) • Definition Lists
  • 4. Ordered List (Numbered List) • Ordered list also called as Numbered list, is used to present a numbered list of item in the order of importance or the item(paragraph) is marked with a number. • An ordered list must begin with the <OL> followed by an <LI>list item tag.
  • 5. Example: An HTML document orderedList.html shows the use of Ordered List <HTML> <HEAD> <TITLE> An Ordered List </TITLE> </HEAD> <BODY> <ol> <li>Coffee> <li>Milk <li>Tea <li>sugar </ol> </OL> </BODY> </HTML>
  • 7. Attributes of <OL> tag • COMPACT: render a list in compact form. • TYPE : allows marking list items with different types. By default the list Item markers are set to numbers 1,2,3… so on.Other values of TYPE attribute are: • Attribute Description • Type = A Capital letter eg. A, B, C……… • Type = a Small letter eg. a, b, c,……… • Type = I Uppercase Roman Numbers eg. I, II, III…… • Type = i Lowercase Roman Numbers eg. i, ii, iii…… • Type = 1 eg. 1, 2, 3……
  • 8. Attributes of <OL> tag • The start attribute: The attribute is used to override default list numbering when a list is divide into multiple parts. E.g: <HTML> <HEAD> <TITLE> An Ordered List </TITLE> </HEAD> <BODY> Impact printers <ol> <li>DOT MATRIX
  • 9. EXAMPLE OF START ATTRIBUTE <li>CHAIN PRINTER <li>DRUM PRINTER </ol> <P>NON-IMPACT PRINTER</P> <OL START=4> <li>LASER PRINTER <li>ELECTROSTATIC PRINTER </OL> </BODY> </HTML>
  • 10. OUTPUT Impact printers 1.DOT MATRIX 2.CHAIN PRINTER 3.DRUM PRINTER NON-IMPACT PRINTER 4.LASER PRINTER 5.ELECTROSTATIC PRINTER
  • 11. Nested Order List • One ordered list might contain one or more ordered list that Is called as Nested Order lists. • Example: An HTML document nested.html shows the use of Nested Order Lists with attributes: <HTML> <HEAD> <TITLE> Use of Nested Ordered Lists</TITLE> </HEAD> <BODY> <OL TYPE = A START =3> <LI> Fruits <OL TYPE = I> <LI> Apple <LI> MANGO <LI> Orange </OL>
  • 12. Example: An HTML document nested.html shows the use of Nested Order Lists with attributes • <LI> VEGETABLES • <OL TYPE = I> • <LI> Brinjal • <LI> Cabbage • <LI> Tomato • </OL> • </OL> • </BODY> • </HTML>
  • 13. Unordered List <UL> • Unordered List also called as bulleted list, used to present list of items marked with bullets. An unordered list starts with in <UL> followed by <LI> (List Item) tag. Use of <UL> is very similar to <OL> (ordered list).
  • 14. Use of Unordered List and Various Attributes <HTML> <HEAD><TITLE> Use of Unordered List </TITLE> </HEAD> <BODY> <UL> <LI> FRUITS <UL> <LI> Apple <LI> Mango <LI> Orange </UL> <LI> VEGETABLE <UL> <LI> Brinjal <LI> Cabbage <LI> Tomato </UL> </UL> </BODY> </HTML>
  • 16. Definition Lists • 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):E.g. • <dl> <dt>Coffee</dt> <dd>- black hot drink</dd> <dt>Milk</dt> <dd>- white cold drink</dd> </dl>
  • 17. OUTPUT • Coffee - black hot drink • Milk - white cold drink
  • 18. INTRODUCTION HTML Hyperlinks (Links) • A hyperlink (or link) is a word, group of words, or image that you can click on to jump to a new document or a new section within the current document. When you move the cursor over a link in a Web page, the arrow will turn into a little hand. • HTML provides <A> Anchor Tag to create links. The format of using anchor tag is as follows: <A HREF ="URL"> Make Me The Link </A> HREF (Hyper Link Reference) is a mandatory attribute used to refer the URL of the resource. URL (Uniform Resource Locator) is an address tells the browser about the file to link to. It identifies file locations (Addresses) on the web or on the local hard drive. These addresses can be those of HTML documents or elements such as images, scripts, applets and other files. It is always enclosed in quotes.
  • 19. HTML Link Syntax • The HTML code for a link is simple. It looks like this: • <a href="url">Link text</a> • The href attribute specifies the destination of a link. • Example: • <a href=“http://www.flowers.com/”> flowers</a>which will display like this: flowers • Clicking on this hyperlink will send the user to flowers. COM' homepage
  • 20. Linking a text to a web site / an external document • Example: <A HREF ="http://www.nios.ac.in">Link to Website of NIOS</A> OR <A HREF="http://www.nios.ac.in/offices.htm">Links to Contact Us page of NIOS</A> Opening Address of the document Link text Closing Anchor Tag Anchor Tag In the above example the link text “Links to Contact Us page of NIOS” would appear underlined and in a color different from any other text in the document to distinguish a link from normal text. Also you would find that the mouse pointer changes into a hand like symbol when taken over the hyperlink.
  • 21. Linking (jumping) to a specific place within the same document. • Sometimes, it is required to jump different sections in the same document. For this it needs two steps, first; identify section with a name and or second; use jumps to the location using the name used. • The syntax is: <A HREF="#section_name"> link to another section of the same document </A> • This link text jumps to the section named with HREF on click.The # symbol before the section name is must.