SlideShare uma empresa Scribd logo
1 de 19
Web Engineering
An Overview about HTML
Lecture 03
University of Lahore
1
Block and Inline elements
• Block elements contain an entire large region
of content.
• Examples:
paragraphs, lists, table cells
• Inline elements affect a small amount of
content. Must be nested inside a block
element.
• Examples:
bold text, images, SPAN
Example of Block
Ordered List
• HTML provide several tags for displaying list.
• <ol type=“a”>
<li> One </li>
<li> Two </li>
<li> Three </li>
</ol>
• type = “a”, “1”, “A”, “i”, “I”
• start = “25”
Unordered List
• HTML provide several tags for displaying list.
• <ul style=“list-style-type: disc;”>
<li> One </li>
<li> Two </li>
<li> Three </li>
</ul>
• Type = “disc”, “square”, “circle”, “decimal”,
“Iower-alpha”, “katakana”, “armenian”,
“hiragana”
Nested Unordered List
• Example
• <ul>
<li> Four </li>
<li> Five
<ul>
<li> Four </li>
<li> Five </li>
<li> Six </li>
</ul>
</li>
<li> Six </li>
</ul>
Nested Unordered List
• Example
• <ol>
<li> One </li>
<li> Two
<ol>
<li> One </li>
<li> Two </li>
<li> Three </li>
</ol>
</li>
<li> Three </li>
</ol>
EXAMPLE
• <ol>
<li> One </li>
<li> Two
<ol start=“5”>
<li> One </li>
<li> Two
<ol type=“i” start=“7”>
<li> One </li>
<li> Two </li>
<li> Three </li>
</ol>
</li>
<li> Three </li>
</ol>
</li>
<li> Three </li>
</ol>
8
Images
• Images are major part of websites.
• Example:
<body>
<h1> HTML Image </h1>
<img src=“images/sciss.png” width=“240”
height=“240” alt=“Picture of scissors”
title=“Running with these is not
recommended.” />
</body>
9
Link on a Images
<a href=“index.html” target=“_blank”><img
src=“images/image1.jpg”
width=“250”
height=“250”
alt=“alternative text”
/></a>
10
11
<TABLE>
Table
(made up of rows)
<TR>
Row
(made up of data cells)
<TH>
Heading Data Cell
(Can contain paragraphs,
images, lists, forms, tables)
<TD>
Data Cell
(Can contain paragraphs,
images, lists, forms, tables)
TABLES
• Tables are very useful feature in HTML.
• Example:
<h1>HTML Tables</h1>
<table>
<caption>My Favorite Albums</caption>
<tr>
<th> Title </th>
<th> Artist </th>
<th> Comment </th>
</tr>
<tr>
<td> Electric Lady Land </td>
<td> Jimi Hendrix </td>
<td> Revolutionary </td>
</tr>
</table>
12
<tbody>
<tr>
<td></td>
…
</tr>
<tr>
<td></td>
…
</tr>
</tbody>
</table>
13
TABLE Attributes
• CELLPADING
– Determines the distance between the border of a cell and
the contents of the cell
– Example: <TABLE CELLPADDING = “3”>
• CELLSPACING
– Determines the empty spacing between the borders of
two adjacent cells
– Example: <TABLE CELLSPACING = “1”>
14
<TH> & <TD> Attributes
• COLSPAN
– No. of rows the current cell should extend itself downward
– Example: <TD COLSPAN = “2”>
• ROWSPAN
– The number of columns the current cell should extend
itself
– Example: <TD ROWSPAN = “5”>
15
16
Year Quarter
Expenses Income
Quetta Dubai Quetta Dubai
2001
1 1,900 8,650 9,000 7,780
2 2,230 8,650 8,500 8,670
3 4,000 8,650 9,900 9,870
4 2,200 8,650 9,800 9,900
2002
1 7,780 8,650 7,780 9,000
2 8,670 8,650 8,670 8,500
3 9,870 8,650 9,870 9,900
4 9,900 8,650 9,900 9,800
EMBEDDING AUDIO
• HTML5 provides the simple powerful feature of adding
audio files on your web page.
• Example:
<p> Here’s a song: </p>
<audio id=“audio” controls autoplay loop>
<source
src=“media/song.m4a”
type=“audio/x-acc” />
<source
src=“media/song.mp3”
type=“audio/mpeg” />
<source
src=“media/song.ogg”
type=“audio/ogg” />
</audio>
17
18
EMBEDDING VIDEO
• HTML5 provides the simple powerful feature of embedding
video files on your web page.
• Example:
<p> Here’s a song: </p>
<video id=“video” widht=“860” height=“480” controls autoplay
loop>
<source
src=“media/video.m4v”
type=“video/mp4” />
<source
src=“media/video.webm”
type=“video/webm” />
<source
src=“media/video.ogg”
type=“video/ogg” />
</video>
19

Mais conteúdo relacionado

Destaque

[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags
Hyejin Oh
 
[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags
Hyejin Oh
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
Doncho Minkov
 

Destaque (20)

Need for Web Engineering
Need for Web EngineeringNeed for Web Engineering
Need for Web Engineering
 
Web engineering - HTML Form
Web engineering -  HTML FormWeb engineering -  HTML Form
Web engineering - HTML Form
 
Web engineering lecture 1
Web engineering lecture 1Web engineering lecture 1
Web engineering lecture 1
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 
Web Engineering - Introduction to CSS
Web Engineering - Introduction to CSSWeb Engineering - Introduction to CSS
Web Engineering - Introduction to CSS
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 
Web engineering
Web engineeringWeb engineering
Web engineering
 
Web engineering - Measuring Effort Prediction Power and Accuracy
Web engineering - Measuring Effort Prediction Power and AccuracyWeb engineering - Measuring Effort Prediction Power and Accuracy
Web engineering - Measuring Effort Prediction Power and Accuracy
 
Web Engineering - Web Application Testing
Web Engineering - Web Application TestingWeb Engineering - Web Application Testing
Web Engineering - Web Application Testing
 
Web engineering
Web engineeringWeb engineering
Web engineering
 
PROGRESS - CSS BASIC
PROGRESS - CSS BASICPROGRESS - CSS BASIC
PROGRESS - CSS BASIC
 
Angular js for beginners
Angular js for beginnersAngular js for beginners
Angular js for beginners
 
[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags[Basic HTML/CSS] 4. html - form tags
[Basic HTML/CSS] 4. html - form tags
 
[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags[Basic HTML/CSS] 3. html - table tags
[Basic HTML/CSS] 3. html - table tags
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Tables and Forms in HTML
Tables and Forms in HTMLTables and Forms in HTML
Tables and Forms in HTML
 
Web Engineering - Basic CSS Properties
Web Engineering - Basic CSS PropertiesWeb Engineering - Basic CSS Properties
Web Engineering - Basic CSS Properties
 
Web Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional SoftwareWeb Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional Software
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Web Engineering
Web EngineeringWeb Engineering
Web Engineering
 

Semelhante a Web engineering - An overview about HTML

Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
Jussi Pohjolainen
 
Web forms and html lecture Number 3
Web forms and html lecture Number 3Web forms and html lecture Number 3
Web forms and html lecture Number 3
Mudasir Syed
 
html-lists-tables.ppt
html-lists-tables.ppthtml-lists-tables.ppt
html-lists-tables.ppt
ArifKamal36
 

Semelhante a Web engineering - An overview about HTML (20)

HTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by MukeshHTML (Hyper Text Markup Language) by Mukesh
HTML (Hyper Text Markup Language) by Mukesh
 
Web forms and html (lect 3)
Web forms and html (lect 3)Web forms and html (lect 3)
Web forms and html (lect 3)
 
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
 
Html tables
Html tablesHtml tables
Html tables
 
Introduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSSIntroduction to XML, XHTML and CSS
Introduction to XML, XHTML and CSS
 
Html
HtmlHtml
Html
 
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XMLFergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Web forms and html lecture Number 3
Web forms and html lecture Number 3Web forms and html lecture Number 3
Web forms and html lecture Number 3
 
Html3
Html3Html3
Html3
 
Html3
Html3Html3
Html3
 
Html4
Html4Html4
Html4
 
Computer language - Html tables
Computer language - Html tablesComputer language - Html tables
Computer language - Html tables
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
html-lists-tables.ppt
html-lists-tables.ppthtml-lists-tables.ppt
html-lists-tables.ppt
 
Lecture 2.ppt
Lecture 2.pptLecture 2.ppt
Lecture 2.ppt
 
Response Tables.ppt
Response Tables.pptResponse Tables.ppt
Response Tables.ppt
 
Html and css
Html and cssHtml and css
Html and css
 
Web Development - Lecture 3
Web Development - Lecture 3Web Development - Lecture 3
Web Development - Lecture 3
 
basic-tags.PPT
basic-tags.PPTbasic-tags.PPT
basic-tags.PPT
 

Último

Último (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Web engineering - An overview about HTML

  • 1. Web Engineering An Overview about HTML Lecture 03 University of Lahore 1
  • 2. Block and Inline elements • Block elements contain an entire large region of content. • Examples: paragraphs, lists, table cells • Inline elements affect a small amount of content. Must be nested inside a block element. • Examples: bold text, images, SPAN
  • 4. Ordered List • HTML provide several tags for displaying list. • <ol type=“a”> <li> One </li> <li> Two </li> <li> Three </li> </ol> • type = “a”, “1”, “A”, “i”, “I” • start = “25”
  • 5. Unordered List • HTML provide several tags for displaying list. • <ul style=“list-style-type: disc;”> <li> One </li> <li> Two </li> <li> Three </li> </ul> • Type = “disc”, “square”, “circle”, “decimal”, “Iower-alpha”, “katakana”, “armenian”, “hiragana”
  • 6. Nested Unordered List • Example • <ul> <li> Four </li> <li> Five <ul> <li> Four </li> <li> Five </li> <li> Six </li> </ul> </li> <li> Six </li> </ul>
  • 7. Nested Unordered List • Example • <ol> <li> One </li> <li> Two <ol> <li> One </li> <li> Two </li> <li> Three </li> </ol> </li> <li> Three </li> </ol>
  • 8. EXAMPLE • <ol> <li> One </li> <li> Two <ol start=“5”> <li> One </li> <li> Two <ol type=“i” start=“7”> <li> One </li> <li> Two </li> <li> Three </li> </ol> </li> <li> Three </li> </ol> </li> <li> Three </li> </ol> 8
  • 9. Images • Images are major part of websites. • Example: <body> <h1> HTML Image </h1> <img src=“images/sciss.png” width=“240” height=“240” alt=“Picture of scissors” title=“Running with these is not recommended.” /> </body> 9
  • 10. Link on a Images <a href=“index.html” target=“_blank”><img src=“images/image1.jpg” width=“250” height=“250” alt=“alternative text” /></a> 10
  • 11. 11 <TABLE> Table (made up of rows) <TR> Row (made up of data cells) <TH> Heading Data Cell (Can contain paragraphs, images, lists, forms, tables) <TD> Data Cell (Can contain paragraphs, images, lists, forms, tables)
  • 12. TABLES • Tables are very useful feature in HTML. • Example: <h1>HTML Tables</h1> <table> <caption>My Favorite Albums</caption> <tr> <th> Title </th> <th> Artist </th> <th> Comment </th> </tr> <tr> <td> Electric Lady Land </td> <td> Jimi Hendrix </td> <td> Revolutionary </td> </tr> </table> 12
  • 14. TABLE Attributes • CELLPADING – Determines the distance between the border of a cell and the contents of the cell – Example: <TABLE CELLPADDING = “3”> • CELLSPACING – Determines the empty spacing between the borders of two adjacent cells – Example: <TABLE CELLSPACING = “1”> 14
  • 15. <TH> & <TD> Attributes • COLSPAN – No. of rows the current cell should extend itself downward – Example: <TD COLSPAN = “2”> • ROWSPAN – The number of columns the current cell should extend itself – Example: <TD ROWSPAN = “5”> 15
  • 16. 16 Year Quarter Expenses Income Quetta Dubai Quetta Dubai 2001 1 1,900 8,650 9,000 7,780 2 2,230 8,650 8,500 8,670 3 4,000 8,650 9,900 9,870 4 2,200 8,650 9,800 9,900 2002 1 7,780 8,650 7,780 9,000 2 8,670 8,650 8,670 8,500 3 9,870 8,650 9,870 9,900 4 9,900 8,650 9,900 9,800
  • 17. EMBEDDING AUDIO • HTML5 provides the simple powerful feature of adding audio files on your web page. • Example: <p> Here’s a song: </p> <audio id=“audio” controls autoplay loop> <source src=“media/song.m4a” type=“audio/x-acc” /> <source src=“media/song.mp3” type=“audio/mpeg” /> <source src=“media/song.ogg” type=“audio/ogg” /> </audio> 17
  • 18. 18
  • 19. EMBEDDING VIDEO • HTML5 provides the simple powerful feature of embedding video files on your web page. • Example: <p> Here’s a song: </p> <video id=“video” widht=“860” height=“480” controls autoplay loop> <source src=“media/video.m4v” type=“video/mp4” /> <source src=“media/video.webm” type=“video/webm” /> <source src=“media/video.ogg” type=“video/ogg” /> </video> 19