INTRODUTION TO HTML CODING FOR WEBSITE DESIGN - by Engr Peter A Ogbeide
INTRODUTION TO HTML CODING FOR WEBSITE DESIGN - by Engr Peter A Ogbeide
N
I O G
T IN
U D E
D O IT
O C S
R
T L EB
IN TM W N
H OR IG
F ES By: Engr. Peter A. Ogbeide
D Teacher, Domdest National School, Benin City , Edo State.
HTML CONTENTS
• INTRODUCTION OF HTML
• OBJECTIVE OF HTML
• WORLD WIDE WEB
• HTML TOOLS
• HTML TERMINOLGY
• HOW TO CREATE AN HTML DOCUMENT
• SAVING AND VIEWING A HTML
DOCUMENT
• TEXT TEGS
• SPECIAL CHARTACTER
• ADVANTAGES OF HTML
• DISADVANTAGES OF HTML
INTRODUCTION OF HTML
<BODY>
Your Document goes here
</BODY>
BGCOLOR: u s e d t o s e t t h e b a c k g
r o u n d c o l o r f o r t h e document
Example:
<BODY BGCOLOR="yellow">
Your document text goes here.
</BODY>
TEXT: used to set the color of the text of the
document Example:
<BODY TEXT="red">Introduction to HTML:: 77
Document text changed to red color
</BODY>
Document text changed to red color
ATTRIBUTES USED WITH <BODY>
MARGINS: set the left hand/right hand margin of the
document LEFTMARGIN: set the left hand margin of the
document Example:
<BODY LEFTMARGIN="60">
This document is indented 60 pixels from the left hand side
of the page.
</BODY>
TOPMARGIN: set the left hand margin of the document
Example:
<BODY TOPMARGIN="60">
This document is indented 60 pixels from the top of the page.
</BODY>
ATTRIBUTES USED WITH <BODY>
BACKGROUND: It is used to point to
an image file (the files with an
extension .gif, .jpeg) that will be
used as the background of the
document. The image file will be tiled
across the document. Example:
<BODY BACKGROUND="filename. if">
Your document text goes here
</BODY>
FOLLOW THE STEPS TO CREATE AND VIEW IN
BROWSER
• Step-1: O p e n t e x t e d i t o r N o t e p a d (click on
Star t→ A l l Programs→ Accessories Notepad)
• Step-2: Enter the following lines of code:
<HTML>
<HEAD>
<TITLE>
My first Page
</TITLE>
</HEAD>
<BODY>
WELCOME TO MY FIRST WEB PAGE
</BODY>
</HTML>
SAVING AND VIEWING
A H T M L DOCUMENT
Step-3: Save the file as myfirstpage.html (go to File-Save As
give File name: myfirstpage.html-choose save as type: All
Files-click save)
Step-4: Viewing document in web browser (open Internet
Explorer-click on File-Open-Browse-select the file
myfirstpage.html-click open-click ok
TEXT TEGS
It is a Network of Networks
MARQUEE TAG
• Easy to use
• Loose syntax (although, being too flexible will not comply
with standards).
• Supported on almost every browser, if not all browsers.
• Widely used; established on almost every website, if not all
websites.
• Very similar to XML syntax, which is increasingly used for
data storage.
• Free - You need not buy any software.
• Easy to learn & code even for novice programmers.
DISADVANTAGES OF HTML