Professional Documents
Culture Documents
INTRODUCTION TO
COMPUTERS
Introduction To HTML
Instructor
Course
Contents
2
Getting Started..
What is HTML?
Web Browser
is a computer program which is used to view a
Web page.
Browser implements the following functions:
Search and access to a Web-server;
Loading, formatting, and displaying HTMLdocument;
Hyperlink detection and moving from one
document to another;
Standard support tools.
<HTML>
<HEAD>
<TITLE>WENT'99</TITLE>
</HEAD>
<BODY>
Went'99
</BODY>
</HTML>
See what it
looks like:
HTML Features
10
Hypertext,
HTML Files
11
HTML Rules
13
Case insensitive
Spacing:
Browsers ignore extra spaces
Tag Attributes
14
Attribute Values
15
Nesting Tags
16
Correct:
<H1> Information <I>System</I></H1>
Incorrect:
<H1> Information <I>System</H1></I>
Tags
17
in head
HTML Document
18
<HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
<HEAD>
<BODY>
Tags
in Body
21
Heading:
<H1> </H1>
Center:<Center> </Center>
Line Break <P> ,<Br>
Phrase Markups: <I></I> ,<B></B>
Create a List
Unordered list : <UL><li>
Ordered list: <OL><li>
Nested
<H1> </H1>
Heading.
<H2> </H2>
Heading.
<H3> </H3>
Heading.
<BLOCKQUOTE> </ BLOCKQUOTE >
Indents block of text one
tab.
24
Size in pt.
10
12
14
18
24
36
Ordered List
25
26
Unordered List
<UL TYPE=shape > Beginning an
Unordered List
<LI> </LI> A list element
<LI> </LI> Another list element
</UL>
End of the Unordered List
TYPE is optional, shape represents the kind of
bullet, like circle, square
http://www.atkinson.yorku.ca/~marina/itec.htm
Scheme
Server name
Path
File name
URL can be
Absolute contains all parts of URL;
Relative presents path and file name relatively
current file.
Scheme
28
http://www.site.com/dir/hpage.html
ftp://ftp.site.com/common/prog.exe
mailto:marina@yorku.ca
file:///Cdisk/ITEC1010/COL.html
External Link
31
Internal link
32
an anchor
Add a hyperlink to the anchor
Creating Anchors
33
Within a document
To a separate document
<A HREF=mailto:name@website.ext>
Say HELLO!!!</A>
Click on hypertext Say HELLO!!! will invoke an
application such as MS Outlook to send E-mail to
the address
name@website.ext.
Images
36
<IMG SRC=image_URL>
SRC source of the image (file address)
Another attributes:
BORDER=n, n-thickness of the border in pixels
ALT alternative text
WIDTH width of an image in pixels
HEIGHT height of an image in pixels
ALIGN position on a page
<IMG SRC=images/pic1.bmp WIDTH=30
HEIGHT=30 ALT=Digimon
ALIGN=left >
37
number :
Color names : <Font color=white>
Changing the Background color
<BODY BGCOLOR=#19378a>
Changing
Text color
color
<FONT COLOR=#66ffcc>WENT'99</FONT>
Image
Background