Professional Documents
Culture Documents
Learn To Create Web Page Using HTML And Introduce To Formatting And Linking Web Pages
http://www.google.com/
Client
Web Page
Request
Contents
Server
Web Page
Editor
Protocol HTML
IP (Internet Protocol) HTTP (Hypertext Transfer Protocol) FTP (File Transfer Protocol)
HTML
HTML Syntax
<html> <Head> <Title> ..</title> </Head>
First Element
Second Element
Text Image Form Other Script
HEAD
BODY
Tag
Use tags to specify the format of the contents of a web page Two types of tags :
Container tag
To format blocks of text Have opening and closing tag <B>..</B>
Empty tag
To add features that are not related to formatting blocks of text Have only opening tag <BR>
Inserting Image
Graphic formats supporting by WWW
GIF JPEG BMP DIB TIFF/TIF PCX
Image tag
IMG
Used to insert the graphic in the web page
SRC
Used to specify the graphic file to be inserted in the web page
image_URL
Specifies the name of the file that contains the graphic to be inserted
Image Attribute
Image Insert To Document
Syntax <img src=Image name attribute=Value>
Attribute height width border Align ALT Value n n n Top,bottom,middle,left,right, center Default text that appear if the browser do not display the graphics
Links
Types of links
Hypertext links
Links between web pages
Section links
Links between different portions of a web page
Hypermedia links
To connect text files or multimedia files to a graphics
Hypertext Links
Anchor tag
HREF
Specify the URL of the linked document
Text
The text will displayed as a hypertext
</A>
The closing tag of anchor tag
Ex :
<A HREF=insert_graphic.htm> Clik</A> is A hypertext
Section Links
Use the Anchor tag to create section links. Specify the URL of the document tht wants to link as the section name with a preceding character # Ex
<A HREF=#C5> See Chapter 5 </A> <A Name=C5>Chapter 5</A> <P>This is Chapter 5</P>
Hypermedia links
Use combination of the anchor tag and the Image tag
HREF
To specify URL of the linked Web page or section
URL
Address of the linked web page or section
IMG SRC
To insert a graphic in a web page
Ex
<A HREF=URL> <IMG SRC=graphic filename> </A>
Formatting Text
Format
Bold Italic Underline Paragraph Align Line break
Tag
<B>..</B> <I>..</I> <U></U> <P>.</P> <P align=Right,Center,or Left> </P> <BR>
Horizontal line
Align
Left,center,right
Formatting Image
Image map
Different from hypermedia link
Divide a graphic into different areas using the MAP and AREA tags
<IMG SRC=.. USEMAP=#.....> <MAP NAME=..> <AREACOORDS=,,., SHAPE= HREF=Page1.HTM> </MAP>
Formatting Page
Attribute Bgcolor Background Value Red,green,blue,.. File gambar Note Background Colour Image background
Text
Link Vlink
Warna-warna
Warna Warna
Text colour
Link colour before linked Link colour after linked
Ex :
<BODY BGCOLOR=red> <BODY BACKGROUND=xxx.gif>