Home
HTML Tutorial
FTP Tutorial
Copyright



Notepad

AMA Computer Learning Center, Javi's school

Youth on Fire Shaw


WEBSITE AUTHORING - the creation of websites using HTML

Lesson 1 - Creating Your First Page
Lesson 2 - Understanding the Source Code
Lesson 3 - Understanding Tags and its Attributes
HTML General Reference

Introduction

What you will need:

  1. Notepad - for typing the HTML source of your webpage


  2. Opening Notepad Opened Notepad
    Here are steps in opening NOTEPAD:
    • Click "Start". The start menu should pop-up.
    • Click on "Programs". A sub-menu will pop-up.
    • In the sub-menu clck "Accessories". Another will pop-up.
    • Click "Notepad". Notepad should appear on top of your desk topscreen as illustrated
  3. Browser - for viewing the webpage done


  4. Opening Browser Opened Browser
    Here are steps in opening your Browser(Internet Explorer):
    • Double-click the icon which says "Internet Explorer". If you have a hard time looking for it because you have lots of icons on your desktop, tet me give you a hint: it is the icon with a blue letter "e". The Internet Explorer browser should appear on top of your desktop as illustrated.

TOP


Lesson 1 - Creating Your First Page

Do the following in NOTEPAD:
Type the following:
Click on "File", then "Save", a dialog box should appear.

Click FILE then SAVE
In "File Name" type: index.html (kindly make sure you've located the file in your folder preferably "My Documents")

Type index.html then click OK
Open your browser. Click "File", then "Open", a dialog box will appear.

File, Open

Click on "Browse", another dialog box should appear.

Open

Go to the location of the index.html you've just created and click "Open". Click "OK".

By now, what you should have in your screen is the output of the HTML source you just created. It should appear like this:

Browse

/\ TOP


Lesson 2 - Understanding the Source Code

What you have typed in NOTEPAD in Lesson 1 is the source code of My First Page. The language you have just used was the Hyper Texting Mark-up Language (HTML).

Let us now understand why the stucture of the source is like that:

The Overall Structure
Overall Structure of HTML

The statements within the "less than"(<) and "greater than"(>) signs are called tags. These are the syntaxes used to carry out desired output. There are 2 types of tags:

  1. Opening tags <html>
  2. Closing tags </html>
<html>

The <html> tags start the HTML document and notice at the very end the closing </html>. Every HTML source begins and ends with this tag.


<head>

Right after the <html> tag we go to the next portion, the <head>. The tags within <head> are <title>, <meta>, <style>, etc. The very basic is <title>. Within <title> and </title>, the text you write between them will be the title of your webpage and will appear at the upper-left side of your browser window.

<head>
<title>My First Page</title>
</head>
/\
"My First Page" will appear at the upper left of your browser.

<body>

After closing <head> with </head>, we start the <body>. The you will type in here will be the output on the body of the browser. Tags you can you use are within body are <p>, <font>, <center>, etc. Click here for the list of tags you can use within <body>.

<html>
<head>
<title>My First Page</title>
</head>
<body>
<h2>Hello World!</h2>
</body>

</html>
/\
"Hello world!" will appear at the body of the browser.

/\ TOP


Lesson 3 - Understanding Tags and Its Attributes.

In between the opening and closing tags we type desired text for output. Let's understand it from the tag to the attribute

<font color="purple" face="comic sans" size="2">
My First Page
</font>

In this example above, in green is the tag, in red are the attributes, in between the " are the attribute's description, and in purple is what will be the output in your screen.

Tag

The tags are the syntaxes in HTML which execute the general type of output. Almost all tags consist of an opening tag(<font>) and a closing tag(</font>). These affect the appearance of output.

Attributes

The attributes are added to the tags. These are syntaxes which execute details of the general output. In <font color="green">, the attribute here is color="green". By using this attribute the color within the <font> tag will become color green.

/\ TOP


General Reference for HTML Tags

TAG NAME DESCRIPTION
Hyper Texting Mark-up Language Tag for beginning and ending your HTML document. This tag should appear in the very first and the very last portion of every HTML document.
Head Tag for beginning and ending the declarations for the output. Tags which may be placed in here are the title, meta, script, style tags.
Title Place this tag within the opening and closing of the head tag. Within the opening and the closing of the title tag you type the title of your web page which will appear at the upperleft of your browser window.
The <body> </body> Tag
Body Tag for beginning and ending the body of your webpage. Within here you can type the ouput which will appear in your webpage. You can adjust the background color, background image, color of links,margin sizes, and deffault text.

Tags allowabe within <body> </body>

TAG ATTRIBUTES DESCRIPTION
<a> </a> href="anotherpage.html"
href="#top"
name="top"
title="nextpage"
anchors/links objects(text/image) making them clickable so you can transfer to another location, either to another page or another portion of the same page
<b> </b>   Boldens font
<blockquote> </blockquote>   Sets alignment of text into block style
<center> </center>   Centers the text or image within this tag
<div> </div> align="right" Divides portions of your page into divisions making them maneuverable in position
<em> </em>   Emphasizes or, in other words, italizes font
<font> </font> face="verdana"
size="7"
color="green"
Allows you to set desired font.
<h1> <h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>
<h7> </h7>
align="center" This tag is specially for heading texts/fonts. <h1> is the largest possible font while <h7's> the smallest
<i> </i>   Italizes your font
<p> </p> align="right" This tag initiates the start and terminates the end of a paragraph.
<pre> </pre>   Output of this tag are predefined/unformatted sets of text
<strong> </strong>   Strengthens the weight of font or, in other words, boldens the font.
<u> </u>   Underlines your font.
© 2001 by Javier Laiz of the Corporate Web Group
Hosted by www.Geocities.ws

1