SlideShare a Scribd company logo
Chapter 8
Introduction to HTML and
Applets
Fundamentals of Java
Fundamentals of Java
2
Objectives
 Understand the basic features of hypertext,
hypermedia, and the World Wide Web.
 Use basic HTML markup tags to format text
for a Web page.
 Construct an HTML list and an HTML table to
represent a linear sequence of items and a
two-dimensional grid of items, respectively.
Fundamentals of Java
3
Objectives (cont.)
 Use the appropriate markup tags to include
images in Web pages.
 Create links to other Web pages using
absolute or relative path names.
 Convert a Java application to an applet and
embed the applet in a Web page.
 Understand the constraints on applets that
distinguish them from Java applications.
Fundamentals of Java
4
Vocabulary
 Absolute path name
 Associative link
 Definition list
 External image
 Hyperlinks
 Hypermedia
 Hypertext
Fundamentals of Java
5
Vocabulary (cont.)
 Hypertext markup language (HTML)
 Inline image
 Markup tag
 Memex
 Relative path name
 Uniform resource locator (URL)
Fundamentals of Java
6
Hypertext, Hypermedia, and the
World Wide Web
 Memex: Theoretical machine proposed by
Vannevar Bush in 1945 that would link
information in tables by keys
– Every computer would have a memex that was
linked to the memexes on other computers.
– Associative links between computers:
 Could be traced backwards and forwards
Fundamentals of Java
7
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 Hypertext: A structure consisting of nodes
and links between them
– Links to other nodes typically displayed to users
as embedded, highlighted terms within a given
chunk of text
 Early hypertext systems:
– Douglas Englebart’s NLS/Augment (1968)
– Cognetics Corporation’s Hyperties (mid-1980s)
Fundamentals of Java
8
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 Hypermedia: Extended hypertext that adds:
– GUIs
– Images
– Sound
– Animation
– Applications
Fundamentals of Java
9
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 With development of the Internet, people
began to think of sharing hypertext across a
network of communicating machines.
– Each node is a page.
– Each page is linked to the World Wide Web.
 The Web consists of:
– Servers: House pages of information
– Clients: Run browsers to access information
on servers
Fundamentals of Java
10
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 When you view a page in a browser and click
on a link:
– The browser sends a message to the node’s
machine, requesting a transfer of its
information.
– If the request is successful, the information at
the node is downloaded to the user’s browser.
Fundamentals of Java
11
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 Networked hypermedia systems require
uniform means of:
– Representing data via a machine-independent
hypertext markup language
– Assigning node addresses using machine-
independent uniform resource locators
(URLs)
Fundamentals of Java
12
Hypertext, Hypermedia, and the
World Wide Web (cont.)
 Networked hypermedia systems require
uniform means of (cont.):
– Transmitting information from site to site using
machine-independent network transmission
protocols
– Displaying information with browsers from
different vendors
Fundamentals of Java
13
Overview of the Hypertext
Markup Language
 Hypertext markup language (HTML):
Machine-independent language for
representing information in a networked-
based hypermedia system
 Markup tags: Indicate format of textual
elements or links to other nodes
Fundamentals of Java
14
Overview of the Hypertext
Markup Language (cont.)
Figure 8-1: The Internet
Fundamentals of Java
15
Overview of the Hypertext
Markup Language (cont.)
Figure 8-2: Simple Web page
Fundamentals of Java
16
Overview of the Hypertext
Markup Language (cont.)
 HTML for the simple Web page:
Fundamentals of Java
17
Overview of the Hypertext
Markup Language (cont.)
 The document must be stored in a file having
the extension:
– “.html” on a UNIX system
– “.htm” on a Windows system
 Markup tags begin with a left angle bracket
(<) and end with a right angle bracket (>).
– Not case sensitive
Fundamentals of Java
18
Overview of the Hypertext
Markup Language (cont.)
 Tags often occur in pairs.
– Mark the start and end of a tag.
– <TITLE> and </TITLE>
 Tags can include attributes.
– <P ALIGN=CENTER>
Fundamentals of Java
19
Overview of the Hypertext
Markup Language (cont.)
Table 8-1: Basic HTML markup tags
Fundamentals of Java
20
Overview of the Hypertext
Markup Language (cont.)
 Minimal document structure:
Fundamentals of Java
21
Overview of the Hypertext
Markup Language (cont.)
 HTML tag: Informs browser that it is dealing
with an HTML document
 HEAD tag: Identifies first part of document
 TITLE tag: Identifies document’s title
– Displayed at top of browser’s window
– Used during searches for the document
 BODY tags: Enclose information provided by
the HTML document
Fundamentals of Java
22
Simple Text Elements
 Headings: Six levels
– H1 through H6
– Different font size and style than normal text
– <Hnumber>Heading Text</Hnumber>
 Paragraphs: Contained within <P>…</P>
Fundamentals of Java
23
Simple Text Elements (cont.)
 Forced line breaks: <br> tag
 Preformatted text: Display text “as is”
– Contained within <Pre>…</Pre> tags
Fundamentals of Java
24
Character-Level Formatting
Table 8-2: Some character format tags
Fundamentals of Java
25
Character-Level Formatting (cont.)
 Escape sequences: Codes to display
special characters
Table 8-3: Some escape sequences
Fundamentals of Java
26
Lists
 Unordered (bulleted) lists: Tag <UL>
 Numbered (ordered) lists: Tag <OL>
 Definition (association) lists: Tag <DL>
 For bulleted and ordered lists, use <LI> tag
for each element in the list.
 For definition lists, use <DT> tag for terms
and <DD> tag for definitions.
Fundamentals of Java
27
Lists (cont.)
 Unordered list example:
 Definition list example:
Fundamentals of Java
28
Lists (cont.)
 Nested list example:
Fundamentals of Java
29
Lists (cont.)
Figure 8-4: Nested list
Fundamentals of Java
30
Linking to Other Documents
 Links (hyperlinks or hypertext
references): Allow readers to move to other
pages in the Web
– Anchor tag: <A>
– Can appear anywhere within any html
document
– Hyperlinked text is highlighted in some way
when displayed:
 Underlined or a different color, or both
Fundamentals of Java
31
Linking to Other Documents
(cont.)
 Steps to place a link in a document:
– 1. Identify target document that will be at link’s
other end.
 Path name or URL
– 2. Determine text that labels the link in the
browser.
– 3. Place this information within an anchor.
 <A HREF="target document
identifier">text of link</A>
Fundamentals of Java
32
Linking to Other Documents
(cont.)
 Path names:
– Absolute path name: Specifies exact position of
the file in the computer’s directory structure
– Relative path name: Specifies a document’s
position relative to that of the currently displayed
document
 Uniform resource locator (URL): Used to
specify files on another computer
– http://server name/document path name
Fundamentals of Java
33
Linking to Other Documents
(cont.)
Table 8-4: Relative path names to MyPage.html
Fundamentals of Java
34
Multimedia
 Inline images: Displayed when user opens a
page
– <IMG SRC="ImageLocation">
– Images can be in GIF or JPEG format.
– Size attributes:
 <IMG SRC="mypicture.gif" HEIGHT=100
WIDTH=100>
– Alignment attribute:
 <IMG SRC="mypicture.gif" ALIGN=CENTER>
Fundamentals of Java
35
Multimedia (cont.)
 External images: Not displayed until user
clicks on a link
– Use the anchor tag
– <A HREF="mypicture.gif">Sample
picture</A>
 Colors and backgrounds: String of three,
two-digit hexadecimal numbers specifies a
color by indicating RGB value.
Fundamentals of Java
36
Multimedia (cont.)
Table 8-5: Some hypermedia filename extensions
Fundamentals of Java
37
Tables
Figure 8-8: A table
Fundamentals of Java
38
Tables (cont.)
Table 8-6: Table format tags
Fundamentals of Java
39
Tables (cont.)
Table 8-7: Table attributes
Fundamentals of Java
40
Tables (cont.)
 Typical table
format:
Fundamentals of Java
41
Applets
 A Java application that runs in a Web page
– Two components necessary:
 HTML document that contains an applet markup
tag
 Byte code file for the applet
 An applet markup tag has the following form:
– <APPLET CODE="byte code file name"
WIDTH=width HEIGHT=height></APPLET>
 Applets present a graphical user interface.
Fundamentals of Java
42
Applets (cont.)
Figure 8-9: Applet within a Web page
Fundamentals of Java
43
Applets (cont.)
 HTML
code:
Fundamentals of Java
44
Applets (cont.)
 Converting a Java application to an applet:
– Replace the name JFrame with the name
JApplet at the beginning of the class definition
(extends JApplet).
– Replace constructor by the method init:
Fundamentals of Java
45
Applets (cont.)
Example 8.2: Applet with a specialized panel
Fundamentals of Java
46
Applets (cont.)
 Sun’s applet viewer: Allows programmer to
run an applet and view just its GUI
– Without the surrounding Web page
– Steps to use applet viewer:
 Compile the Java source program as usual.
 Create HTML file with at least the minimal applet
tag for the applet.
 At the command line prompt, run
appletviewer <html file name>.
Fundamentals of Java
47
Applets (cont.)
 Constraints on applets:
– Cannot access local files
– Byte code file and html file should be in same
directory.
– Dialog boxes may appear differently.
 Loading images into an applet:
Fundamentals of Java
48
Applets (cont.)
 Passing parameters to applets:
– Example HTML:
 Accessing the parameter from the applet
class:
Fundamentals of Java
49
Summary
 The World Wide Web is a hypermedia
system that allows users to navigate among
and use resources in a nonlinear manner.
 HTML tags can format text for Web pages.
 Links to other pages using absolute or
relative path names can be included in HTML
elements.
Fundamentals of Java
50
Summary (cont.)
 Web pages can contain applets or Java
applications that are downloaded from a Web
server and run in the user’s Web browser.
 A few steps are needed to convert an
application to an applet.
 Applets have most of the functionality of
applications, including the GUI, but they lack
file access to the user’s disks.

More Related Content

What's hot

Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
Mukesh Tekwani
 
Java swing 1
Java swing 1Java swing 1
Java swing 1
Mukesh Tekwani
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorials
cesarmendez78
 
Book management system
Book management systemBook management system
Book management system
SHARDA SHARAN
 
Chap02
Chap02Chap02
Chap02
Terry Yoast
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsSAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
Garuda Trainings
 
Assignment11
Assignment11Assignment11
Assignment11
Sunita Milind Dol
 
Java chapter 3
Java   chapter 3Java   chapter 3
Java chapter 3
Mukesh Tekwani
 
Handout#08
Handout#08Handout#08
Handout#08
Sunita Milind Dol
 
C# Unit 2 notes
C# Unit 2 notesC# Unit 2 notes
C# Unit 2 notes
Sudarshan Dhondaley
 
Assignment1
Assignment1Assignment1
Assignment1
Sunita Milind Dol
 
Handout#09
Handout#09Handout#09
Handout#09
Sunita Milind Dol
 
Handout#05
Handout#05Handout#05
Handout#05
Sunita Milind Dol
 
Handout#02
Handout#02Handout#02
Handout#02
Sunita Milind Dol
 
Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...
Warren0989
 
Introduction of C++ By Pawan Thakur
Introduction of C++ By Pawan ThakurIntroduction of C++ By Pawan Thakur
Introduction of C++ By Pawan Thakur
Govt. P.G. College Dharamshala
 
Handout#03
Handout#03Handout#03
Handout#03
Sunita Milind Dol
 
C programming course material
C programming course materialC programming course material
C programming course material
Ranjitha Murthy
 
Basics of Java
Basics of JavaBasics of Java
Basics of Java
Prarabdh Garg
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Dr. Rosemarie Sibbaluca-Guirre
 

What's hot (20)

Java chapter 1
Java   chapter 1Java   chapter 1
Java chapter 1
 
Java swing 1
Java swing 1Java swing 1
Java swing 1
 
Abap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorialsAbap object-oriented-programming-tutorials
Abap object-oriented-programming-tutorials
 
Book management system
Book management systemBook management system
Book management system
 
Chap02
Chap02Chap02
Chap02
 
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda TrainingsSAP ABAP Latest Interview Questions with Answers by Garuda Trainings
SAP ABAP Latest Interview Questions with Answers by Garuda Trainings
 
Assignment11
Assignment11Assignment11
Assignment11
 
Java chapter 3
Java   chapter 3Java   chapter 3
Java chapter 3
 
Handout#08
Handout#08Handout#08
Handout#08
 
C# Unit 2 notes
C# Unit 2 notesC# Unit 2 notes
C# Unit 2 notes
 
Assignment1
Assignment1Assignment1
Assignment1
 
Handout#09
Handout#09Handout#09
Handout#09
 
Handout#05
Handout#05Handout#05
Handout#05
 
Handout#02
Handout#02Handout#02
Handout#02
 
Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...
 
Introduction of C++ By Pawan Thakur
Introduction of C++ By Pawan ThakurIntroduction of C++ By Pawan Thakur
Introduction of C++ By Pawan Thakur
 
Handout#03
Handout#03Handout#03
Handout#03
 
C programming course material
C programming course materialC programming course material
C programming course material
 
Basics of Java
Basics of JavaBasics of Java
Basics of Java
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 

Similar to Ppt chapter08

Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
SANTOSH RATH
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1
ghkadous
 
As pnet
As pnetAs pnet
Vskills angular js sample material
Vskills angular js sample materialVskills angular js sample material
Vskills angular js sample material
Vskills
 
Asp.net
Asp.netAsp.net
Asp.net
vijilakshmi51
 
3) web development
3) web development3) web development
3) web development
techbed
 
Web engineering
Web engineeringWeb engineering
Web engineering
Mushtaq Ahmad Jan
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
Hassen Poreya
 
abdelwahab alsammak_Chapter 1-Internet concepts.ppt
abdelwahab alsammak_Chapter 1-Internet concepts.pptabdelwahab alsammak_Chapter 1-Internet concepts.ppt
abdelwahab alsammak_Chapter 1-Internet concepts.ppt
David319172
 
Rendering engine
Rendering engineRendering engine
Rendering engine
Dharita Chokshi
 
Html
HtmlHtml
Html
kousika
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
Mohammad Kamrul Hasan
 
Www(alyssa) (2)
Www(alyssa) (2)Www(alyssa) (2)
Www(alyssa) (2)
alyssamarieparal
 
web services8 (1).pdf for computer science
web services8 (1).pdf for computer scienceweb services8 (1).pdf for computer science
web services8 (1).pdf for computer science
optimusnotch44
 
Web Design
Web DesignWeb Design
Web Design
Rawshan Ali
 
Science kjadnckj ljnadjc lk cnldj cj nlzkdncaj
Science kjadnckj ljnadjc lk cnldj cj nlzkdncajScience kjadnckj ljnadjc lk cnldj cj nlzkdncaj
Science kjadnckj ljnadjc lk cnldj cj nlzkdncaj
kefije9797
 
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhwWD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
kefije9797
 
World Wide Web
World Wide WebWorld Wide Web
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
Prashant Kumar
 
Web browser
Web browserWeb browser
Web browser
Abhijeet Shah
 

Similar to Ppt chapter08 (20)

Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1
 
As pnet
As pnetAs pnet
As pnet
 
Vskills angular js sample material
Vskills angular js sample materialVskills angular js sample material
Vskills angular js sample material
 
Asp.net
Asp.netAsp.net
Asp.net
 
3) web development
3) web development3) web development
3) web development
 
Web engineering
Web engineeringWeb engineering
Web engineering
 
Web app development_html_01
Web app development_html_01Web app development_html_01
Web app development_html_01
 
abdelwahab alsammak_Chapter 1-Internet concepts.ppt
abdelwahab alsammak_Chapter 1-Internet concepts.pptabdelwahab alsammak_Chapter 1-Internet concepts.ppt
abdelwahab alsammak_Chapter 1-Internet concepts.ppt
 
Rendering engine
Rendering engineRendering engine
Rendering engine
 
Html
HtmlHtml
Html
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
 
Www(alyssa) (2)
Www(alyssa) (2)Www(alyssa) (2)
Www(alyssa) (2)
 
web services8 (1).pdf for computer science
web services8 (1).pdf for computer scienceweb services8 (1).pdf for computer science
web services8 (1).pdf for computer science
 
Web Design
Web DesignWeb Design
Web Design
 
Science kjadnckj ljnadjc lk cnldj cj nlzkdncaj
Science kjadnckj ljnadjc lk cnldj cj nlzkdncajScience kjadnckj ljnadjc lk cnldj cj nlzkdncaj
Science kjadnckj ljnadjc lk cnldj cj nlzkdncaj
 
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhwWD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
WD 2 Less Gooooooooooofwfweujb iefieniwenfwefuhw
 
World Wide Web
World Wide WebWorld Wide Web
World Wide Web
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 
Web browser
Web browserWeb browser
Web browser
 

More from Richard Styner

OneNote for Students.pptx
OneNote for Students.pptxOneNote for Students.pptx
OneNote for Students.pptx
Richard Styner
 
Hopscotch.docx
Hopscotch.docxHopscotch.docx
Hopscotch.docx
Richard Styner
 
Lit Review + Case Study (1).docx
Lit Review + Case Study (1).docxLit Review + Case Study (1).docx
Lit Review + Case Study (1).docx
Richard Styner
 
udlspace.docx
udlspace.docxudlspace.docx
udlspace.docx
Richard Styner
 
Documentary Video UDL Lesson.docx
Documentary Video UDL Lesson.docxDocumentary Video UDL Lesson.docx
Documentary Video UDL Lesson.docx
Richard Styner
 
rubric.docx
rubric.docxrubric.docx
rubric.docx
Richard Styner
 
Ppt chapter06
Ppt chapter06Ppt chapter06
Ppt chapter06
Richard Styner
 
Ppt chapter05
Ppt chapter05Ppt chapter05
Ppt chapter05
Richard Styner
 
Ppt chapter04
Ppt chapter04Ppt chapter04
Ppt chapter04
Richard Styner
 
Ppt chapter03
Ppt chapter03Ppt chapter03
Ppt chapter03
Richard Styner
 
Ppt chapter12
Ppt chapter12Ppt chapter12
Ppt chapter12
Richard Styner
 
Ppt chapter11
Ppt chapter11Ppt chapter11
Ppt chapter11
Richard Styner
 
Ppt chapter10
Ppt chapter10Ppt chapter10
Ppt chapter10
Richard Styner
 
Ppt chapter09
Ppt chapter09Ppt chapter09
Ppt chapter09
Richard Styner
 
Pptchapter04
Pptchapter04Pptchapter04
Pptchapter04
Richard Styner
 
Richard Styner Issues and trends
Richard Styner Issues and trendsRichard Styner Issues and trends
Richard Styner Issues and trends
Richard Styner
 
Ppt chapter 01
Ppt chapter 01Ppt chapter 01
Ppt chapter 01
Richard Styner
 
Tech mentoring project presentation
Tech mentoring project presentationTech mentoring project presentation
Tech mentoring project presentation
Richard Styner
 
The Photoshop Effect
The Photoshop EffectThe Photoshop Effect
The Photoshop Effect
Richard Styner
 
Stanford Solar Center Joint Curriculum
Stanford Solar Center Joint CurriculumStanford Solar Center Joint Curriculum
Stanford Solar Center Joint Curriculum
Richard Styner
 

More from Richard Styner (20)

OneNote for Students.pptx
OneNote for Students.pptxOneNote for Students.pptx
OneNote for Students.pptx
 
Hopscotch.docx
Hopscotch.docxHopscotch.docx
Hopscotch.docx
 
Lit Review + Case Study (1).docx
Lit Review + Case Study (1).docxLit Review + Case Study (1).docx
Lit Review + Case Study (1).docx
 
udlspace.docx
udlspace.docxudlspace.docx
udlspace.docx
 
Documentary Video UDL Lesson.docx
Documentary Video UDL Lesson.docxDocumentary Video UDL Lesson.docx
Documentary Video UDL Lesson.docx
 
rubric.docx
rubric.docxrubric.docx
rubric.docx
 
Ppt chapter06
Ppt chapter06Ppt chapter06
Ppt chapter06
 
Ppt chapter05
Ppt chapter05Ppt chapter05
Ppt chapter05
 
Ppt chapter04
Ppt chapter04Ppt chapter04
Ppt chapter04
 
Ppt chapter03
Ppt chapter03Ppt chapter03
Ppt chapter03
 
Ppt chapter12
Ppt chapter12Ppt chapter12
Ppt chapter12
 
Ppt chapter11
Ppt chapter11Ppt chapter11
Ppt chapter11
 
Ppt chapter10
Ppt chapter10Ppt chapter10
Ppt chapter10
 
Ppt chapter09
Ppt chapter09Ppt chapter09
Ppt chapter09
 
Pptchapter04
Pptchapter04Pptchapter04
Pptchapter04
 
Richard Styner Issues and trends
Richard Styner Issues and trendsRichard Styner Issues and trends
Richard Styner Issues and trends
 
Ppt chapter 01
Ppt chapter 01Ppt chapter 01
Ppt chapter 01
 
Tech mentoring project presentation
Tech mentoring project presentationTech mentoring project presentation
Tech mentoring project presentation
 
The Photoshop Effect
The Photoshop EffectThe Photoshop Effect
The Photoshop Effect
 
Stanford Solar Center Joint Curriculum
Stanford Solar Center Joint CurriculumStanford Solar Center Joint Curriculum
Stanford Solar Center Joint Curriculum
 

Recently uploaded

Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 

Recently uploaded (20)

Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 

Ppt chapter08

  • 1. Chapter 8 Introduction to HTML and Applets Fundamentals of Java
  • 2. Fundamentals of Java 2 Objectives  Understand the basic features of hypertext, hypermedia, and the World Wide Web.  Use basic HTML markup tags to format text for a Web page.  Construct an HTML list and an HTML table to represent a linear sequence of items and a two-dimensional grid of items, respectively.
  • 3. Fundamentals of Java 3 Objectives (cont.)  Use the appropriate markup tags to include images in Web pages.  Create links to other Web pages using absolute or relative path names.  Convert a Java application to an applet and embed the applet in a Web page.  Understand the constraints on applets that distinguish them from Java applications.
  • 4. Fundamentals of Java 4 Vocabulary  Absolute path name  Associative link  Definition list  External image  Hyperlinks  Hypermedia  Hypertext
  • 5. Fundamentals of Java 5 Vocabulary (cont.)  Hypertext markup language (HTML)  Inline image  Markup tag  Memex  Relative path name  Uniform resource locator (URL)
  • 6. Fundamentals of Java 6 Hypertext, Hypermedia, and the World Wide Web  Memex: Theoretical machine proposed by Vannevar Bush in 1945 that would link information in tables by keys – Every computer would have a memex that was linked to the memexes on other computers. – Associative links between computers:  Could be traced backwards and forwards
  • 7. Fundamentals of Java 7 Hypertext, Hypermedia, and the World Wide Web (cont.)  Hypertext: A structure consisting of nodes and links between them – Links to other nodes typically displayed to users as embedded, highlighted terms within a given chunk of text  Early hypertext systems: – Douglas Englebart’s NLS/Augment (1968) – Cognetics Corporation’s Hyperties (mid-1980s)
  • 8. Fundamentals of Java 8 Hypertext, Hypermedia, and the World Wide Web (cont.)  Hypermedia: Extended hypertext that adds: – GUIs – Images – Sound – Animation – Applications
  • 9. Fundamentals of Java 9 Hypertext, Hypermedia, and the World Wide Web (cont.)  With development of the Internet, people began to think of sharing hypertext across a network of communicating machines. – Each node is a page. – Each page is linked to the World Wide Web.  The Web consists of: – Servers: House pages of information – Clients: Run browsers to access information on servers
  • 10. Fundamentals of Java 10 Hypertext, Hypermedia, and the World Wide Web (cont.)  When you view a page in a browser and click on a link: – The browser sends a message to the node’s machine, requesting a transfer of its information. – If the request is successful, the information at the node is downloaded to the user’s browser.
  • 11. Fundamentals of Java 11 Hypertext, Hypermedia, and the World Wide Web (cont.)  Networked hypermedia systems require uniform means of: – Representing data via a machine-independent hypertext markup language – Assigning node addresses using machine- independent uniform resource locators (URLs)
  • 12. Fundamentals of Java 12 Hypertext, Hypermedia, and the World Wide Web (cont.)  Networked hypermedia systems require uniform means of (cont.): – Transmitting information from site to site using machine-independent network transmission protocols – Displaying information with browsers from different vendors
  • 13. Fundamentals of Java 13 Overview of the Hypertext Markup Language  Hypertext markup language (HTML): Machine-independent language for representing information in a networked- based hypermedia system  Markup tags: Indicate format of textual elements or links to other nodes
  • 14. Fundamentals of Java 14 Overview of the Hypertext Markup Language (cont.) Figure 8-1: The Internet
  • 15. Fundamentals of Java 15 Overview of the Hypertext Markup Language (cont.) Figure 8-2: Simple Web page
  • 16. Fundamentals of Java 16 Overview of the Hypertext Markup Language (cont.)  HTML for the simple Web page:
  • 17. Fundamentals of Java 17 Overview of the Hypertext Markup Language (cont.)  The document must be stored in a file having the extension: – “.html” on a UNIX system – “.htm” on a Windows system  Markup tags begin with a left angle bracket (<) and end with a right angle bracket (>). – Not case sensitive
  • 18. Fundamentals of Java 18 Overview of the Hypertext Markup Language (cont.)  Tags often occur in pairs. – Mark the start and end of a tag. – <TITLE> and </TITLE>  Tags can include attributes. – <P ALIGN=CENTER>
  • 19. Fundamentals of Java 19 Overview of the Hypertext Markup Language (cont.) Table 8-1: Basic HTML markup tags
  • 20. Fundamentals of Java 20 Overview of the Hypertext Markup Language (cont.)  Minimal document structure:
  • 21. Fundamentals of Java 21 Overview of the Hypertext Markup Language (cont.)  HTML tag: Informs browser that it is dealing with an HTML document  HEAD tag: Identifies first part of document  TITLE tag: Identifies document’s title – Displayed at top of browser’s window – Used during searches for the document  BODY tags: Enclose information provided by the HTML document
  • 22. Fundamentals of Java 22 Simple Text Elements  Headings: Six levels – H1 through H6 – Different font size and style than normal text – <Hnumber>Heading Text</Hnumber>  Paragraphs: Contained within <P>…</P>
  • 23. Fundamentals of Java 23 Simple Text Elements (cont.)  Forced line breaks: <br> tag  Preformatted text: Display text “as is” – Contained within <Pre>…</Pre> tags
  • 24. Fundamentals of Java 24 Character-Level Formatting Table 8-2: Some character format tags
  • 25. Fundamentals of Java 25 Character-Level Formatting (cont.)  Escape sequences: Codes to display special characters Table 8-3: Some escape sequences
  • 26. Fundamentals of Java 26 Lists  Unordered (bulleted) lists: Tag <UL>  Numbered (ordered) lists: Tag <OL>  Definition (association) lists: Tag <DL>  For bulleted and ordered lists, use <LI> tag for each element in the list.  For definition lists, use <DT> tag for terms and <DD> tag for definitions.
  • 27. Fundamentals of Java 27 Lists (cont.)  Unordered list example:  Definition list example:
  • 28. Fundamentals of Java 28 Lists (cont.)  Nested list example:
  • 29. Fundamentals of Java 29 Lists (cont.) Figure 8-4: Nested list
  • 30. Fundamentals of Java 30 Linking to Other Documents  Links (hyperlinks or hypertext references): Allow readers to move to other pages in the Web – Anchor tag: <A> – Can appear anywhere within any html document – Hyperlinked text is highlighted in some way when displayed:  Underlined or a different color, or both
  • 31. Fundamentals of Java 31 Linking to Other Documents (cont.)  Steps to place a link in a document: – 1. Identify target document that will be at link’s other end.  Path name or URL – 2. Determine text that labels the link in the browser. – 3. Place this information within an anchor.  <A HREF="target document identifier">text of link</A>
  • 32. Fundamentals of Java 32 Linking to Other Documents (cont.)  Path names: – Absolute path name: Specifies exact position of the file in the computer’s directory structure – Relative path name: Specifies a document’s position relative to that of the currently displayed document  Uniform resource locator (URL): Used to specify files on another computer – http://server name/document path name
  • 33. Fundamentals of Java 33 Linking to Other Documents (cont.) Table 8-4: Relative path names to MyPage.html
  • 34. Fundamentals of Java 34 Multimedia  Inline images: Displayed when user opens a page – <IMG SRC="ImageLocation"> – Images can be in GIF or JPEG format. – Size attributes:  <IMG SRC="mypicture.gif" HEIGHT=100 WIDTH=100> – Alignment attribute:  <IMG SRC="mypicture.gif" ALIGN=CENTER>
  • 35. Fundamentals of Java 35 Multimedia (cont.)  External images: Not displayed until user clicks on a link – Use the anchor tag – <A HREF="mypicture.gif">Sample picture</A>  Colors and backgrounds: String of three, two-digit hexadecimal numbers specifies a color by indicating RGB value.
  • 36. Fundamentals of Java 36 Multimedia (cont.) Table 8-5: Some hypermedia filename extensions
  • 38. Fundamentals of Java 38 Tables (cont.) Table 8-6: Table format tags
  • 39. Fundamentals of Java 39 Tables (cont.) Table 8-7: Table attributes
  • 40. Fundamentals of Java 40 Tables (cont.)  Typical table format:
  • 41. Fundamentals of Java 41 Applets  A Java application that runs in a Web page – Two components necessary:  HTML document that contains an applet markup tag  Byte code file for the applet  An applet markup tag has the following form: – <APPLET CODE="byte code file name" WIDTH=width HEIGHT=height></APPLET>  Applets present a graphical user interface.
  • 42. Fundamentals of Java 42 Applets (cont.) Figure 8-9: Applet within a Web page
  • 43. Fundamentals of Java 43 Applets (cont.)  HTML code:
  • 44. Fundamentals of Java 44 Applets (cont.)  Converting a Java application to an applet: – Replace the name JFrame with the name JApplet at the beginning of the class definition (extends JApplet). – Replace constructor by the method init:
  • 45. Fundamentals of Java 45 Applets (cont.) Example 8.2: Applet with a specialized panel
  • 46. Fundamentals of Java 46 Applets (cont.)  Sun’s applet viewer: Allows programmer to run an applet and view just its GUI – Without the surrounding Web page – Steps to use applet viewer:  Compile the Java source program as usual.  Create HTML file with at least the minimal applet tag for the applet.  At the command line prompt, run appletviewer <html file name>.
  • 47. Fundamentals of Java 47 Applets (cont.)  Constraints on applets: – Cannot access local files – Byte code file and html file should be in same directory. – Dialog boxes may appear differently.  Loading images into an applet:
  • 48. Fundamentals of Java 48 Applets (cont.)  Passing parameters to applets: – Example HTML:  Accessing the parameter from the applet class:
  • 49. Fundamentals of Java 49 Summary  The World Wide Web is a hypermedia system that allows users to navigate among and use resources in a nonlinear manner.  HTML tags can format text for Web pages.  Links to other pages using absolute or relative path names can be included in HTML elements.
  • 50. Fundamentals of Java 50 Summary (cont.)  Web pages can contain applets or Java applications that are downloaded from a Web server and run in the user’s Web browser.  A few steps are needed to convert an application to an applet.  Applets have most of the functionality of applications, including the GUI, but they lack file access to the user’s disks.