SlideShare a Scribd company logo
1 of 15
Download to read offline
HTML Images
• In HTML, images are defined with the <img>
tag.
• The <img> tag is empty, which means that it
contains attributes only, and has no closing
tag.
• To display an image on a page, you need to
use the src attribute. Src stands for "source".
The value of the src attribute is the URL of the
image you want to display
HTML Images
<img src="url" alt="some_text“ width="304"
height="228">
The URL points to the location where the image
is stored.
alt attribute specifies an alternate text for an
image, if the image cannot be displayed.
The height and width attributes are used to
specify the height and width of an image.
HTML Tables
• Tables are defined with the <table> tag.
• A table is divided into rows (with the <tr> tag),
and each row is divided into data cells (with
the <td> tag). td stands for "table data," and
holds the content of a data cell. A <td> tag can
contain text, links, images, lists, forms, other
tables, etc.
• To display a table with borders, specify the
border attribute.
• Header information in a table are defined with the
<th> tag.
• All major browsers display the text in the <th>
element as bold and centered.
• Use rowspan to span multiple rows merging
together table rows and colspan to span across
multiple columns.
• cellpadding attribute determines how much space
will exist between a table cell border and the
elements contained within it.
• cellspacing determines how much space will exist
between each table cell.
<!DOCTYPE html>
<html>
<body>
<table>
<tr>
<td>100</td>
<td>200</td>
<td>300</td>
</tr>
<tr>
<td>400</td>
<td>500</td>
<td>600</td>
</tr>
</table>
</body>
</html>
<table border="1">
<tr> <td><b>Column 1</b></td>
<td><b>Column 2</b></td>
<td><b>Column 3</b></td>
</tr> <tr> <td rowspan="2">Row 1 Cell 1</td>
<td>Row 1 Cell 2</td> <td>Row 1 Cell 3</td>
</tr>
<tr> <td>Row 2 Cell 2</td>
<td>Row 2 Cell 3</td> </tr>
<tr> <td colspan="3">Row 3 Cell 1</td> </tr>
</table>
Output
<table border="1" cellpadding="10“ >
<tr> <td><b>Column 1</b></td>
<td><b>Column 2</b></td>
</tr>
<tr> <td>Row 1 Cell 1</td>
<td>Row 1 Cell 2</td>
</tr>
<tr> <td>Row 2 Cell 1</td>
<td>Row 2 Cell 2</td>
</tr> </table>
HTML Lists
• HTML lists appear in web browsers as bulleted
lines of text. There are actually three different
types of HTML lists, including unordered lists
(bullets), ordered lists (numbers), and
definition lists (think: dictionaries).
• The actual list tags themselves, such as <ul>,
are nothing but container elements for list
items (<li>)
html - unordered lists
• An unordered list (<ul>) signifies to a web
browser that all list items contained inside the
<ul> tag should be rendered with a bullet
preceding the text.
• The default bullet type for most web
browsers is a full disc (black circle), but this
can be adjusted using an HTML attribute
called type.
html - unordered lists
<ul>
<li>Milk</li>
<li>Toilet Paper</li>
<li>Cereal</li>
<li>Bread</li>
</ul>
HTML Unordered List Type
• <ul type="square">
• <ul type="disc">
• <ul type="circle">
html - ordered lists
• An ordered list is defined using the <ol> tag,
and list items placed inside of an ordered list
are preceded with numbers instead of bullets.
• The numbering of an HTML list can be
changed to letters or Roman Numerals by
once again adjusting the type attribute.
• The start attribute allows you to further
customize an HTML ordered list by setting a
new starting digit for the ordered list element.
HTML Numbered List Start Attribute
<ol type=“a” start="4" >
<li>Buy Food</li>
<li>Enroll in College</li>
<li>Get a Degree</li>
</ol>
<ol type="a“> <ol type="A">
<ol type="i"> <ol type="I">
html - definition term lists
HTML definition lists (<dl>) are list elements that
have a unique array of tags and elements; the
resulting listings are similar to those you'd see
in a dictionary.
• <dl> - opening clause that defines the start of
the list
• <dt> - list item that defines the definition term
• <dd> - definition of the list item

More Related Content

What's hot (17)

Html tables
Html tablesHtml tables
Html tables
 
Session on common html table
Session on common html tableSession on common html table
Session on common html table
 
Css starting
Css startingCss starting
Css starting
 
Id and class selector
Id and class selectorId and class selector
Id and class selector
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
 
Cascading style sheet
Cascading style sheetCascading style sheet
Cascading style sheet
 
What is css
What is cssWhat is css
What is css
 
Html&css lesson 2
Html&css lesson 2Html&css lesson 2
Html&css lesson 2
 
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
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Css lecture notes
Css lecture notesCss lecture notes
Css lecture notes
 
Css ppt
Css pptCss ppt
Css ppt
 
CSS - LinkedIn
CSS - LinkedInCSS - LinkedIn
CSS - LinkedIn
 
An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)An Introduction to Cascading Style Sheets (CSS3)
An Introduction to Cascading Style Sheets (CSS3)
 
CSS
CSS CSS
CSS
 
Css
CssCss
Css
 

Viewers also liked (19)

Html5
Html5Html5
Html5
 
Assignment on data network
Assignment on data networkAssignment on data network
Assignment on data network
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
 
Vb script tutorial
Vb script tutorialVb script tutorial
Vb script tutorial
 
Java server pages
Java server pagesJava server pages
Java server pages
 
1
11
1
 
Ip addressing classless
Ip addressing classlessIp addressing classless
Ip addressing classless
 
Css
CssCss
Css
 
Ajax
AjaxAjax
Ajax
 
Copy of cgi
Copy of cgiCopy of cgi
Copy of cgi
 
Html4
Html4Html4
Html4
 
Elliptic curve cryptography
Elliptic curve cryptographyElliptic curve cryptography
Elliptic curve cryptography
 
Dsdv
DsdvDsdv
Dsdv
 
Xml2
Xml2Xml2
Xml2
 
Tcp traffic control and red ecn
Tcp traffic control and red ecnTcp traffic control and red ecn
Tcp traffic control and red ecn
 
Ip addressing classful
Ip addressing classfulIp addressing classful
Ip addressing classful
 
2 simulation in aodv and dsr
2 simulation in aodv and dsr2 simulation in aodv and dsr
2 simulation in aodv and dsr
 
01 tarih-caglar
01 tarih-caglar01 tarih-caglar
01 tarih-caglar
 
1- İslamiyet Önce Türk Tarihi
1- İslamiyet Önce Türk Tarihi1- İslamiyet Önce Türk Tarihi
1- İslamiyet Önce Türk Tarihi
 

Similar to Html3 (20)

uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Web Development 3 (HTML & CSS)
Web Development 3  (HTML & CSS)Web Development 3  (HTML & CSS)
Web Development 3 (HTML & CSS)
 
Html tables
Html tablesHtml tables
Html tables
 
PPT-203105353-1.pdf
PPT-203105353-1.pdfPPT-203105353-1.pdf
PPT-203105353-1.pdf
 
table html web programing
table  html  web programingtable  html  web programing
table html web programing
 
Html
HtmlHtml
Html
 
Web Development - Lecture 3
Web Development - Lecture 3Web Development - Lecture 3
Web Development - Lecture 3
 
BITM3730 9-13.pptx
BITM3730 9-13.pptxBITM3730 9-13.pptx
BITM3730 9-13.pptx
 
Html
HtmlHtml
Html
 
belajar HTML 3
belajar HTML 3belajar HTML 3
belajar HTML 3
 
Unit 2 (it workshop)
Unit 2 (it workshop)Unit 2 (it workshop)
Unit 2 (it workshop)
 
BITM3730Week2.pptx
BITM3730Week2.pptxBITM3730Week2.pptx
BITM3730Week2.pptx
 
HTML Tables
HTML TablesHTML Tables
HTML Tables
 
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
 
Lect# 1 html part ii
Lect# 1 html part iiLect# 1 html part ii
Lect# 1 html part ii
 
HTML
HTMLHTML
HTML
 
Html
HtmlHtml
Html
 
Lecture4 web design and development
Lecture4 web design and developmentLecture4 web design and development
Lecture4 web design and development
 
Html and css
Html and cssHtml and css
Html and css
 
Lecture-4.pptx
Lecture-4.pptxLecture-4.pptx
Lecture-4.pptx
 

More from Abhishek Kesharwani (20)

uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
Unit 1 web technology uptu slide
Unit 1 web technology uptu slideUnit 1 web technology uptu slide
Unit 1 web technology uptu slide
 
Unit1 Web Technology UPTU UNIT 1
Unit1 Web Technology UPTU UNIT 1 Unit1 Web Technology UPTU UNIT 1
Unit1 Web Technology UPTU UNIT 1
 
Unit1 2
Unit1 2 Unit1 2
Unit1 2
 
Web Technology UPTU UNIT 1
Web Technology UPTU UNIT 1 Web Technology UPTU UNIT 1
Web Technology UPTU UNIT 1
 
Mtech syllabus computer science uptu
Mtech syllabus computer science uptu Mtech syllabus computer science uptu
Mtech syllabus computer science uptu
 
Wi max tutorial
Wi max tutorialWi max tutorial
Wi max tutorial
 
Virtual lan
Virtual lanVirtual lan
Virtual lan
 
Virtual lan
Virtual lanVirtual lan
Virtual lan
 
Schedulling
SchedullingSchedulling
Schedulling
 
Scheduling
SchedulingScheduling
Scheduling
 

Html3

  • 1. HTML Images • In HTML, images are defined with the <img> tag. • The <img> tag is empty, which means that it contains attributes only, and has no closing tag. • To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display
  • 2. HTML Images <img src="url" alt="some_text“ width="304" height="228"> The URL points to the location where the image is stored. alt attribute specifies an alternate text for an image, if the image cannot be displayed. The height and width attributes are used to specify the height and width of an image.
  • 3. HTML Tables • Tables are defined with the <table> tag. • A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). td stands for "table data," and holds the content of a data cell. A <td> tag can contain text, links, images, lists, forms, other tables, etc. • To display a table with borders, specify the border attribute.
  • 4. • Header information in a table are defined with the <th> tag. • All major browsers display the text in the <th> element as bold and centered. • Use rowspan to span multiple rows merging together table rows and colspan to span across multiple columns. • cellpadding attribute determines how much space will exist between a table cell border and the elements contained within it. • cellspacing determines how much space will exist between each table cell.
  • 6. <table border="1"> <tr> <td><b>Column 1</b></td> <td><b>Column 2</b></td> <td><b>Column 3</b></td> </tr> <tr> <td rowspan="2">Row 1 Cell 1</td> <td>Row 1 Cell 2</td> <td>Row 1 Cell 3</td> </tr> <tr> <td>Row 2 Cell 2</td> <td>Row 2 Cell 3</td> </tr> <tr> <td colspan="3">Row 3 Cell 1</td> </tr> </table>
  • 8. <table border="1" cellpadding="10“ > <tr> <td><b>Column 1</b></td> <td><b>Column 2</b></td> </tr> <tr> <td>Row 1 Cell 1</td> <td>Row 1 Cell 2</td> </tr> <tr> <td>Row 2 Cell 1</td> <td>Row 2 Cell 2</td> </tr> </table>
  • 9. HTML Lists • HTML lists appear in web browsers as bulleted lines of text. There are actually three different types of HTML lists, including unordered lists (bullets), ordered lists (numbers), and definition lists (think: dictionaries). • The actual list tags themselves, such as <ul>, are nothing but container elements for list items (<li>)
  • 10. html - unordered lists • An unordered list (<ul>) signifies to a web browser that all list items contained inside the <ul> tag should be rendered with a bullet preceding the text. • The default bullet type for most web browsers is a full disc (black circle), but this can be adjusted using an HTML attribute called type.
  • 11. html - unordered lists <ul> <li>Milk</li> <li>Toilet Paper</li> <li>Cereal</li> <li>Bread</li> </ul>
  • 12. HTML Unordered List Type • <ul type="square"> • <ul type="disc"> • <ul type="circle">
  • 13. html - ordered lists • An ordered list is defined using the <ol> tag, and list items placed inside of an ordered list are preceded with numbers instead of bullets. • The numbering of an HTML list can be changed to letters or Roman Numerals by once again adjusting the type attribute. • The start attribute allows you to further customize an HTML ordered list by setting a new starting digit for the ordered list element.
  • 14. HTML Numbered List Start Attribute <ol type=“a” start="4" > <li>Buy Food</li> <li>Enroll in College</li> <li>Get a Degree</li> </ol> <ol type="a“> <ol type="A"> <ol type="i"> <ol type="I">
  • 15. html - definition term lists HTML definition lists (<dl>) are list elements that have a unique array of tags and elements; the resulting listings are similar to those you'd see in a dictionary. • <dl> - opening clause that defines the start of the list • <dt> - list item that defines the definition term • <dd> - definition of the list item