chapter2 html part2
TRANSCRIPT
-
7/28/2019 Chapter2 HTML Part2
1/15
2003 Prentice Hall, Inc.
All rights reserved.
Outline
Chapter 2
HTML
(Hypertext Markup Language)
Part II
-
7/28/2019 Chapter2 HTML Part2
2/15
Chap 2: Web Programming (CCSB144) - HTML
Topics
Internal Linking
Creating and Using Image Maps
Meta Elements
Form (will be learnt together with PHP topic)
-
7/28/2019 Chapter2 HTML Part2
3/15
Chap 2: Web Programming (CCSB144) - HTML
Internal Linking
Enables the user to jump between
locations in the same document
43
-
7/28/2019 Chapter2 HTML Part2
4/15
links.html
(1 of 3)
44
1 2 4
5 6 7
8 9 10 Internet and WWW How to Program - List11 12
13 14
15 16 The Best Features of the Internet17
18 19
Go to Favorite Bugs
2021 22 You can meet people from countries23 around the world.24
25 You have access to new media as it becomes public:
-
7/28/2019 Chapter2 HTML Part2
5/15
links.html
(2 of 3)
45
26 27 New games28 New applications29
30 For Business31 For Pleasure32 33 34
35 Around the clock news36 Search Engines37 Shopping38 Programming39 40 XHTML41 Java42 Dynamic HTML43 Scripts44 New languages45 46 47 48 49
50 Links
-
7/28/2019 Chapter2 HTML Part2
6/15
links.html
(3 of 3)
46
51 Keeping in touch with old friends52 It is the technology of the future!53 54
55 56 My 3 Favorite Bugs57
58
59
60 61 Go to Favorite Features62
6364 65 Fire Fly66 Gal Ant67 Roman Tic68 69
70 71
-
7/28/2019 Chapter2 HTML Part2
7/15Chap 2: Web Programming (CCSB144) - HTML47
-
7/28/2019 Chapter2 HTML Part2
8/15Chap 2: Web Programming (CCSB144) - HTML
Creating and Using Image Maps
Designate certain areas of an image
(called hotspots) as links
Element map
Attribute id Identifies the image map
Element area
Defines hotspot
Attribute shape and coords
Specify the hotspots shape and coordinates
Rectangular ( shape = rect )
Polygon ( shape = poly )
Circle ( shape = circle ) 48
1
-
7/28/2019 Chapter2 HTML Part2
9/15
picture.html
(1 of 3)
49
1 2 4
5 6 7
8 9 10 11 Internet and WWW How to Program - Image Map12 13 14
15 16
17
18
19 20 21
22 23 24
25
-
7/28/2019 Chapter2 HTML Part2
10/15
picture.html
(2 of 3)
50
25 28 31 33 36
37 38 39 42
43 44 45 48 49
50
-
7/28/2019 Chapter2 HTML Part2
11/15
picture.html(3 of 3)
51
50 51 52 54
55 56 -
7/28/2019 Chapter2 HTML Part2
12/15Chap 2: Web Programming (CCSB144) - HTML
meta Elements
Specify information about a document
Attribute name
Identifies the type of meta element
keywords ( name =keywords ) Provides search engines with a list of words that describe
a page
description ( name = description )
Provides a description of a site
Attribute content
Provides the information search engine use to
catalog pages
52
1
-
7/28/2019 Chapter2 HTML Part2
13/15
main.html
(1 of 2)
53
1 2 4
5 6 7
8 9 10 Internet and WWW How to Program - Welcome11
12 13 14 17
18 22
23 24
25
-
7/28/2019 Chapter2 HTML Part2
14/15
main.html
(2 of 2)
54
25 26
27 Welcome to Our Web Site!28
29
We have designed this site to teach about the wonders30 of XHTML. XHTML is31 better equipped than HTML to represent complex32 data on the Internet. XHTML takes advantage of33 XMLs strict syntax to ensure well-formedness. Soon you34 will know about many of the great new features of35 XHTML.
3637
Have Fun With the Site!
3839 40
-
7/28/2019 Chapter2 HTML Part2
15/15Chap 2: Web Programming (CCSB144) - HTML
The Meta Refresh
If your page has moved, or you have a
need to redirect your visitors automatically,
you can use a meta refresh to send them
the page of your choice.
55