Reviewer HTML 1
Reviewer HTML 1
TOPIC OBJECTIVES
----------------
1. Learn the meaning and usage of HTML.
2. Learn the different versions of Web Browsers.
3. Learn the Basics of HTML.
HTML allows you to format text, add rules, graphics, sound and video and
save it all in a text-only ASCII file that any computer can read.
IMPORTANCE OF HTML
-------------------
1. To create well formatted document (web page), we will use HTML.
2. HTML is the language of the developing or formatting Web pages.
3. HTML is nothing more than a set of codes (tags and attributes).
4. Every Web page in the world is done with HTML in one form or another.
5. To create your own Web pages, you only need two things : a working
knowledge of HTML and access to a computer that's set up as a Web server.
HISTORY OF HTML
---------------
In the late 1980s, ISO (Organization for Standardization) designed
a system of specification (i.e. SGML) for specifying or defining
markup languages that system is known as SGML (Standard Generalized
Markup Language). SGML is a standard set of specifying or building
any markup language.
In 1989, Timothy Berners-Lee and other researchers at the CERN nuclear researchers
facility near Geneva, Switzerland, laid the foundation of World Wide Web, or the Web.
Berners-Lee wrote a memo proposing an Internet-based hypertext system. They developed
a system of hypertext documents that made it very easy to move from one source of information
to another.
Berners-Lee specified HTML and wrote the browser and server software in late 1990.
That year, Berners-Lee and CERN data systems engineer Robert Cailliau collaborated on a joint request
for funding, but the project was not formally adopted by CERN. In his personal notes from 1990
he listed "some of the many areas in which hypertext is used" and put an encyclopedia first.
In the late 1990s, Tim Berner-Lee developed HTML. HTML is built by following or by
referring to SGML's standard set of specifications. Hence we can say HTML is evolved
from SGML. The first web pages began in November 1990, and back then, there were little to no
HTML standards to follow.
As a result, a group called the World Wide Web Consortium formed to set standards for coding HTML.
The first publicly available description of HTML was a document called "HTML Tags", first
mentioned on the Internet by Tim Berners-Lee in late 1991.
It describes 18 elements comprising the initial, relatively simple design of HTML. Except for
the hyperlink tag, these were strongly influenced by SGMLguid, an in-house Standard Generalized
Markup Language (SGML)-based documentation format at CERN. Eleven of these elements still exist
in HTML 4.
1. NETSCAPE NAVIGATOR
- During the period of 2000 to 2009, about 70% of the
Web browsing public used netscape navigator.
- Developed by some of the same engineers who created Mosaic,
Netscape has distanced itself from the competition by offering
non-standard features that make Netscape much more attractive to the eye.
WRITING HTML
-------------
1. You can write an HTML document with any word processor
or text editor.
5. You may also use the MS WORD and save the document as text file.
7. Nevertheless, there are certain tools that may help you create HTML documents.
HTML TAGS
----------
1. The key to HTML is in the tags that indicate what kind of content is coming up.
2. HTML tags are commands written between less than (<) and greater than (>) signs,
also known as angle brackets, that indicate how the browser should display the text.
HTML ELEMENTS
-------------
1. An HTML element is everything from the start tag to the end tag.
2. An HTML element starts with a start tag / opening tag and
ends with an end tag / closing tag
3. The element content is everything between the start and the end tag
<img src="[Link]">Open Facebook</img>
The text Open Facebook is the content of element and will be displayed in the browser.
The scr="[Link]" is an attribute that will display the image [Link].
Note :
- For all HTML exercises and examples in this manual, all tags and
attributes are written in SMALL CAPS, and all values are shown in
UPPER case letters.
- HTML does not require this system.
- It use here only to help distinguish the tags, attributes, and
values from the surrounding text in the examples and exercises.
ATTRIBUTES
------------
1. Many tags have special attributes that offer a variety of
options for the contained text.
VALUES
------
1. Attributes in turn often have values.
2. In some cases, you must pick a value from a small
group of choices.
3. For example, the ALIGN attribute for the <h1> tag can take
values CENTER, RIGHT or LEFT.
2. Still, it is a good idea to use quotes around the value of the attribute.
Note :
1. In the example above, the opening tags are <html>, <head> and
<title> tags.
2. The contained text is "My First HTML Document".
3. The closing tags are </title>, </head> and </html>.
NESTED TAGS
------------------
1. In some cases, you may want to modify the presentation of your text in the
browser with more than one tag.
2. For nested tags, order is very important. Whenever you use a closing tag, it should
correspond to the last unclosed opening tag. In other words, first <h1> then <u>,
then </u> and then </h1>.
Example 1.2 : [Link]
----------------------------
<html> <head> <title> My Third Example of HTML document </title>
</head>
<body>
<h1><u>The Data Processing Concepts</u></h1>
<p>
<b><i>
Everybody process data. Anyone who makes decisions as an individual, as a head of a family, as a student, or as the
owner of the business - large or small -has to process data. As you begin to read this chapter, you are already
engaged in collecting and storing data and processing them through the brain. The output of the transformation
within the brain takes the form of useful knowledge to help you understand the subject matter.
Data can be defined as unorganized facts or the raw materials of information. Data are represented by symbols, but
they are not information except in a limited sense.
</b></i>
</body>
</html>
C:\HTML_FILE\[Link]
6. To view the HTML document; right click the HTML document and select OPEN with CHROME or
INTERNET EXPLORER or FIREFOX.
3. Go back to your browser (INTERNET EXPLORER) and then REFRESH (VIEW-REFRESH or F5 key)
the display of your HTML file.
The display of the first HTML document is the Window Title. There
are no display on the HTML document.
===============================================================
TOPIC 2 : BASIC HTML TAGS
TOPIC OBJECTIVES
----------------
STARTING AND FINISHING HTML DOCUMENT - THE <html> and </html> TAGS
-------------------------------------------------------------------
1. HTML document must start with the opening tag <html> and end with the
closing tag </html>.
2. The HTML tag identifies the file as HTML code so that it can be recognized
by other applications across the Internet.
</body>
</html>
NOTE:
1. In this example, the text "The Data Processing Concepts" which placed on the BODY
part of the HTML source codes is the only line that you will see when viewing the
HTML document aside from the HTML title.
2. The extra spacing will be ignored by the browser.
<body>
<h1>
The Data Processing Concepts
</h1>
Everybody process data. Anyone who makes decisions as an individual, as a head of a family, as a student, or as the
owner of the business - large or small -has to process data. As you begin to read this chapter, you are already
engaged in collecting and storing data and processing them through the brain. The output of the transformation
within the brain takes the form of useful knowledge to help you understand the subject matter.
Data can be defined as unorganized facts or the raw materials of information. Data are represented by symbols, but
they are not information except in a limited sense.
</body>
</html>
Notes:
1. The value n is a number from 1 to 6, depending on the level
that you want to create.
2. If desired, include the ALIGN attribute to align the header
where direction is the left, right or center.
<body>
<!-- The ALIGN attribute will center the first level HEADER -->
<h1 ALIGN = CENTER>
The Data Processing Concepts
</h1>
Everybody process data. Anyone who makes decisions as an individual, as a head of a family, as a student, or as the
owner of the business - large or small -has to process data. As you begin to read this chapter, you are already engaged
in collecting and storing data and processing them through the brain. The output of the transformation within the
brain takes the form of useful knowledge to help you understand the subject matter.
<P>
Data can be defined as unorganized facts or the raw materials of information. Data are represented by symbols, but
they are not information except in a limited sense.
</P>
</body>
</html>
PARAGRAPH ATTRIBUTES
--------------------
Attribute : align
Description :
Values : left, right or center
The <BR> tag is perfect for poems or other short lines of text
that should appear one after another without a lot of space in
between.
Note :
1. Type the <BR> where the line break should occur.
2. There is no closing BR tag.
Example 5 : [Link]
--------------------------
<html> <head> <title> My Fifth Example of HTML document </title>
</head>
<body>
<!-- The ALIGN attribute will change the alignment of first level HEADER -->
<h1 ALIGN = CENTER>
The Data Processing Concepts
</h1>
Everybody process data. Anyone who makes decisions as an individual, as a head of a family, as a student, or as the
owner of the business - large or small -has to process data. As you begin to read this chapter, you are already engaged
in collecting and storing data and processing them through the brain. The output of the transformation within the
brain takes the form of useful knowledge to help you understand the subject matter.
<P>
Data can be defined as unorganized facts or the raw materials of information. Data are represented by symbols, but
they are not information except in a limited sense.
<P>
Data processing consists of gathering the raw data input, evaluating and bringing order to it, and placing it in
proper perspective so that useful information will be produced. All data processing whether manual, mechanical or
electronic, consists of three basic activities namely : </P>
<P>
Data processing techniques have been undergoing evolutionary changes since the beginning of the human race. This
evolution has advanced through four stages, from manual methods to the development of the computer.
</body>
</html>
=============================================================================
TOPIC 3 : TEXT FORMATTING
=============================================================================
Objectives :
-------------------
1. Learn how to change the font settings of the text.
INTRODUCTION
------------
Formatting a Web Page is much different from formatting any kind of document of desktop publishing for one simple
reason: you cannot completely control how your user will view the document. Users may use different web browsers
according to their preferences. Some may see it with Internet Explorer while others may see with Netscape Navigator.
none of these programs shows text formatting in exactly the same way.
Tags Meaning
--------------------------- -----------------------------
<b> text </b> Making Text BOLD
<i> text </i> Making Text ITALIC
<EM> text </EM> Emphasizing Text Logically
<STRONG> text </STRONG> Making strong text
<STRIKE> text </STRIKE> Striking out text
<U> text </U> Underlining text
<SUB> text </SUB> Creating Subscript text
<SUP> text </SUP> Creating Superscript text
<BLINK> text </BLINK> Making text blink
TIPS :
1. Not all browsers can display text in bold or italics.
If they do not recognize the tags, the text will have no formatting at all.
2. To change the color of all of the body text at once, use the TEXT attribute in the BODY tag.
3. Text formatted in SMALL is one size smaller, unless the surrounding text is size 2 or smaller, in which case SMALL
has no effect.
4. Text formatted in BIG is one size bigger, unless the surrounding text is size 7 (maximum), in which case BIG has no
effect.
5. The BASEFONT tag has no effect on headers. Be careful, then, not to make the body text larger than the headers, or
you'll confuse your readers.
6. Use the FONT marker to change the font size of just a few characters or a few words. Use BASEFONT to change the
font size of the whole document.
7. FONT tag can also be used to change the color and typeface of a word, individual or group of letters.
8. Use SMALL tag or set the FONT size to smaller number in lengthy line to fit more text on line.
9. Use large size text number in short line to give more importance to the line.
10. Don't chose a basefont size or font size that is too large to fit comfortably in your user's screen.
11. Use PRE to format an image' alternative text. This allows you to use an ASCII image as alternative text.
EXAMPLE 6 : [Link]
--------------------------
<html>
<head> <title> Inspirational Collections </title></head>
<!-- You may use the color code FF0000 for RED -->
<body> <h1 ALIGN = CENTER><I><FONT SIZE = 30 COLOR = "RED">
Learn How to Count
</FONT></I></h1>
EXAMPLE 7 : [Link]
-------------------------
<html>
<head><title>PERSONAL DOCUMENT</title></head>
<body>
<!-- Display the HEADING in BLUE color (#0000FF) -->
<FONT FACE="Arial" SIZE=7 COLOR="#0000FF">
<h1 ALIGN="CENTER"><I><U> R E S U M E </U></I> </h1></FONT> <hr>
<BR><BR><BR>
<FONT SIZE=5 COLOR="#FF0000">
<P ALIGN="CENTER"> <B> EDUCATIONAL BACKGROUND </B></P>
</FONT>
<FONT SIZE=6>
<FONT COLOR="#0000FF"> <I> COURSE : </I>
<FONT COLOR="#000000"> <B> COMPUTER ENGINEERING </B><BR><BR>
<FONT COLOR="#0000FF"> <I> DATE GRADUATED : </I>
<FONT COLOR="#000000"> <B> MARCH 22, 1990 </B><BR><BR>
<FONT COLOR="#0000FF"> <I> COLLEGE : </I>
<FONT COLOR="#000000"> <B> MULTILANCE UNIVERSITY </B><BR><BR>
<FONT COLOR="#0000FF"> <I> HIGH SCHOOL : </I>
<FONT COLOR="#000000"> <B> ST. JOHN LAURENCE ACADEMY </B><BR><BR>
<FONT COLOR="#0000FF"> <I> ELEMENTARY : </I>
<FONT COLOR="#000000"> <B> ST. PAUL ACADEMY </B>
<BR><BR><BR>
<FONT SIZE=5 COLOR="#FF0000">
<P ALIGN="CENTER"> <B> S K I L L S </B></P>
<FONT SIZE=6 COLOR="000000">
<B> Five years solid experience in Computer Programming, With working knowledge in Visual Studio, Web Page
Development, and Systems Analysis and Design. </B> </FONT>
</body></html>
EXAMPLE 8 : [Link]
-------------------------
<html> <head> <title> NO SMOKING CAMPAIGN </title> </head>
<body>
<h1><CENTER> THE BENEFITS OF QUITTING </CENTER></h1> <hr>
</body> </html>
ATTRIBUTES
----------
1. behavior
- Sets how the text is scrolled within the marquee.
- Possible values are scroll, slide and alternate.
- If no value is specified, the default value is scroll.
2. bgcolor
- Sets the background color through color name or hexadecimal value.
- It is used to give a background color.
3. direction
- Sets the direction of the scrolling within the marquee.
- Possible values are left, right, up and down.
- If no value is specified, the default value is left.
4. height
- Sets the height in pixels or percentage value.
5. hspace
- Sets the horizontal margin
6. loop
- Sets the number of times the marquee will scroll.
- If no value is specified, the default value is −1, which means the marquee will
scroll continuously.
7. scrollamount
- Sets the amount of scrolling at each interval in pixels.
- The default value is 6.
8. scrolldelay
- Sets the interval between each scroll movement in milliseconds.
- The default value is 85. Note that any value smaller than 60 is ignored and
the value 60 is used instead, unless truespeed is specified.
9. truespeed
- By default, scrolldelay values lower than 60 are ignored.
- If truespeed is present, those values are not ignored.
10. vspace
- Sets the vertical margin in pixels or percentage value.
11. width
- Sets the width in pixels or percentage value.
EXAMPLES :
<html>
<head><title>MARQUEE FOR SCROLLING EFFECTS </title></head>
<marquee>Scroll from right to left</marquee>
<marquee direction="right">Scroll from left to right</marquee>
<marquee behavior="alternate">Scroll alternately</marquee>
<marquee direction="up">Scroll from bottom to top</marquee>
<!-- Bouncing Text -->
<marquee direction="down" width="250" height="200" behavior="alternate" style="border:solid">
<marquee behavior="alternate">
This text will bounce
</marquee>
</marquee>
<!-- Scrolling Image -->
<marquee><image scr="[Link]" direction="right"> </image></marquee>
===================================================================
CHAPTER 3 : PAGE LAYOUT
===================================================================
INTRODUCTION
------------
1. HTML has a number of features that apply to an entire page, instead of
being limited to just few words or paragraphs.
2. These elements are called page layout features.
3. Included among these features are setting margins and columns, controlling
the spacing between the elements on a page, changing the background color
for the entire page, dividing a page into logical sections, and determining
when line breaks should and shouldn't occur.
Tags Meaning
<BODY LEFTMARGIN=x> Change the Left Margin (where x is the width in pixels of the space
between the left border of the window and the contents of the page)
<P ALIGN = direction> Align all the text in the paragraph. <direction>
is either LEFT, RIGHT or CENTER.
<P STYLE="MARGIN-direction":n> Insert Indent before or after the text. Direction can be
LEFT or RIGHT and n is the width of the space
between the margin and the text.
<SPACER TYPE=block WIDTH=w Create blocks of space and wrap around the
HEIGHT=h ALIGN=right> block on the right side.
EXAMPLE 9 : [Link]
<html><head> <title> BOB GARON COLLECTIONS </title></head>
EXAMPLE 10 : [Link]
<html>
<head><title> BOB GARON COLLECTIONS </title></head>
<P>
If you decide, then, the word is caution. Do not trust your own judgment as much as you did when things were
normal. Seek counsel from persons you believe to be wise and then listen well. They might see things more
clearly than you do. You may be set your focus on the negative while totally ignoring the positive realities
in your life. It is strange how easily we fall into this pattern when feeling negative. We cannot see the
positive in our lives. Or, if we look at the positive, it has little or
no impact on us. It is as we see it, but we don't. It is as though our vision of life around us is warped.
<P>
Most often, we feel like giving up because we see our chances of failing growing while the prospects of victory
seem to be dimming more and more with the passing of each day. It is in times such as these that we need to
talk to ourselves, to shake to go on inspite of the discouragement we feel.
<P>
The words of Marden are specially significant: "There are always reasons for giving up. Arguments for self-pity
are as thick as blackberries. The world is crowded with
thorns and cruelties that are causes for tears. Courage is the divine unreason against which, as against a rock,
the waves of disaster beat in vain. When this happens, say to yourself: I am unconquerable, I shall arrive. In the
center of creation sits not an enemy, but my Friend. I shall arrive. What time, what circuit first, I ask not. In some
time, His good time, I shall arrive. Let come what will, I shall never say I am beaten. I am not negligible molecule, a
mote in the sunbeam, a worm! I am a man, and so help me God! I shall play the man."
</MULTICOL>
<P><B><I>
Failure! There is no such word in all the bright lexicon of speech, unless you yourself have written it there! There is no
such thing as failure except those who accept and believe in
failure.
</B></I>
</FONT>
</body>
</html>