SlideShare a Scribd company logo
1 of 25
Chapter 1- HYPERTEXT MARKUP
LANGUAGE (HTML5)
1. Understand terminologies of web
servers
2. Create web page using HTML5
3. Use hyperlinks to navigate web
page
4. Create table, form and use
frameset in a web page
Terminologies of Web Server
Web Page Browser Hyperlink
URL
Domain
Name
IP
Address
HTTP
What is HTML?
• HTML is a language for describing web pages.
• HTML stands for Hyper Text Markup Language
• HTML is a markup language
• A markup language is a set of markup tags
• The tags describe document content
• HTML documents contain HTML tags and
plain text
• HTML documents are also called web pages
Create Web Page Using HTML5
• Type this:
<!DOCTYPE html>
<html>
<body>
<h1>This is Heading</h1>
<p>This is Paragraph.</p>
</body>
</html>
Define document type
Use Hyperlink
• So far we have learned about the HTML5
structure and elements.
• To create a hyperlink, we will be using one of
the HTML5 elements which is element a, short
for anchor.
• The a element is using ”href” (short
for hypertext reference) attribute that will link
the element a to website address, file name or
any part of a file that you specify.
Navigate between pages
• The href attribute specifies the destination of
a link.
<a href="http://www.w3schools.com/">Visit W3Schools</a>
Navigate within a page
• An anchor with an id inside an HTML document:
<a id="tips">Useful Tips Section</a>
• Create a link to the "Useful Tips Section" inside the same
document:
<a href="#tips">Visit the Useful Tips Section</a>
• Or, create a link to the "Useful Tips Section" from another page:
<a href="http://www.w3schools.com/html_links.htm#tips">
Visit the Useful Tips Section</a>
HTML5 Terminologies
• Tags
– Keyword surrounded by angle brackets
– E.g: <html>
• Elements
– Everything between start tag and end tag,
including tags.
– E.g: <p>This is a paragraph.</p>
• Attributes ?????
Create table
• 3 important tags:
<table>
- Parent tag to define a html table
<tr>
- Stands for “table row”
- Defined inside table tag
<td>
- Stands for “table data”
- Defined inside tr tag
- Hold contents of each table cell such as text, image,
link or other table
Table example 1(without border)
• Type this:
<table>
<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>
Table example 2(with border)
• Type this:
<table border="1">
<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>
Table example 3(with header)
• Type this:
<table border="1">
<tr>
<th>Name</th>
<th>Address</th>
<th>Telephone</th>
</tr>
<tr>
<td>Dmytri</td>
<td>Palo Alto</td>
<td>555 77 855</td>
</tr>
</table>
Table example 4(vertical header)
• Type this:
<table border="1">
<tr>
<th>Name:</th>
<td>Dmytri</td>
</tr>
<tr>
<th>Address:</th>
<td>Palo Alto</td>
</tr>
<tr>
<th>Telephone:</th>
<td>555 77 855</td>
</tr>
</table>
Table example 5(table caption)
• Type this:
<table border="1">
<caption>Students Information</caption>
<tr>
<th>Name</th>
<th>Matrix Number</th>
</tr>
<tr>
<td>Dmytri</td>
<td>03DIP10F1010</td>
</tr>
<tr>
<td>Eisenberg</td>
<td>03DIP10F1011</td>
</tr>
</table>
Table example 6(cellpadding)
Without cellpadding
<table border="1">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
With cellpadding
<table border="1"
cellpadding="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
Table example 7(cellspacing)
<table border="1"
cellspacing="10">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
Without cellspacing With cellspacing
<table border="1">
<tr>
<td>First</td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>
Table example 8(table span)
spans two columns spans two rows
<table border="1">
<tr>
<th>Name</th>
<th
colspan="2">Telephone</th>
</tr>
<tr>
<td>Dmytri</td>
<td>555 77 854</td>
<td>555 77 855</td>
</tr>
</table>
<table border="1">
<tr>
<th>First Name:</th>
<td>Bill Gates</td>
</tr>
<tr>
<th
rowspan="2">Telephone:</th>
<td>555 77 854</td>
</tr>
<tr>
<td>555 77 855</td>
</tr>
</table>
Align text in cells (align Attribute)
<table border="1" align="right">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$80</td>
</tr>
</table>
• deprecated in HTML
4.01
• not supported in
HTML5
• use CSS to align text
Align text in cells (using CSS)
• Align every cell in the table
• Align every header cell in the table
td,th {
text-align: center;
}
th {
text-align: center;
}
Align text in cells (using CSS)
• Align specific cells in the table
– Add class attribute to td tag:
<td class="centered-cell">
– Add the following to the style sheet
td,th {
text-align: center;
}
Frame and Frameset
• Frame
– One section of a
window within a
frameset
• Frameset
– Parent window
which divide a web
page into several frames
Create Form
• HTML forms are used to pass data to a server.
• An HTML form can contain input elements like
– text fields
– checkboxes
– radio-buttons
– submit buttons
– select lists
– textarea
– fieldset
– legend
– label
The <form> tag
• is used to create an HTML form:
<form>
.
input elements
.
</form>
The Input Element
• The most important form element is the
<input> element.
• The <input> element is used to select user
information.
• An <input> element can vary in many ways,
depending on the type attribute.
• An <input> element can be of type text field,
checkbox, password, radio button, submit
button, and more.
Text Fields
• <input type="text"> defines a one-line input
field that a user can enter text into:
<form>
First name: <input type="text"
name="firstname"><br>
Last name: <input type="text" name="lastname">
</form>

More Related Content

What's hot

Css tutorial
Css tutorialCss tutorial
Css tutorialvedaste
 
Css introduction
Css introductionCss introduction
Css introductionSridhar P
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheetvijayta
 
HTML5 2019
HTML5 2019HTML5 2019
HTML5 2019rfojdar
 
CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)Ajay Khatri
 
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
Std 10 Computer  Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...Std 10 Computer  Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...Nuzhat Memon
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpointAnastasia1993
 
IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSSVlad Posea
 

What's hot (20)

HTML Intro
HTML IntroHTML Intro
HTML Intro
 
Css tutorial
Css tutorialCss tutorial
Css tutorial
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Css introduction
Css introductionCss introduction
Css introduction
 
HTML CSS Basics
HTML CSS BasicsHTML CSS Basics
HTML CSS Basics
 
Cascading Style Sheet
Cascading Style SheetCascading Style Sheet
Cascading Style Sheet
 
Css introduction
Css  introductionCss  introduction
Css introduction
 
HTML basics
HTML basicsHTML basics
HTML basics
 
HTML Webinar Class
HTML Webinar ClassHTML Webinar Class
HTML Webinar Class
 
CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)CSS (Cascading Style Sheet)
CSS (Cascading Style Sheet)
 
HTML5 2019
HTML5 2019HTML5 2019
HTML5 2019
 
Css
CssCss
Css
 
CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)CSS Basics (Cascading Style Sheet)
CSS Basics (Cascading Style Sheet)
 
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
Std 10 Computer  Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...Std 10 Computer  Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
Std 10 Computer Chapter 1- Introduction to HTML - Basic Formatting Tag in HT...
 
Html tables
Html tablesHtml tables
Html tables
 
Html
HtmlHtml
Html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
Elements of html powerpoint
Elements of html powerpointElements of html powerpoint
Elements of html powerpoint
 
What is CSS?
What is CSS?What is CSS?
What is CSS?
 
IPW 3rd Course - CSS
IPW 3rd Course - CSSIPW 3rd Course - CSS
IPW 3rd Course - CSS
 

Viewers also liked

Methanofuran_Biosynthesis-Jones
Methanofuran_Biosynthesis-JonesMethanofuran_Biosynthesis-Jones
Methanofuran_Biosynthesis-JonesMichael K Jones
 
Author's purpose
Author's purposeAuthor's purpose
Author's purposetinapezz
 
Michael Graf’x Photography
Michael Graf’x PhotographyMichael Graf’x Photography
Michael Graf’x PhotographyJustin Gahring
 
Kinsey comm202 week 8
Kinsey comm202 week 8Kinsey comm202 week 8
Kinsey comm202 week 8kmpowell1993
 
Kinsey comm202 week 9
Kinsey comm202 week 9Kinsey comm202 week 9
Kinsey comm202 week 9kmpowell1993
 
Kinsey comm202 week 10
Kinsey comm202 week 10Kinsey comm202 week 10
Kinsey comm202 week 10kmpowell1993
 
Blue Ridge Honey Company
Blue Ridge Honey CompanyBlue Ridge Honey Company
Blue Ridge Honey CompanyJustin Gahring
 
Michael Grafx Photography Paper
Michael Grafx Photography PaperMichael Grafx Photography Paper
Michael Grafx Photography PaperJustin Gahring
 
Maquette prog jeune print
Maquette prog jeune printMaquette prog jeune print
Maquette prog jeune printstereolux
 

Viewers also liked (11)

Methanofuran_Biosynthesis-Jones
Methanofuran_Biosynthesis-JonesMethanofuran_Biosynthesis-Jones
Methanofuran_Biosynthesis-Jones
 
Author's purpose
Author's purposeAuthor's purpose
Author's purpose
 
Michael Graf’x Photography
Michael Graf’x PhotographyMichael Graf’x Photography
Michael Graf’x Photography
 
Kinsey comm202 week 8
Kinsey comm202 week 8Kinsey comm202 week 8
Kinsey comm202 week 8
 
NAFTA
NAFTANAFTA
NAFTA
 
Kinsey comm202 week 9
Kinsey comm202 week 9Kinsey comm202 week 9
Kinsey comm202 week 9
 
Kinsey comm202 week 10
Kinsey comm202 week 10Kinsey comm202 week 10
Kinsey comm202 week 10
 
Blue Ridge Honey Company
Blue Ridge Honey CompanyBlue Ridge Honey Company
Blue Ridge Honey Company
 
Michael Grafx Photography Paper
Michael Grafx Photography PaperMichael Grafx Photography Paper
Michael Grafx Photography Paper
 
Maquette prog jeune print
Maquette prog jeune printMaquette prog jeune print
Maquette prog jeune print
 
HONEY MARKETING PLAN
HONEY MARKETING PLANHONEY MARKETING PLAN
HONEY MARKETING PLAN
 

Similar to CHAPTER 1

Similar to CHAPTER 1 (20)

BITM3730Week1.pptx
BITM3730Week1.pptxBITM3730Week1.pptx
BITM3730Week1.pptx
 
Html introduction
Html introductionHtml introduction
Html introduction
 
Html and css
Html and cssHtml and css
Html and css
 
Intro to HTML5
Intro to HTML5Intro to HTML5
Intro to HTML5
 
Html 5
Html 5Html 5
Html 5
 
Learn html Basics
Learn html BasicsLearn html Basics
Learn html Basics
 
1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx1-22-24 INFO 2106.pptx
1-22-24 INFO 2106.pptx
 
HTML
HTMLHTML
HTML
 
BITM3730 9-12.pptx
BITM3730 9-12.pptxBITM3730 9-12.pptx
BITM3730 9-12.pptx
 
Html5 css3
Html5 css3Html5 css3
Html5 css3
 
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptxlearnhtmlbyvipuladissanayake-170516061515 (1).pptx
learnhtmlbyvipuladissanayake-170516061515 (1).pptx
 
Html (1)
Html (1)Html (1)
Html (1)
 
BITM3730Week2.pptx
BITM3730Week2.pptxBITM3730Week2.pptx
BITM3730Week2.pptx
 
INTRODUCTION FOR HTML
INTRODUCTION  FOR HTML INTRODUCTION  FOR HTML
INTRODUCTION FOR HTML
 
FFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTMLFFW Gabrovo PMG - HTML
FFW Gabrovo PMG - HTML
 
BITM3730 9-13.pptx
BITM3730 9-13.pptxBITM3730 9-13.pptx
BITM3730 9-13.pptx
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
html
htmlhtml
html
 
Html Workshop
Html WorkshopHtml Workshop
Html Workshop
 
HTML - LinkedIn
HTML - LinkedInHTML - LinkedIn
HTML - LinkedIn
 

Recently uploaded

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

CHAPTER 1

  • 1. Chapter 1- HYPERTEXT MARKUP LANGUAGE (HTML5) 1. Understand terminologies of web servers 2. Create web page using HTML5 3. Use hyperlinks to navigate web page 4. Create table, form and use frameset in a web page
  • 2. Terminologies of Web Server Web Page Browser Hyperlink URL Domain Name IP Address HTTP
  • 3. What is HTML? • HTML is a language for describing web pages. • HTML stands for Hyper Text Markup Language • HTML is a markup language • A markup language is a set of markup tags • The tags describe document content • HTML documents contain HTML tags and plain text • HTML documents are also called web pages
  • 4. Create Web Page Using HTML5 • Type this: <!DOCTYPE html> <html> <body> <h1>This is Heading</h1> <p>This is Paragraph.</p> </body> </html> Define document type
  • 5. Use Hyperlink • So far we have learned about the HTML5 structure and elements. • To create a hyperlink, we will be using one of the HTML5 elements which is element a, short for anchor. • The a element is using ”href” (short for hypertext reference) attribute that will link the element a to website address, file name or any part of a file that you specify.
  • 6. Navigate between pages • The href attribute specifies the destination of a link. <a href="http://www.w3schools.com/">Visit W3Schools</a>
  • 7. Navigate within a page • An anchor with an id inside an HTML document: <a id="tips">Useful Tips Section</a> • Create a link to the "Useful Tips Section" inside the same document: <a href="#tips">Visit the Useful Tips Section</a> • Or, create a link to the "Useful Tips Section" from another page: <a href="http://www.w3schools.com/html_links.htm#tips"> Visit the Useful Tips Section</a>
  • 8. HTML5 Terminologies • Tags – Keyword surrounded by angle brackets – E.g: <html> • Elements – Everything between start tag and end tag, including tags. – E.g: <p>This is a paragraph.</p> • Attributes ?????
  • 9. Create table • 3 important tags: <table> - Parent tag to define a html table <tr> - Stands for “table row” - Defined inside table tag <td> - Stands for “table data” - Defined inside tr tag - Hold contents of each table cell such as text, image, link or other table
  • 10. Table example 1(without border) • Type this: <table> <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>
  • 11. Table example 2(with border) • Type this: <table border="1"> <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>
  • 12. Table example 3(with header) • Type this: <table border="1"> <tr> <th>Name</th> <th>Address</th> <th>Telephone</th> </tr> <tr> <td>Dmytri</td> <td>Palo Alto</td> <td>555 77 855</td> </tr> </table>
  • 13. Table example 4(vertical header) • Type this: <table border="1"> <tr> <th>Name:</th> <td>Dmytri</td> </tr> <tr> <th>Address:</th> <td>Palo Alto</td> </tr> <tr> <th>Telephone:</th> <td>555 77 855</td> </tr> </table>
  • 14. Table example 5(table caption) • Type this: <table border="1"> <caption>Students Information</caption> <tr> <th>Name</th> <th>Matrix Number</th> </tr> <tr> <td>Dmytri</td> <td>03DIP10F1010</td> </tr> <tr> <td>Eisenberg</td> <td>03DIP10F1011</td> </tr> </table>
  • 15. Table example 6(cellpadding) Without cellpadding <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> With cellpadding <table border="1" cellpadding="10"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table>
  • 16. Table example 7(cellspacing) <table border="1" cellspacing="10"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table> Without cellspacing With cellspacing <table border="1"> <tr> <td>First</td> <td>Row</td> </tr> <tr> <td>Second</td> <td>Row</td> </tr> </table>
  • 17. Table example 8(table span) spans two columns spans two rows <table border="1"> <tr> <th>Name</th> <th colspan="2">Telephone</th> </tr> <tr> <td>Dmytri</td> <td>555 77 854</td> <td>555 77 855</td> </tr> </table> <table border="1"> <tr> <th>First Name:</th> <td>Bill Gates</td> </tr> <tr> <th rowspan="2">Telephone:</th> <td>555 77 854</td> </tr> <tr> <td>555 77 855</td> </tr> </table>
  • 18. Align text in cells (align Attribute) <table border="1" align="right"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$80</td> </tr> </table> • deprecated in HTML 4.01 • not supported in HTML5 • use CSS to align text
  • 19. Align text in cells (using CSS) • Align every cell in the table • Align every header cell in the table td,th { text-align: center; } th { text-align: center; }
  • 20. Align text in cells (using CSS) • Align specific cells in the table – Add class attribute to td tag: <td class="centered-cell"> – Add the following to the style sheet td,th { text-align: center; }
  • 21. Frame and Frameset • Frame – One section of a window within a frameset • Frameset – Parent window which divide a web page into several frames
  • 22. Create Form • HTML forms are used to pass data to a server. • An HTML form can contain input elements like – text fields – checkboxes – radio-buttons – submit buttons – select lists – textarea – fieldset – legend – label
  • 23. The <form> tag • is used to create an HTML form: <form> . input elements . </form>
  • 24. The Input Element • The most important form element is the <input> element. • The <input> element is used to select user information. • An <input> element can vary in many ways, depending on the type attribute. • An <input> element can be of type text field, checkbox, password, radio button, submit button, and more.
  • 25. Text Fields • <input type="text"> defines a one-line input field that a user can enter text into: <form> First name: <input type="text" name="firstname"><br> Last name: <input type="text" name="lastname"> </form>