Introduction To Web Design and Applications: Lecture 4 A
Introduction To Web Design and Applications: Lecture 4 A
Introduction To Web Design and Applications: Lecture 4 A
and Applications
APT 1040
LECTURE 4 A
By Bernard Ondiek
[email protected]
ORDERED
UNORDERED
Unordered
Ordered listlist
II. apples
apples
III.bananas
bananas
IV.grapes
grapes
V. strawberries
strawberries
Ordered list
<html>
<head>
<title>orderd lists</title>
</head>
<body bgcolor=“lavender”>
<H1><center>ordered list</center></H1>
<ol type=‘i’ start=‘2’>
<li>apples</li>
<li>bananas</li>
<li>grapes</li>
<li>strawberries</li>
</ol>
</body>
</html>
Intro to Web Design and Apllication 5
Now…..
Tweek the webpage to display
1,2,3
A,B,C
I, II,III
a,b,c
Unordered list
<ul>
<li>apples</li>
<li>bananas</li>
<li>grapes</li>
<li>strawberries</li>
</ul>
Try
Circle
Disc
Square
3.TANZANIA
o ARUSHA
o DAR
o DODOMA
4. UGANDA
A. KAMPALA
B. ENTEBBE
C. MBARARA
BORDER=value
ALIGN=left|right|center
CELLSPACING=value
CELLPADDING=value
WIDTH=value|percent
Student Grade
Tom B-
Sue A+
Class
Grades
16
HTML – Fundamentals
Tables
Student Grades
Student Grade
Tom
A
Sue
1024 x 768
800 x 600
640 x 480
Tables are frequently used to layout the basic web page design.
1280
Basic Frames
Floating Frames (inline frames)
Picture in picture
Banner
Menu Content
Footer
Basic tags
<frameset> ..</frameset>
<frame />
<noframes> .. </noframes>
Basic attributes
cols = “values”
rows = “values”
name = “frame_name”
src = “frame_source(url)”
target = “frame_name”
Banner
Menu Content
Footer
<frameset rows=“80,*,80”>
<frame src=“banner.html” />
<frameset cols = “25%,75%” >
<frame src=“menu.html” />
<frame src=“content.html” />
</frameset>
<frame src=“footer.html” />
</frameset>
FRAMESET attributes
FRAMEBORDER="yes|no"|0
BORDER=pixels
BORDERCOLOR="#hexcolor|colorname"
SCROLLING="yes|no|auto"
NORESIZE
MARGINWIDTH=pixels
MARGINHEIGHT="pixels"
BORDERCOLOR="color"
FRAMESPACING="pixels"
FRAMEBORDER="yes|no"|0
NAME=“frame_name”
Intro to Web Design and Apllication 31
HTML – Fundamentals
Floating Frames
Basic Floating
Frames Frames
Intro to Web Design and Apllication 32
HTML – Fundamentals
Floating Frames
Attributes
SRC=URL
HEIGHT=pixels|percent,
WIDTH=pixels|percent
HSPACE=pixels
VSPACE=pixels
ALIGN=left|right
FRAMEBORDER=0
Intro to Web Design and Apllication 33
HTML – Fundamentals
Floating Frames
<IFRAME
NAME=“frame_name”
ALIGN="right"
HSPACE=“40”
VSPACE=“40”
WIDTH="75%"
HEIGHT=“150”
FRAMEBORDER=0
SRC=http://www.mysite/mypage.htm >
</IFRAME>
Intro to Web Design and Apllication 34
HTML – Fundamentals
Hypertext links
Content
position
ed
within
this
Intro to Web Design and Apllication 36
block
HTML – Fundamentals
DIV
attributes
ID=“name”
STYLE = “style parameters re: CSS”
content
</DIV>
Intro to Web Design and Apllication 38
HTML – Fundamentals
DIV
content
content
contentc
content content
content
content
element.class {property:value; }
Intro to Web Design and Apllication 43
HTML – Fundamentals
CASCADING STYLE SHEETS (CSS)
Embedded
<head>
<title> My Page Title </title>
mystyles.css
<head>
<LINK REL="stylesheet" HREF="mystyles.css“ TYPE="text/css">
</head>
Intro to Web Design and Apllication 45
HTML – Fundamentals
CASCADING STYLE SHEETS (CSS)
/* Example style sheet file (note how this comment was created) */
Using IDs
IDs enable you to define a unique style which you can apply to a
number of elements.
<STYLE>
<!–
#copyright {font-style:italic; font-size:smaller; }
-->
</STYLE>