Introduction To HTML Programming
Introduction To HTML Programming
• IIntroduction
t d ti tto b
basic
i webb programming
i
• HTML code
• HTML using authoring software
Page ‐ 2
1
8/13/2010
Wh t iis HTML??
What
Page ‐ 3
Whatat is
s HTML?
- a special kind of text document that is
used by Web browsers to present text
and graphics.
The text includes markup tags
e.g <p> to indicate the start of a
paragraph, and </p> to indicate the
end of a paragraph..
Page ‐ 4
2
8/13/2010
What is HTML?
Page ‐ 5
Page ‐ 6
3
8/13/2010
http://www.layoutgalaxy.com/html-tutorial/nonlinear.php4
Page ‐ 7
Page ‐ 8
4
8/13/2010
Page ‐ 9
Page ‐ 10
5
8/13/2010
Basic elements
Page ‐ 11
Basic elements
Page ‐ 12
6
8/13/2010
Basic elements
Elements are the basic structure for HTML markup. Elements have two
basic properties: attributes and content
Basic elements
Presentational : <b>boldface</b>
Structure : <h2>Golf</h2>
Hypertext :
<a href="http://en.wikipedia.org/">Wikipedia</a>,
7
8/13/2010
Learn basic HTML the right way and remember that the tags must come in a
certain order. The basic structure of a web page is as follows:
<HTML>
<HEAD>
HEAD Here you can put important document information such as frames,
H i d i f i h f
language, and special instructions.
<TITLE>Title of your page.</TITLE>
</HEAD>
<BODY> Put your story, pictures, links, and everything else here.
<H1>Heading of your paragraph.</H1>
<P>This
P This is where you enter the text of your document.
is where you enter the text of your document.</P>
/P
This is how to write a link:
<A HREF="http://www.nameofpage.com">Title or what you want to say.</A>
</BODY>
</HTML>
Page ‐ 15
Basic elements
<HTML>
<HEAD> <TITLE> Environmental Change Project </TITLE>
</HEAD>
<BODY>
<h1> Environmental Change Project </h1>
Welcome to the home page of the Environmental Change Project..
<p> So how will we do this. Well we do the following
<ul> <li><A HREF="burn.html">Burn</A> more forests.
<li> Destroy the <A> HREF
HREF="http://who
http://who.zoo.do/ozone.html
zoo do/ozone html">Ozone</A>
Ozone</A>
layer.
<li> Birth more <A
HREF="ftp:foo.do.do/environmentally_friendly.gif">cows</a> </ul>
</BODY>
</HTML>
Page ‐ 16
8
8/13/2010
Basic strructure
Page ‐ 17
Elements : Structural
<html>
<head>
<title>This is the title of the
page</title>
</head>
<body>This is my first homepage.
homepage
<b>This text is bold</b>
</body>
</html>
Page ‐ 18
9
8/13/2010
Page ‐ 19
HEADING
<BODY>
<H1>Level 1 Heading</H1>
<H2>Level 2 Heading</H2>
<H3>Level 3 Heading</H3>
<H4>Level 4 Heading</H4>
<H5>Level 5 Heading</H5>
<H6>Level 6 Heading</H6>
</BODY>
Page ‐ 20
10
8/13/2010
<BODY>
<P align=center>
This is a centered paragraph.
</P>
</BODY>
Page ‐ 21
Center
<BODY>
<CENTER>
untuk set center
<P>
<FONT color=blue>
xxxxxx
</FONT>
</CENTER>
</BODY>
Page ‐ 22
11
8/13/2010
<BODY bgcolor=black
text=white>
<H1>Hi! I am Megat.</H1>
</BODY>
Teks putih
Backgroun
d hitam
Page ‐ 23
Down.htm
down.html
??
Apa .shtml
Apa .asp
Apa .php
Page ‐ 24
12
8/13/2010
What is HTML??
Page ‐ 25
tutorial
HTML Tutorial
•http://www.w3schools.com/html/default.asp
•HTML Tutorial (pdf-local)
Page ‐ 26
13
8/13/2010
HTML EDITOR
Page ‐ 27
14
8/13/2010
15