SlideShare a Scribd company logo
Web Programming
SYED SHAHZAIB SOHAIL
Lecture 1
Introduction to HTML
Contents
• HTMLTags
HTMLTags
• What are HTML tags?
• The hidden keywords within a webpage that define how our web browser must format
& display the content.
• Most tags have two parts an opening part & a closing part e.g. <html> is opening tag &
</html> is the closing tag.
Continued…
• Some common HTML tags are given below:
• Headings
• Paragraphs
• Label
• Images
• Tables
• Lists
Continued…
• Headings
• Headings are defined with <h1> to <h6> tags
• <h1> defines the most important heading while <h6> defines the least important
heading.
• <h1> should be used for main heading, followed by <h2> headings, then the less
important <h3> & so on…
Headings Example
Continued…
• Importance of Headings
• Search engines use the headings to index the structure & content of your web pages.
• Users skim our pages by its headings, so it’s important to use headings to show the
document structure.
Continued…
• Paragraphs
• The HTML <p> tag defines a paragraph.
• Never forget the end tag, else it might produce unexpected results or errors.
Continued…
• Label
• The <label> tag defines a label.
• The <label> element provides a usability improvement for mouse users, because if the
user clicks on the text within the <label> element, it toggles the control.
• The for attribute of <label> tag should be equal to the id attribute of the related
element to bind them together.
Continued…
• Images
• The <img> tag defines an image in an HTML page.
• The <img> tag has two required attributes: src & alt
• src: defines the url or path of the image.
• alt: specifies an alternate text for an image.
• Where some common attributes are height, width, border etc
Continued…
• Table
• The <table> tag defines an HTML table
• An HTML table consists of the <table> element & one or more <tr>, <th> & <td>
elements.
• More complex HTML table may also include <caption>, <tbody>, <colgroup>, <thead>
& <tfoot>
Continued…
Tags Description
<tr> Defines a table row
<th> Defines a table heading
<td> Defines a table cell
<tbody> Used to group the body content in an HTML table
<thead> Used to group header content in an HTML table
<tfoot> Used to group footer content in an HTML table
<caption> Defines a table caption
<col> Specifies column properties for each column within a
<colgroup> element
<colgroup> Specifies a group of one or more columns in a table for
formatting
Continued…
Table Example
Continued…
• Lists
• There are three types of lists
a. Unordered Lists
b. Ordered Lists
c. Description Lists
Continued…
• Unordered Lists
• A collection of related items that have no special order or sequence.
• An unordered list starts with <ul> tag & each list tem starts with <li> tag.
• Each item in the link is marked with bullets.
Continued…
Unordered List Example
Continued…
• Ordered Lists
• A collection of related items that have special sequence or order.
• An unordered list starts with <ol> tag & each list tem starts with <li> tag.
• Each item in the link is marked with numbers or alphabets.
Continued…
Ordered List Example
Continued…
• Description Lists
• HTML also supports description lists.
• A description list is a list of terms, with a description of each term.
• The <dl> tag defines the description list, the <dt> tag defines the term (name) & the
<dd> tag defines each term.
• The definition list is the ideal way to present a glossary, list of terms, or other
name/value list.
Continued…
Description List Example

More Related Content

PPTX
Web Development - Lecture 5
PPTX
Web Development - Lecture 2
PPTX
Web Development - Lecture 4
PPTX
Web Development - Lecture 6
PPTX
CSS Basics (Cascading Style Sheet)
PPTX
Introduction to CSS
Web Development - Lecture 5
Web Development - Lecture 2
Web Development - Lecture 4
Web Development - Lecture 6
CSS Basics (Cascading Style Sheet)
Introduction to CSS

What's hot (20)

PPTX
Ia css
PPTX
chitra
PPTX
CSS (Cascading Style Sheet)
PDF
PPTX
Html and css
PDF
Web Development 3 (HTML & CSS)
PDF
Web Development 1 (HTML & CSS)
PPTX
What is CSS?
PPTX
Week 12 CSS - Review from last week
DOC
Css introduction
PPT
Introduction to CSS
PPT
Higher Computing Science HTML
PPT
Introduction to Cascading Style Sheets (CSS)
ODP
PPT
Higher Computing Science CSS
PPTX
Cascading style sheets
PPTX
Css types internal, external and inline (1)
PPTX
Lecture4 web design and development
PPTX
Responsive web design with html5 and css3
PDF
Web Development 4
Ia css
chitra
CSS (Cascading Style Sheet)
Html and css
Web Development 3 (HTML & CSS)
Web Development 1 (HTML & CSS)
What is CSS?
Week 12 CSS - Review from last week
Css introduction
Introduction to CSS
Higher Computing Science HTML
Introduction to Cascading Style Sheets (CSS)
Higher Computing Science CSS
Cascading style sheets
Css types internal, external and inline (1)
Lecture4 web design and development
Responsive web design with html5 and css3
Web Development 4
Ad

Similar to Web Development - Lecture 3 (20)

PPTX
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
PPTX
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
PPTX
Learn html Basics
PPTX
HTML5 2019
PPTX
Introduction to html
PDF
HTML - part 1
PPTX
HTML : INTRODUCTION TO WEB DESIGN Presentation
PPTX
BITM3730Week1.pptx
PPT
html
PPTX
content creator passionate about architecture, culture, and design.
PPT
HTML (Hyper Text Markup Language)
PPTX
Web Design HTML for beginners and advanced learners .pptx
PPTX
Learning html. (Part- 1)
PPTX
Introduction to html
PDF
PPT-203105353-1.pdf
PPSX
HTML Comprehensive Overview
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
Learn html Basics
HTML5 2019
Introduction to html
HTML - part 1
HTML : INTRODUCTION TO WEB DESIGN Presentation
BITM3730Week1.pptx
html
content creator passionate about architecture, culture, and design.
HTML (Hyper Text Markup Language)
Web Design HTML for beginners and advanced learners .pptx
Learning html. (Part- 1)
Introduction to html
PPT-203105353-1.pdf
HTML Comprehensive Overview
Ad

Recently uploaded (20)

PPTX
2. Earth - The Living Planet earth and life
PDF
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
PDF
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
PPTX
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
PDF
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
PPTX
2. Earth - The Living Planet Module 2ELS
PPTX
Cell Membrane: Structure, Composition & Functions
PDF
. Radiology Case Scenariosssssssssssssss
PDF
Biophysics 2.pdffffffffffffffffffffffffff
PPTX
ECG_Course_Presentation د.محمد صقران ppt
PPTX
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
PPTX
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
PDF
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
PPTX
Comparative Structure of Integument in Vertebrates.pptx
PPTX
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
PPTX
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
PPTX
7. General Toxicologyfor clinical phrmacy.pptx
PDF
diccionario toefl examen de ingles para principiante
PDF
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
PPTX
microscope-Lecturecjchchchchcuvuvhc.pptx
2. Earth - The Living Planet earth and life
ELS_Q1_Module-11_Formation-of-Rock-Layers_v2.pdf
VARICELLA VACCINATION: A POTENTIAL STRATEGY FOR PREVENTING MULTIPLE SCLEROSIS
GEN. BIO 1 - CELL TYPES & CELL MODIFICATIONS
IFIT3 RNA-binding activity primores influenza A viruz infection and translati...
2. Earth - The Living Planet Module 2ELS
Cell Membrane: Structure, Composition & Functions
. Radiology Case Scenariosssssssssssssss
Biophysics 2.pdffffffffffffffffffffffffff
ECG_Course_Presentation د.محمد صقران ppt
ANEMIA WITH LEUKOPENIA MDS 07_25.pptx htggtftgt fredrctvg
SCIENCE10 Q1 5 WK8 Evidence Supporting Plate Movement.pptx
Mastering Bioreactors and Media Sterilization: A Complete Guide to Sterile Fe...
Comparative Structure of Integument in Vertebrates.pptx
Vitamins & Minerals: Complete Guide to Functions, Food Sources, Deficiency Si...
cpcsea ppt.pptxssssssssssssssjjdjdndndddd
7. General Toxicologyfor clinical phrmacy.pptx
diccionario toefl examen de ingles para principiante
Unveiling a 36 billion solar mass black hole at the centre of the Cosmic Hors...
microscope-Lecturecjchchchchcuvuvhc.pptx

Web Development - Lecture 3

  • 4. HTMLTags • What are HTML tags? • The hidden keywords within a webpage that define how our web browser must format & display the content. • Most tags have two parts an opening part & a closing part e.g. <html> is opening tag & </html> is the closing tag.
  • 5. Continued… • Some common HTML tags are given below: • Headings • Paragraphs • Label • Images • Tables • Lists
  • 6. Continued… • Headings • Headings are defined with <h1> to <h6> tags • <h1> defines the most important heading while <h6> defines the least important heading. • <h1> should be used for main heading, followed by <h2> headings, then the less important <h3> & so on…
  • 8. Continued… • Importance of Headings • Search engines use the headings to index the structure & content of your web pages. • Users skim our pages by its headings, so it’s important to use headings to show the document structure.
  • 9. Continued… • Paragraphs • The HTML <p> tag defines a paragraph. • Never forget the end tag, else it might produce unexpected results or errors.
  • 10. Continued… • Label • The <label> tag defines a label. • The <label> element provides a usability improvement for mouse users, because if the user clicks on the text within the <label> element, it toggles the control. • The for attribute of <label> tag should be equal to the id attribute of the related element to bind them together.
  • 11. Continued… • Images • The <img> tag defines an image in an HTML page. • The <img> tag has two required attributes: src & alt • src: defines the url or path of the image. • alt: specifies an alternate text for an image. • Where some common attributes are height, width, border etc
  • 12. Continued… • Table • The <table> tag defines an HTML table • An HTML table consists of the <table> element & one or more <tr>, <th> & <td> elements. • More complex HTML table may also include <caption>, <tbody>, <colgroup>, <thead> & <tfoot>
  • 13. Continued… Tags Description <tr> Defines a table row <th> Defines a table heading <td> Defines a table cell <tbody> Used to group the body content in an HTML table <thead> Used to group header content in an HTML table <tfoot> Used to group footer content in an HTML table <caption> Defines a table caption <col> Specifies column properties for each column within a <colgroup> element <colgroup> Specifies a group of one or more columns in a table for formatting
  • 15. Continued… • Lists • There are three types of lists a. Unordered Lists b. Ordered Lists c. Description Lists
  • 16. Continued… • Unordered Lists • A collection of related items that have no special order or sequence. • An unordered list starts with <ul> tag & each list tem starts with <li> tag. • Each item in the link is marked with bullets.
  • 18. Continued… • Ordered Lists • A collection of related items that have special sequence or order. • An unordered list starts with <ol> tag & each list tem starts with <li> tag. • Each item in the link is marked with numbers or alphabets.
  • 20. Continued… • Description Lists • HTML also supports description lists. • A description list is a list of terms, with a description of each term. • The <dl> tag defines the description list, the <dt> tag defines the term (name) & the <dd> tag defines each term. • The definition list is the ideal way to present a glossary, list of terms, or other name/value list.