SlideShare a Scribd company logo
1 of 17
COMPUTER APPLICATIONS
CLASS X (Code 165)
TOPIC:
UNIT 2: Link & List Tags
By
HIMANSHU PATHAK
Contents
• Introduction
• Image Tag
• Link Tag
• List Tags
– Ordered List
– Unordered List
– Description List
Image Tag: <img>
• HTML <img> tag is used to display image on the
web page.
• Images are not technically inserted into a web
page. images are linked to web pages.
• The <img> tag creates a holding space for the
referenced image.
• Syntax:
– <img src="" alt="" width="" height="">
Attributes of <img> Tag
• src: It is used to specify the path to the image.
• alt: The alt attribute defines an alternate text for
the image, if it can't be displayed.
• height: It is used to specify the height of the
image.
• width: It is used to specify the width of the
image.
• Note: To link an image to another document,
simply nest the <img> tag inside an <a> tag
HTML Link: Anchor tag <a>
• HTML links are hyperlinks.
• We can click on a link and jump to another
document/page.
• When we move the mouse over a link, the
mouse arrow will turn into a little hand.
• Note: A link does not have to be text. A link can
be an image or any other HTML element.
• An anchor <a> tag defines a hyperlink that links
one page to another page.
Cont…
• The most important attribute of the <a> element
is the href attribute, which indicates the link's
destination.
• Syntax:
– <a href="url"> link text </a>
• By default, links will appear as follows in all
browsers:
– An unvisited link is underlined and blue
– A visited link is underlined and purple
– An active link is underlined and red
Cont…
• The target attribute specifies where to open the
linked document.
• The target attribute can have one of the following
values:
• _self - Default. Opens the document in the same
window/tab as it was clicked
• _blank - Opens the document in a new window or tab
• _parent - Opens the document in the parent frame
• _top - Opens the document in the full body of the window
Cont…
• Use mailto: inside the href attribute to create a
link that opens the user's email program (to let
them send a new email):
– <a href="mailto:him.786@gmail.com">Send email</a>
• Significance of Links:
– The basic function of a link is to make a reference,
from an HTML document to a resource, which can be
itself another document.
– In other words, a link defines a relationship between
two resources on the web.
HTML Lists
• Lists are used to group together related pieces of
information so they are clearly associated with
each other and easy to read.
• There are three list types in HTML:
– unordered list — used to group a set of related items
in no particular order
– ordered list — used to group a set of related items in
a specific order
– description list — used to display name/value pairs
such as terms and definitions
Unordered list: <ul> </ul>
• An unordered list starts with the “ul” tag.
• Each list item starts with the “li” tag.
• By default, Each item in the list is marked with a
bullet.
• Example:
<ul>
<li>Tea</li>
<li>Milk</li>
<li>Coffee</li>
</ul>
Cont…
• We can use type attribute for <ul> tag to specify
the type of bullet we like.
• By default, it is a disc. Following are the possible
options −
– <ul type = "square">
– <ul type = "disc">
– <ul type = "circle">
Ordered Lists: <ol> </ol>
• Ordered (numbered) lists are used to display a
list of items that should be in a specific order.
• The ordered list starts with <ol> tag and the list
items start with <li> tag.
• Example:
<ol>
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
</ol>
Cont…
• You can use type attribute for <ol> tag to specify
the type of numbering you like.
• By default, it is a number. Following are the
possible options:
– <ol type = "1"> - Default-Case Numerals.
– <ol type = "I"> - Upper-Case Numerals.
– <ol type = "i"> - Lower-Case Numerals.
– ol type = "A"> - Upper-Case Letters.
– <ol type = "a"> - Lower-Case Letters.
Cont…
• Other than “type” attribute, there are 2 more
important attributes in ordered list:
• reversed: It defines that the order will be
descending.
– Syntax: <ol reversed>
• start: It defines that from which number or
alphabet the order will start.
– Syntax: <ol start="5">
Description Lists
• Description lists (previously called definition lists, but renamed in
HTML5) associate specific names and values within a list.
• Examples might be items in an ingredient list and their
descriptions, article authors and brief bios.
• Description lists use one set of <dl></dl> tags wrapped around
one or more groups of <dt> </dt> (name) and <dd> </dd> (value)
tags.
• Example:
<dl>
<dt>Coffee</dt>
<dd>- 500 ml</dd>
<dt>Milk</dt>
<dd>- 1 ltr </dd>
</dl>
Cont…
• Define a Definition List - <dl> </dl>
– Set the start and end of a definition list. All entries go
within the dl tags.
• Definition Title - <dt> </dt>
– The title of a term being defined or multiple terms
with the same definition.
• Definition Description - <dd> </dd>
– The definition of a term.
Summary
• Image tags
• Link and List Tags
• In the next class, we will start Unit II – HTML
Tables in detail.
•Thanks

More Related Content

What's hot (20)

Html text and formatting
Html text and formattingHtml text and formatting
Html text and formatting
 
Css
CssCss
Css
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Complete Lecture on Css presentation
Complete Lecture on Css presentation Complete Lecture on Css presentation
Complete Lecture on Css presentation
 
Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)Intro to HTML (Kid's Class at TIY)
Intro to HTML (Kid's Class at TIY)
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
Session tracking in servlets
Session tracking in servletsSession tracking in servlets
Session tracking in servlets
 
Basic html
Basic htmlBasic html
Basic html
 
Cascading Style Sheets
Cascading Style SheetsCascading Style Sheets
Cascading Style Sheets
 
Css types internal, external and inline (1)
Css types internal, external and inline (1)Css types internal, external and inline (1)
Css types internal, external and inline (1)
 
Java script
Java scriptJava script
Java script
 
Css pseudo-classes
Css pseudo-classesCss pseudo-classes
Css pseudo-classes
 
Basic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdfBasic Details of HTML and CSS.pdf
Basic Details of HTML and CSS.pdf
 
Basic html structure
Basic html structureBasic html structure
Basic html structure
 
HTML Tags
HTML TagsHTML Tags
HTML Tags
 
How to learn HTML in 10 Days
How to learn HTML in 10 DaysHow to learn HTML in 10 Days
How to learn HTML in 10 Days
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
HTML Fundamentals
HTML FundamentalsHTML Fundamentals
HTML Fundamentals
 

Similar to Html link and list tags

Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)ghayour abbas
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssArti Parab Academics
 
More on HTML Communication Skills BASICS
More on HTML Communication Skills BASICSMore on HTML Communication Skills BASICS
More on HTML Communication Skills BASICSGraceChokoli1
 
lists-and-links.ppt
lists-and-links.pptlists-and-links.ppt
lists-and-links.pptbipin95
 
lists-and-links.ppt
lists-and-links.pptlists-and-links.ppt
lists-and-links.pptMinaNouhii
 
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.pptlikhithareddymedapal
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptDianajeon3
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptxMattMarino13
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentationsurajsutar467
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2Sónia
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1jeweltutin
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSDeepak Upadhyay
 

Similar to Html link and list tags (20)

Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
 
Web Development - Lecture 3
Web Development - Lecture 3Web Development - Lecture 3
Web Development - Lecture 3
 
FYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcssFYBSC IT Web Programming Unit I HTML 5 & andcss
FYBSC IT Web Programming Unit I HTML 5 & andcss
 
List and Links.pptx
List and Links.pptxList and Links.pptx
List and Links.pptx
 
Html4
Html4Html4
Html4
 
More on HTML Communication Skills BASICS
More on HTML Communication Skills BASICSMore on HTML Communication Skills BASICS
More on HTML Communication Skills BASICS
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Html
HtmlHtml
Html
 
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
 
HTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).pptHTML_JavaScript_Malaysia_2008 (2).ppt
HTML_JavaScript_Malaysia_2008 (2).ppt
 
BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
HTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN PresentationHTML : INTRODUCTION TO WEB DESIGN Presentation
HTML : INTRODUCTION TO WEB DESIGN Presentation
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
PHP HTML CSS Notes
PHP HTML CSS  NotesPHP HTML CSS  Notes
PHP HTML CSS Notes
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
CSS tutorial chapter 1
CSS tutorial chapter 1CSS tutorial chapter 1
CSS tutorial chapter 1
 
CSS Basics part One
CSS Basics part OneCSS Basics part One
CSS Basics part One
 
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJSBasic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
Basic of HTML, CSS(StyleSheet), JavaScript(js), Bootstrap, JSON & AngularJS
 

More from Himanshu Pathak

More from Himanshu Pathak (17)

Introduction to E commerce
Introduction to E commerceIntroduction to E commerce
Introduction to E commerce
 
Digital property rights
Digital property rightsDigital property rights
Digital property rights
 
Intellectual property rights
Intellectual property rightsIntellectual property rights
Intellectual property rights
 
An Introduction to Cyber Ethics
An Introduction to Cyber EthicsAn Introduction to Cyber Ethics
An Introduction to Cyber Ethics
 
Cascading style sheet part 2
Cascading style sheet   part 2Cascading style sheet   part 2
Cascading style sheet part 2
 
Cascading style sheet an introduction
Cascading style sheet   an introductionCascading style sheet   an introduction
Cascading style sheet an introduction
 
Html multimedia
Html multimediaHtml multimedia
Html multimedia
 
Html forms
Html formsHtml forms
Html forms
 
Html tables
Html tablesHtml tables
Html tables
 
HTML Text formatting tags
HTML Text formatting tagsHTML Text formatting tags
HTML Text formatting tags
 
Basic html tags
Basic html tagsBasic html tags
Basic html tags
 
Mobile technologies
Mobile technologiesMobile technologies
Mobile technologies
 
Web services
Web servicesWeb services
Web services
 
Remote Login and File Transfer Protocols
Remote Login and File Transfer ProtocolsRemote Login and File Transfer Protocols
Remote Login and File Transfer Protocols
 
Internet protocol
Internet protocolInternet protocol
Internet protocol
 
Introduction to internet
Introduction to internetIntroduction to internet
Introduction to internet
 
What is Computer?
What is Computer?What is Computer?
What is Computer?
 

Recently uploaded

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

Html link and list tags

  • 1. COMPUTER APPLICATIONS CLASS X (Code 165) TOPIC: UNIT 2: Link & List Tags By HIMANSHU PATHAK
  • 2. Contents • Introduction • Image Tag • Link Tag • List Tags – Ordered List – Unordered List – Description List
  • 3. Image Tag: <img> • HTML <img> tag is used to display image on the web page. • Images are not technically inserted into a web page. images are linked to web pages. • The <img> tag creates a holding space for the referenced image. • Syntax: – <img src="" alt="" width="" height="">
  • 4. Attributes of <img> Tag • src: It is used to specify the path to the image. • alt: The alt attribute defines an alternate text for the image, if it can't be displayed. • height: It is used to specify the height of the image. • width: It is used to specify the width of the image. • Note: To link an image to another document, simply nest the <img> tag inside an <a> tag
  • 5. HTML Link: Anchor tag <a> • HTML links are hyperlinks. • We can click on a link and jump to another document/page. • When we move the mouse over a link, the mouse arrow will turn into a little hand. • Note: A link does not have to be text. A link can be an image or any other HTML element. • An anchor <a> tag defines a hyperlink that links one page to another page.
  • 6. Cont… • The most important attribute of the <a> element is the href attribute, which indicates the link's destination. • Syntax: – <a href="url"> link text </a> • By default, links will appear as follows in all browsers: – An unvisited link is underlined and blue – A visited link is underlined and purple – An active link is underlined and red
  • 7. Cont… • The target attribute specifies where to open the linked document. • The target attribute can have one of the following values: • _self - Default. Opens the document in the same window/tab as it was clicked • _blank - Opens the document in a new window or tab • _parent - Opens the document in the parent frame • _top - Opens the document in the full body of the window
  • 8. Cont… • Use mailto: inside the href attribute to create a link that opens the user's email program (to let them send a new email): – <a href="mailto:him.786@gmail.com">Send email</a> • Significance of Links: – The basic function of a link is to make a reference, from an HTML document to a resource, which can be itself another document. – In other words, a link defines a relationship between two resources on the web.
  • 9. HTML Lists • Lists are used to group together related pieces of information so they are clearly associated with each other and easy to read. • There are three list types in HTML: – unordered list — used to group a set of related items in no particular order – ordered list — used to group a set of related items in a specific order – description list — used to display name/value pairs such as terms and definitions
  • 10. Unordered list: <ul> </ul> • An unordered list starts with the “ul” tag. • Each list item starts with the “li” tag. • By default, Each item in the list is marked with a bullet. • Example: <ul> <li>Tea</li> <li>Milk</li> <li>Coffee</li> </ul>
  • 11. Cont… • We can use type attribute for <ul> tag to specify the type of bullet we like. • By default, it is a disc. Following are the possible options − – <ul type = "square"> – <ul type = "disc"> – <ul type = "circle">
  • 12. Ordered Lists: <ol> </ol> • Ordered (numbered) lists are used to display a list of items that should be in a specific order. • The ordered list starts with <ol> tag and the list items start with <li> tag. • Example: <ol> <li>Item1</li> <li>Item2</li> <li>Item3</li> </ol>
  • 13. Cont… • You can use type attribute for <ol> tag to specify the type of numbering you like. • By default, it is a number. Following are the possible options: – <ol type = "1"> - Default-Case Numerals. – <ol type = "I"> - Upper-Case Numerals. – <ol type = "i"> - Lower-Case Numerals. – ol type = "A"> - Upper-Case Letters. – <ol type = "a"> - Lower-Case Letters.
  • 14. Cont… • Other than “type” attribute, there are 2 more important attributes in ordered list: • reversed: It defines that the order will be descending. – Syntax: <ol reversed> • start: It defines that from which number or alphabet the order will start. – Syntax: <ol start="5">
  • 15. Description Lists • Description lists (previously called definition lists, but renamed in HTML5) associate specific names and values within a list. • Examples might be items in an ingredient list and their descriptions, article authors and brief bios. • Description lists use one set of <dl></dl> tags wrapped around one or more groups of <dt> </dt> (name) and <dd> </dd> (value) tags. • Example: <dl> <dt>Coffee</dt> <dd>- 500 ml</dd> <dt>Milk</dt> <dd>- 1 ltr </dd> </dl>
  • 16. Cont… • Define a Definition List - <dl> </dl> – Set the start and end of a definition list. All entries go within the dl tags. • Definition Title - <dt> </dt> – The title of a term being defined or multiple terms with the same definition. • Definition Description - <dd> </dd> – The definition of a term.
  • 17. Summary • Image tags • Link and List Tags • In the next class, we will start Unit II – HTML Tables in detail. •Thanks