BBS140 Internet Technologies
BBS140 Internet Technologies
BBS140 Internet Technologies
Mr Bwalya
Internet
“information highway”.
Rather than moving through geographical
between computers.
Participate in discussion groups, such as
protocol pathname
http://www.chicagosymphony.org/civicconcerts/index.htm
behaviour.
Devices that typically support SNMP include
Yahoo www.yahoo.com
Excite www.excite.com
Lycos www.lycos.com
AltaVista www/alta-vista.com
MSN WebSearch www.search.msn.com
How to find information on the Web?
You can find information by two basic
means.
Search by Topic and Search by keywords.
Some search services offer both methods,
others only one.
Yahoo offers both.
Search by Topic
such <p>
Tags tell Web browser how to display a page
Can have either *.htm or *.html file extension
42
Why HTML became XHTML
HTML was originally a SGML application
◦ Tags described the syntax
◦ A DTD could check the syntax
◦ Informal mapping from syntax to rendering
43
XHTML Basics
Very few real changes from HTML
But more strict
◦ Empty tags
◦ Paired tags
44
HTML Basics
3 Parts to an XHTML or HTML document
◦ DOCTYPE
What DTD are you using
◦ Head
Meta information
Only <title> is required
◦ Body
Text to render
45
HTML Document Structure
46
HTML Basics
Tags
◦ Elements
◦ Attributes
Entities
◦ <,>,&,‘ ’
◦ Ö,ð,÷,©, etc.
Comments
47
XHTML Tags vs. Elements
Tag is markup to represent an element
48
XHTML Tags vs. Elements
Block-level and in-line elements
◦ TABLE, P, BLOCKQUOTE, DIV, etc.
◦ CODE, Q, H1, SPAN, etc.
Grouping Elements
◦ DIV
◦ SPAN
One-part elements
◦ BR, etc.
49
HTML Elements
Tags are the elements that create the
components of a page
Tags surrounded by angle brackets < >
Usually come in pairs
50
Your created HTML document
<html>
<head>
<title> …document title… </title>
</head>
<body>
…your page content…
</body>
</html>
51
Page Components
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
◦ First line of code
◦ Declaration of version of HTML <html>
<head>
<html>…</html> <title> …
◦ Container for the document document title…
</title>
<head>…</head> </head>
◦ <title> Title of page </title> <body>
…your page
<body>…</body> content…
◦ Content of page </body>
</html>
52
Basic Tags
Headings
◦ <h1>…</h1> to <h6>…</h6>
◦ Like in Word
◦ See example
Paragraph
◦ <p>… </p>
◦ Inserts a line space before and after a paragraph
◦ See example
http://library.manoa.hawaii.edu/about/exhibits/index.html
53
Example of use of Heading
54
Link Tag
Link
◦ Anchor tag <a>…</a>
◦ 3 kinds
Link to page in same folder
Link to page in different folder
Link to outside webpage on the Internet.
55
Example of Anchor Tag
◦ 2 components
Address
Text or description – this is what you see
on the page
56
Image Source Tag
Empty tag – no closing tag
Components of Img tag
57
Specify file location
Same folder: “pic.gif”
◦ Document-relative link
◦ Look for image in same folder
58
Division Tag
<div>…</div>
◦ Division or section of document
◦ Use to group elements to apply formatting or style
◦ Example: all text within div tag will be fuschia
<div style="color: #FF00FF">
<h1> Title of section</h1>
<p> bla bla bla bla </p>
</div>
59
60
Exercise
Add a paragraph
Add some links
Add an image
Create 3 divisions
61
Your session1 HTML document
<html>
<head>
<title> …document title… </title>
</head>
<body>
…your page content…
</body>
</html>
62
End Product
<html>
<head>
<title>Caitlin’s Page</title>
</head>
<body>
<div>
<a href="index.html>Home</a><br />
<a href="courses.html">Courses</a><br />
<a href="personal.html">Personal</a><br />
</div>
<p>Hello my name is Caitlin Nelson and I am writing about myself. Contact info:
63
Next Mission
Choose colors for your page
◦ Text color
◦ Link color
◦ Background color
64
The End
Questions???