Chapter 1 (Create HTML Pages)
Chapter 1 (Create HTML Pages)
Introduction to HTML
1
HTML Page Creation & Editing
In this chapter you will learn to create HTML
pages with a standard text editor.
Objectives:
Upon completing this section, you should be
able to:
1. Create a Basic HTML Page.
3. View Your Results in a Browser.
2
Definitions
4
Tags
5
Choosing Text Editor
7
Creating a Basic Starting
Document
<HTML>
<HEAD>
<TITLE>Haigazian University</TITLE>
</HEAD>
<BODY>
This is what is displayed.
</BODY>
</HTML> 8
Creating a Basic Starting
Document
The HEAD of your document point to above
window part. The TITLE of your document
appears in the very top line of the user’s
browser. If the user chooses to “Bookmark”
your page or save as a “Favorite”; it is the
TITLE that is added to the list.
The text in your TITLE should be as
descriptive as possible because this is what
many search engines, on the internet, use for
indexing your site. 9
Setting Document Properties
10
Color Codes
• Colors are set using “RGB” color codes,
which are, represented as hexadecimal
values. Each 2-digit section of the code
represents the amount, in sequence, of
red, green or blue that forms the color.
• For example, a RGB value with 00 as the
first two digits has no red in the color.
11
Main Colors
12
Color Codes
1. WHITE 1. FFFFFF
2. BLACK 2. 000000
3. RED 3. FF0000
4. GREEN 4. 00FF00
5. BLUE 5. 0000FF
6. MAGENTA 6. FF00FF
7. CYAN 7. 00FFFF
8. YELLOW 8. FFFF00
9. AQUAMARINE 9. 70DB93
10. BAKER’S CHOCOLATE 10. 5C3317
11. VIOLET 11. 9F5F9F
12. BRASS 12. B5A642
13. COPPER 13. B87333
14. PINK 14. FF6EC7
13
15. ORANGE 15. FF7F00
The Body Element
• The BODY element of a web page is an
important element in regards to the page’s
appearance. Here are the attributes of the
BODY tag to control all the levels:
TEXT="RRGGBB" to change the color of all
the text on the page (full page text color.)
<BODY BACKGROUND=HULogo.png
</BODY>
18
Example
<HTML>
<HEAD>
<TITLE>Haigazian University</TITLE>
</HEAD>
</BODY>
19
</HTML>