Professional Documents
Culture Documents
Web Interface
Design
Lecturer : Ly Romny
E-mail :
Rly@mekong.edu.kh
Introductio
n
Cambodian Mekong University IS365
What is HTML?
HTML is a type of Standard
Generalized Markup Language. It
is portable, meaning it allows all
sorts of computers, all across the
world, to view documents
created in any SGML .HTML
allows portability across
platforms.
HTML come from the word
3
Cambodian Mekong University IS365
Protocol?
Protoco Example
lftp: ftp://ftp.fancyfoo.stuff/foob
ar.txt
Gophe gopher://deep.gopher.ho
r: le/
http: http://unreal.place.com/
mailto mailto:rly@mekong.edu.kh
:
news: News:alt.some.cool.newsgr
oup
telnet: telnet://user:password@ser
ver:port 11
Cambodian Mekong University IS365
Domain?
The domain name is the
second part of the URL. It
specifies the physical location
of the file or information
resource. A domain is the
computer that runs the server
software to handle the
protocol specified in the first
part of the URL 12
Cambodian Mekong University IS365
Ex:
Extension Meaning
.edu an educational sites
.com a commercial site or
business
.gov government sites
.org nonprofit organizations
.net usually an ISP sites 15
Cambodian Mekong University IS365
Anatomy of a Website
Website A collection of one or
more web pages linked together in
a meaningful way that, as a whole,
describes a body of information or
creates an overall effect
Web page A single document on a
website, usually consisting of an
HTML document and any items
that are displayed within that
17
Cambodian Mekong University IS365
21
Cambodian Mekong University IS365
So it is called empty .
Containers start with a
beginning tag, contain some
text that is modified by the
container, and end with and
ending, or closing tag. The
closing tag looks like the
beginning tag except that it
has a slash preceding its 23
Cambodian Mekong University IS365
Following is an example of a
container that causes the text
within it to appear in italics.
<I> is the beginning tag, and
</I> is the closing tag.
Ex: <I> this text is in
italics</I>
Attributes Many tags have
special attributes that offer a 24
Cambodian Mekong University IS365
<H1>Big Size
Incorrect
<I>Letter</H1></I> 27
Cambodian Mekong University IS365
29
Cambodian Mekong University IS365
File Names
File name, in all
lowercase letters Extension
Ex:
capital_punishment.html
Capital_Punishment.html
File names with capital letter are a pain
to type and to communicate
p://www.yoursite.com/WebPages/TORTURE/Capital_Punishment
31
Cambodian Mekong University IS365
32
Cambodian Mekong University IS365
Organizing Files
33
Cambodian Mekong University IS365
<BR>
The line break tag,<BR>,
cause the browser to stop the
current line and move cursor
to the left margin. It functions
like a carriage return on a
Ex: Robert Frost wrote:<BR>
keyboard.
“Two roads diverged in a yellow
wood,<BR>
And sorry i could not travel both<BR>
And be one traveler, long i stood<BR>
36
Cambodian Mekong University IS365
Figure 1
37
Cambodian Mekong University IS365
<HR>
The Horizontal rule tag,<HR>,
puts a horizontal line, or rule,
across the screen. This is an
Ex: empty tag.
Robert Frost wrote:
<HR SIZE=“3” WIDTH=“50%” ALIGN=“LEFT”>
“Two roads diverged in a yellow wood,<BR>
And sorry i could not travel both<BR>
And be one traveler, long i stood<BR>
(See Figure 2)
38
Cambodian Mekong University IS365
Figure 2
39
Cambodian Mekong University IS365
<BODY>
Attribute of <BODY>
BGCOLOR : The
BGCOLOR attribute
controls the background
color of the page. It is
expressed as a mixture of
red, green, and blue
(RGB). 40
Cambodian Mekong University IS365
42
Cambodian Mekong University IS365
44
Cambodian Mekong University IS365
46
Cambodian Mekong University IS365
48
Cambodian Mekong University IS365
Some Tags
<B>...</B>
<STRONG>....</STRONG>
<I>...</I>
<CITE>...</CITE>
<P>...</P>
<SUB>...</SUB>
<SUP>...</SUP>
<STRIKE>...</STRIKE>
49
Cambodian Mekong University IS365
<BASEFONT SIZE=n>
The<BASEFONT> tag is
useful for changing the size
of the font for the whole
page
Ex: <BASEFONT SIZE=4>
Size=5</BASEFONT>
50
Cambodian Mekong University IS365
51
Cambodian Mekong University IS365
Ex:
<HTML>
<HEAD>
<TITLE><FONT>with size
increments</TITLE>
<BODY>
This line is shown in the normal
font<BR>
<FONT SIZE=5
COLOR=“#0066FF”>Change the FONT
size bigger</FONT>
</BODY>
</HTML> 52
Cambodian Mekong University IS365
<IMG>
Attribute of <IMG> tag:
SRC=“URL”
WIDTH=“X”
HEIGHT=“Y”
ALT=“Text”
VSPACE=“M”
HSPACE=“N”
ALIGN=Direction
53
Cambodian Mekong University IS365
<html>
<head>
<title>Using <IMG> Tag</title>
</head>
<body>
<H1 align="center"> This picture below was
generate by using <br><IMG> with theirs
attribute
</H1>
<img src="204_browsers.jpg" alt="Using Alt
attribute in <IMG>Tag" align="left">
The width and height attributes tell the browser how
big the image is.
This allows the Web page to render more quickly, as
the browser can
allocate space for the image and then move on to the
rest.
If you load the image in Netscape, the width and 54
Cambodian Mekong University IS365
55
Cambodian Mekong University IS365
<A HREF=“URL”>
Ex:
<A
HREF=“http://www.cnn.com”>CNN</
A>
Ex: <PRE>
<PRE>
<b>Monday Tuesday
Wednesday<b>
AC101 EN101
EI101
COM103 HU127 56
Cambodian Mekong University IS365
57