Beruflich Dokumente
Kultur Dokumente
HTML – Part II
1
HTML Lists
Types of Lists
2
Unnumbered List
3
Unnumbered List (Example 1)
<html>
<head><title> Bulleted list 1 </title></head>
4
Numbered List
5
Numbered List (Example 1)
<html>
<head><title> Numbered list 1 </title></head>
6
Numbered List (Example 3)
<html>
<head><title> Numbered list 3 </title></head>
Definition List
7
Definition List (contd.)
• Example:
<DL>
<DT> TCP
<DD> Transmission Control Protocol
<DT> UDP
<DD> User Datagram Protocol
<DT> IP
<DD> Internet Protocol
</DL>
8
Nesting of Lists
9
Nesting of Lists (Example 2)
<html><head><title> List Nesting 2 </title></head>
<body text=white bgcolor=blue>
Specifying Hyperlinks
10
Hyperlinks
Hyperlinks (contd.)
11
Relative versus Absolute URLs
• Relative URL
¾Provides a link to another document relative
to the location of the current document.
¾Commonly used when referring to
documents residing on the same web site.
¾Examples:
<a href=“TENNIS/sania.html”> Sania Mirza </a>
<a href=“../NEWS/cricket.html”> Cricket </a>
¾These kind of links are called relative links.
• Absolute URL
¾The complete path name of the document in
the server is specified.
¾Necessary when linking to documents on
other servers.
¾Example:
<a href=“www.iitkgp.ac.in/people/isg/paper5.pdf”>
One of my recent papers </a>
12
Linking to Specific Sections
Hyperlinks (Example)
13
Inline Images and Other
Documents
Inline Images
14
Inline Images (contd.)
15
Inline Images (Example 2)
<html>
<body>
<img src =book.gif align ="left" width="48"
height="48">
A paragraph with an image. The image will float to the
left of this text.
<p>
<img src =book.gif align ="right" width="48"
height="48">
A paragraph with an image. The image will float to the
right of this text.
</body>
</html>
VIEW
<html>
<body>
<img src="book.gif" width="20" height="20"> <p>
<img src="book.gif" width="45" height="45"> <p>
<img src="book.gif" width="70" height="70"> <p>
Resizing an image by changing the values in the
"height" and "width" attributes of the img tag.
</body>
</html>
VIEW
16
Inline Images (Example 4)
<html>
<body>
It is possible to use an image as a link. Click on the
image below to go to google.
<P>
<a href=“www.google.com">
<img src=book.gif>
</a>
</body>
</html>
VIEW
17
SOLUTIONS TO QUIZ
QUESTIONS ON
LECTURE 13
18
Quiz Solutions on Lecture 13
19
Quiz Solutions on Lecture 13
QUIZ QUESTIONS ON
LECTURE 14
20
Quiz Questions on Lecture 14
21
BACK
BACK
22
BACK
BACK
23
BACK
BACK
24
BACK
BACK
25
BACK
BACK
26
BACK
BACK
27
BACK
28