SlideShare a Scribd company logo
1 of 13
HTML Lab Project
To create a simple web page you will need to use a text
processor (Notepad) and HTML (hypertext markup language).
Do NOT use
Word which can create some problems by automatically
formatting your work as a web page.
The tags (items enclosed in < >) from HTML create the special
effects that are seen on web pages when using a browser like
Internet Explorer.
Note: some tags require a starting and ending tag. For example:
This is my home page
Also if multiple tags are used to format a single item,
ending tags must be written in reverse order from the starting
tags.
Example:
My First Home Page
tag1 tag2 endtag2 endtag1
After completing the steps in the tutorial, you should be able to:
1.
Create a Home Page using HTML
2.
Create headings
3.
Place text and graphics in an HTML document
4.
Use attributes such as font color with tags
5.
Create links to other places or documents
Home Pages
The home page of a web site is the starting point that usually
describes the purpose of the web site and its categories. The
page typically includes hyperlinks which will take the viewer to
other web sites or other places within the same web site. In
planning a home page consider these items
Title – this text will appear on the blue title bar of your web
page
Headings – customarily the first heading is the same as the title;
it appears as the first line of your home page. Each browser
displays headings in a unique way, but they allow several levels
of headings from H1 to H6. Heading 1 would be the largest,
most noticeable, heading 6 the smallest. In the examples that
follow, the first line of each pair shows the HTML tags; the
second line is the effect produced.
H1 headings
H1 headings
H2 headings
H2 headings
H3 headings
H3 headings
H4 headings
H4 Headings
H5 headings
H5 Headings
H6 headings
H6 Headings
Content - Text that explains your home page or special
features of the page.
Create a Sample HTML Page
Step 1.
A.
Open Notepad (Click on Start, Programs, Accessories,
Notepad).
B.
Enter the following text:
Your Name Home Page
Your Name Home Page
C.
Choose File, Save As. For the file name, use
mysample_Lastname_Firstname.htm
in
Save As Type
, choose All Files, and save to your desktop, or other easy to
find location.
(CAUTION: if you neglect to choose All Files, this will be
saved as a text file, ending in txt, and will not be available for
opening in your browser
.
Step 2.
A.
Start your browser (Internet Explorer). It is
not
necessary to be online.
B.
From the menu bar, choose File, Open.
C.
Browse for the file you just saved on your desktop
(mysample_firstname_lastname.htm).
D.
Choose Open.
E.
You should see only the title bar and a heading on your newly
created homepage.
Step 3.
A.
From the menu bar, choose View, then Source.
B.
A window should appear showing your Notepad file with the
HTML coded text. You can edit your text for the next steps in
this window. Just remember to save the Notepad file each time
you make changes.
C.
Use the Refresh button in your browser to see the changes on
your web page.
Additional Headings
For your sample page, you’ll create headings for: My Favorites,
Headline News, Quote of the Day
Step 4.
A.
On the line following , enter the following
My Favorites
Headline News
Quote of the Day
Step 5.
A.
Choose File, Save.
B.
On the browser file menu, choose Refresh.
You should see the three level-2 headings which you
added in Step 1.
Content
To leave blank lines around a paragraph of text, use the tags
To start a new line without adding blank lines, use
(Note: no ending tag is needed for a line break)
To identify the body of your text enclose it in the tags
Tags which may be used to enhance your text:
bold
centers text
underline
moves text across the screen
Step 6.
A.
Add the tags shown below in your source file (shaded areas).
B.
Add the tags around your heading.
C.
Add the content after the headings. (
Edit your current lines to match what is below.
)
Your Name Student Page
>
Your Name Student Page
My Favorites
Food: pizza
Sport: football
Color: blue
Movie: Fellowship of the Ring
Headline News
I have a new __________
Quote of the Day
Minds are like parachutes; they function only when open.
Step 7
. Save the source file.
Step 8
. Refresh the browser.
Inserting images
To insert a graphic file, it should be one of two formats: either a
.gif or .jpg file.
Gif files may also be animated. These graphic files look more
like drawings or cartoons.
Jpg files are photographs, like the ones taken by digital
cameras.
The simplest way to use graphics is to store them all in the
same
folder as your Notepad source file.
I suggest you use google.com and then select Images from the
Upper left links.
The tags for inserting an image are
filename
” >. Substitute the name (including the extension: either gif or
jpg) of the file you select for
“filename”.
Step 9
. Add the following text after the line ending with
.
filename
.gif”>
Step 10
. Save your source file. Refresh the browser.
Colors
Colors can add (or detract) from your web page. Avoid
background colors like red or orange which are not easy on the
eyes. Also beware of blue backgrounds which can make link
text (also in blue by default) invisible.
Colors are referred to by code or by name, combining letters
and numbers as follows
Green #00FF00
Red #FF0000
Tan #DEB887
Turquoise #19CCDF
Magenta #FF00FF
Yellow #FFFF00
Blue #0000FF
To change the background color of your web page
colorcode
>
To change color of all text on your page
colorcode
>
Step 11
. Add the following code after the heading,
Add
before the last line
.
Step 12
. Save your source file. View it with the browser.
Horizontal Rule
Horizontal lines are used to off set or segment text on your web
page. They can be either a default grey color or you can
specify a color.
Inserts a horizontal rule
Sets size (height) of rule
Sets width of rule, in percentage or absolute value
Creates a rule without a shadow
Code example:
Inserts a horizontal rule
Sets size (height) of rule
Sets width of rule, in percentage or absolute value
Creates a rule without a shadow
Sets the rule color
This is just a sample of possible colors. A good online
reference for color is
http://hotwired.lycos.com/webmonkey/reference/color_codes/
Links
Hyperlinks allow the viewer to move to other places in your
document or on the web quickly.
To create a hyperlink (or link), enclose the URL of the web
page in
URL”> name of link
(Note: include all characters of the URL, including
http://)
Step 13
. Add the following after the text “Minds are like a ….”
Web sites: LSC-University Park
Step 14
. Save your source file. Refresh the browser.
Lists
You can add bulleted lists or numbered lists to your web page
with the following tags:
January
February
March
Or for bulleted lists use and at the start and end of the list
items.
Reference HTML Cheatsheet
---------------------------------------------------------------------------
-----
Basic Tags
Creates an HTML document
Sets off the title and other information that isn't displayed on
the Web page itself
Sets off the visible portion of the document
Header Tags
Puts the name of the document in the title bar
Body Attributes
Sets the background color, using name or hex value
Sets the text color, using name or hex value
Sets the color of links, using name or hex value
Sets the color of followed links, using name or hex value
Sets the color of links on click
Text Tags
Creates the largest headline
Creates the smallest headline
Creates bold text
Emphasizes a word (with italic or bold)
Emphasizes a word (with italic or bold)
Sets size of font, from 1 to 7)
Sets font color, using name or hex value
Links
Creates a hyperlink
Creates a mailto link
Creates a target location within a document
Links to that target location from elsewhere in the document
Formatting
Creates a new paragraph
Aligns a paragraph to the left, right, or center
Inserts a line break
Creates a numbered list
Precedes each list item, and adds a number
Creates a bulleted list
Graphical Elements
Adds an image
Aligns an image: left, right, center; bottom, top, middle
Horizontal Rule
Sets size of border around an image
Inserts a horizontal rule
Sets size (height) of rule
Sets width of rule, in percentage or absolute value
Creates a rule without a shadow
Completed Code and sample page:
Khavansky M.Johnson
Khavansky M. JOhnson Home Page
My Favorites
Food: Rice and peas
Sport: Soccer(football),Basketball, CrossCountry, Tracks, and
cricket
Color: Green and Blue
Movie: The last samaria
Headline NewsI have a new rating on monoploy
Quite of the Day"Just give the G's and we'll be burning ahh"

More Related Content

Similar to HTML Lab ProjectTo create a simple web page you will need to use.docx

Basic html training national
Basic html training nationalBasic html training national
Basic html training national
Needanuts
 
presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
ssuser8001a61
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
c525600
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
Waqar Chodhry
 

Similar to HTML Lab ProjectTo create a simple web page you will need to use.docx (20)

Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basics
Html basicsHtml basics
Html basics
 
Html basic file
Html basic fileHtml basic file
Html basic file
 
Html basics
Html basicsHtml basics
Html basics
 
Html BASICS
Html BASICSHtml BASICS
Html BASICS
 
Html basics 1
Html basics 1Html basics 1
Html basics 1
 
Basic html training national
Basic html training nationalBasic html training national
Basic html training national
 
HTML.pdf
HTML.pdfHTML.pdf
HTML.pdf
 
HTML Presentation
HTML Presentation HTML Presentation
HTML Presentation
 
presentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptxpresentation_html_ppt_1534512076_351187.pptx
presentation_html_ppt_1534512076_351187.pptx
 
Html
HtmlHtml
Html
 
Html
HtmlHtml
Html
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
Html tutorial
Html tutorialHtml tutorial
Html tutorial
 
HTML Introduction
HTML IntroductionHTML Introduction
HTML Introduction
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
 
Web design in 7 days
Web design in 7 daysWeb design in 7 days
Web design in 7 days
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 

More from fideladallimore

I had started the paper but have no time to finish.Please help.docx
I had started the paper but have no time to finish.Please help.docxI had started the paper but have no time to finish.Please help.docx
I had started the paper but have no time to finish.Please help.docx
fideladallimore
 
I have 3 posts from class I need someone to read them and ague which.docx
I have 3 posts from class I need someone to read them and ague which.docxI have 3 posts from class I need someone to read them and ague which.docx
I have 3 posts from class I need someone to read them and ague which.docx
fideladallimore
 
I choose Energy source of Human This is my topic.You have to put.docx
I choose Energy source of Human This is my topic.You have to put.docxI choose Energy source of Human This is my topic.You have to put.docx
I choose Energy source of Human This is my topic.You have to put.docx
fideladallimore
 
I am trying to do use two bluetooth modules to control an LEDs.  I a.docx
I am trying to do use two bluetooth modules to control an LEDs.  I a.docxI am trying to do use two bluetooth modules to control an LEDs.  I a.docx
I am trying to do use two bluetooth modules to control an LEDs.  I a.docx
fideladallimore
 
i am taking  camp 1 online I need some one to help me with itthe p.docx
i am taking  camp 1 online I need some one to help me with itthe p.docxi am taking  camp 1 online I need some one to help me with itthe p.docx
i am taking  camp 1 online I need some one to help me with itthe p.docx
fideladallimore
 

More from fideladallimore (20)

I had started the paper but have no time to finish.Please help.docx
I had started the paper but have no time to finish.Please help.docxI had started the paper but have no time to finish.Please help.docx
I had started the paper but have no time to finish.Please help.docx
 
I have 3 posts from class I need someone to read them and ague which.docx
I have 3 posts from class I need someone to read them and ague which.docxI have 3 posts from class I need someone to read them and ague which.docx
I have 3 posts from class I need someone to read them and ague which.docx
 
I have 4 chapters worth of Operations Management homework.It needs.docx
I have 4 chapters worth of Operations Management homework.It needs.docxI have 4 chapters worth of Operations Management homework.It needs.docx
I have 4 chapters worth of Operations Management homework.It needs.docx
 
i have 3 papers due on Thursday for my philosophy class. The papers .docx
i have 3 papers due on Thursday for my philosophy class. The papers .docxi have 3 papers due on Thursday for my philosophy class. The papers .docx
i have 3 papers due on Thursday for my philosophy class. The papers .docx
 
i have 2 test on Tuesday at 3 pm and i have another one at 430 it.docx
i have 2 test on Tuesday at 3 pm and i have another one at 430 it.docxi have 2 test on Tuesday at 3 pm and i have another one at 430 it.docx
i have 2 test on Tuesday at 3 pm and i have another one at 430 it.docx
 
i have 2 assignmets will be today 1- Focus on Web Design IIT.docx
i have 2 assignmets will be today 1- Focus on Web Design IIT.docxi have 2 assignmets will be today 1- Focus on Web Design IIT.docx
i have 2 assignmets will be today 1- Focus on Web Design IIT.docx
 
I got a scholarship to study civil engineering so they asked me to w.docx
I got a scholarship to study civil engineering so they asked me to w.docxI got a scholarship to study civil engineering so they asked me to w.docx
I got a scholarship to study civil engineering so they asked me to w.docx
 
I composed an experiment with different materials (metals and non-me.docx
I composed an experiment with different materials (metals and non-me.docxI composed an experiment with different materials (metals and non-me.docx
I composed an experiment with different materials (metals and non-me.docx
 
I have 5 page paper due tomorrow. Basically its a concert report so .docx
I have 5 page paper due tomorrow. Basically its a concert report so .docxI have 5 page paper due tomorrow. Basically its a concert report so .docx
I have 5 page paper due tomorrow. Basically its a concert report so .docx
 
I choose Energy source of Human This is my topic.You have to put.docx
I choose Energy source of Human This is my topic.You have to put.docxI choose Energy source of Human This is my topic.You have to put.docx
I choose Energy source of Human This is my topic.You have to put.docx
 
I am wiiling to pay $10.00 I just need these discussion questions an.docx
I am wiiling to pay $10.00 I just need these discussion questions an.docxI am wiiling to pay $10.00 I just need these discussion questions an.docx
I am wiiling to pay $10.00 I just need these discussion questions an.docx
 
I am taking a class its the managing information and databse i am lo.docx
I am taking a class its the managing information and databse i am lo.docxI am taking a class its the managing information and databse i am lo.docx
I am taking a class its the managing information and databse i am lo.docx
 
I am trying to teach my dog Fido to sit. Everytime he sits, I give h.docx
I am trying to teach my dog Fido to sit. Everytime he sits, I give h.docxI am trying to teach my dog Fido to sit. Everytime he sits, I give h.docx
I am trying to teach my dog Fido to sit. Everytime he sits, I give h.docx
 
I am trying to do use two bluetooth modules to control an LEDs.  I a.docx
I am trying to do use two bluetooth modules to control an LEDs.  I a.docxI am trying to do use two bluetooth modules to control an LEDs.  I a.docx
I am trying to do use two bluetooth modules to control an LEDs.  I a.docx
 
i am taking  camp 1 online I need some one to help me with itthe p.docx
i am taking  camp 1 online I need some one to help me with itthe p.docxi am taking  camp 1 online I need some one to help me with itthe p.docx
i am taking  camp 1 online I need some one to help me with itthe p.docx
 
I am responsible for this one bullet that is highlighted in pink as .docx
I am responsible for this one bullet that is highlighted in pink as .docxI am responsible for this one bullet that is highlighted in pink as .docx
I am responsible for this one bullet that is highlighted in pink as .docx
 
I am new to this site.. I was on Student of Fortune until they clo.docx
I am new to this site.. I was on Student of Fortune until they clo.docxI am new to this site.. I was on Student of Fortune until they clo.docx
I am new to this site.. I was on Student of Fortune until they clo.docx
 
I am looking for you to go a bit deeper in Section Three, and work t.docx
I am looking for you to go a bit deeper in Section Three, and work t.docxI am looking for you to go a bit deeper in Section Three, and work t.docx
I am looking for you to go a bit deeper in Section Three, and work t.docx
 
I am looking for a Power Point Presentation about ISIS ,,, Including.docx
I am looking for a Power Point Presentation about ISIS ,,, Including.docxI am looking for a Power Point Presentation about ISIS ,,, Including.docx
I am looking for a Power Point Presentation about ISIS ,,, Including.docx
 
I am looking for 75 words a piece for each questions1.  What d.docx
I am looking for 75 words a piece for each questions1.  What d.docxI am looking for 75 words a piece for each questions1.  What d.docx
I am looking for 75 words a piece for each questions1.  What d.docx
 

Recently uploaded

QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
httgc7rh9c
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

HTML Lab ProjectTo create a simple web page you will need to use.docx

  • 1. HTML Lab Project To create a simple web page you will need to use a text processor (Notepad) and HTML (hypertext markup language). Do NOT use Word which can create some problems by automatically formatting your work as a web page. The tags (items enclosed in < >) from HTML create the special effects that are seen on web pages when using a browser like Internet Explorer. Note: some tags require a starting and ending tag. For example: This is my home page Also if multiple tags are used to format a single item, ending tags must be written in reverse order from the starting tags. Example: My First Home Page tag1 tag2 endtag2 endtag1 After completing the steps in the tutorial, you should be able to: 1. Create a Home Page using HTML 2. Create headings 3. Place text and graphics in an HTML document
  • 2. 4. Use attributes such as font color with tags 5. Create links to other places or documents Home Pages The home page of a web site is the starting point that usually describes the purpose of the web site and its categories. The page typically includes hyperlinks which will take the viewer to other web sites or other places within the same web site. In planning a home page consider these items Title – this text will appear on the blue title bar of your web page Headings – customarily the first heading is the same as the title; it appears as the first line of your home page. Each browser displays headings in a unique way, but they allow several levels of headings from H1 to H6. Heading 1 would be the largest, most noticeable, heading 6 the smallest. In the examples that follow, the first line of each pair shows the HTML tags; the second line is the effect produced. H1 headings H1 headings H2 headings H2 headings H3 headings H3 headings H4 headings H4 Headings H5 headings H5 Headings H6 headings
  • 3. H6 Headings Content - Text that explains your home page or special features of the page. Create a Sample HTML Page Step 1. A. Open Notepad (Click on Start, Programs, Accessories, Notepad). B. Enter the following text: Your Name Home Page Your Name Home Page C. Choose File, Save As. For the file name, use mysample_Lastname_Firstname.htm in Save As Type , choose All Files, and save to your desktop, or other easy to find location. (CAUTION: if you neglect to choose All Files, this will be saved as a text file, ending in txt, and will not be available for opening in your browser
  • 4. . Step 2. A. Start your browser (Internet Explorer). It is not necessary to be online. B. From the menu bar, choose File, Open. C. Browse for the file you just saved on your desktop (mysample_firstname_lastname.htm). D. Choose Open. E. You should see only the title bar and a heading on your newly created homepage. Step 3. A. From the menu bar, choose View, then Source. B. A window should appear showing your Notepad file with the HTML coded text. You can edit your text for the next steps in this window. Just remember to save the Notepad file each time you make changes. C. Use the Refresh button in your browser to see the changes on
  • 5. your web page. Additional Headings For your sample page, you’ll create headings for: My Favorites, Headline News, Quote of the Day Step 4. A. On the line following , enter the following My Favorites Headline News Quote of the Day Step 5. A. Choose File, Save. B. On the browser file menu, choose Refresh. You should see the three level-2 headings which you added in Step 1. Content To leave blank lines around a paragraph of text, use the tags To start a new line without adding blank lines, use (Note: no ending tag is needed for a line break) To identify the body of your text enclose it in the tags Tags which may be used to enhance your text: bold centers text underline
  • 6. moves text across the screen Step 6. A. Add the tags shown below in your source file (shaded areas). B. Add the tags around your heading. C. Add the content after the headings. ( Edit your current lines to match what is below. ) Your Name Student Page > Your Name Student Page My Favorites Food: pizza Sport: football Color: blue Movie: Fellowship of the Ring Headline News I have a new __________ Quote of the Day Minds are like parachutes; they function only when open.
  • 7. Step 7 . Save the source file. Step 8 . Refresh the browser. Inserting images To insert a graphic file, it should be one of two formats: either a .gif or .jpg file. Gif files may also be animated. These graphic files look more like drawings or cartoons. Jpg files are photographs, like the ones taken by digital cameras. The simplest way to use graphics is to store them all in the same folder as your Notepad source file. I suggest you use google.com and then select Images from the Upper left links. The tags for inserting an image are filename ” >. Substitute the name (including the extension: either gif or jpg) of the file you select for “filename”. Step 9 . Add the following text after the line ending with . filename .gif”> Step 10 . Save your source file. Refresh the browser.
  • 8. Colors Colors can add (or detract) from your web page. Avoid background colors like red or orange which are not easy on the eyes. Also beware of blue backgrounds which can make link text (also in blue by default) invisible. Colors are referred to by code or by name, combining letters and numbers as follows Green #00FF00 Red #FF0000 Tan #DEB887 Turquoise #19CCDF Magenta #FF00FF Yellow #FFFF00 Blue #0000FF To change the background color of your web page colorcode > To change color of all text on your page colorcode > Step 11 . Add the following code after the heading, Add before the last line
  • 9. . Step 12 . Save your source file. View it with the browser. Horizontal Rule Horizontal lines are used to off set or segment text on your web page. They can be either a default grey color or you can specify a color. Inserts a horizontal rule Sets size (height) of rule Sets width of rule, in percentage or absolute value Creates a rule without a shadow Code example: Inserts a horizontal rule Sets size (height) of rule Sets width of rule, in percentage or absolute value Creates a rule without a shadow Sets the rule color This is just a sample of possible colors. A good online reference for color is http://hotwired.lycos.com/webmonkey/reference/color_codes/ Links Hyperlinks allow the viewer to move to other places in your
  • 10. document or on the web quickly. To create a hyperlink (or link), enclose the URL of the web page in URL”> name of link (Note: include all characters of the URL, including http://) Step 13 . Add the following after the text “Minds are like a ….” Web sites: LSC-University Park Step 14 . Save your source file. Refresh the browser. Lists You can add bulleted lists or numbered lists to your web page with the following tags: January February March Or for bulleted lists use and at the start and end of the list items. Reference HTML Cheatsheet --------------------------------------------------------------------------- ----- Basic Tags Creates an HTML document Sets off the title and other information that isn't displayed on
  • 11. the Web page itself Sets off the visible portion of the document Header Tags Puts the name of the document in the title bar Body Attributes Sets the background color, using name or hex value Sets the text color, using name or hex value Sets the color of links, using name or hex value Sets the color of followed links, using name or hex value Sets the color of links on click Text Tags Creates the largest headline Creates the smallest headline Creates bold text Emphasizes a word (with italic or bold) Emphasizes a word (with italic or bold) Sets size of font, from 1 to 7) Sets font color, using name or hex value Links
  • 12. Creates a hyperlink Creates a mailto link Creates a target location within a document Links to that target location from elsewhere in the document Formatting Creates a new paragraph Aligns a paragraph to the left, right, or center Inserts a line break Creates a numbered list Precedes each list item, and adds a number Creates a bulleted list Graphical Elements Adds an image Aligns an image: left, right, center; bottom, top, middle Horizontal Rule Sets size of border around an image Inserts a horizontal rule Sets size (height) of rule
  • 13. Sets width of rule, in percentage or absolute value Creates a rule without a shadow Completed Code and sample page: Khavansky M.Johnson Khavansky M. JOhnson Home Page My Favorites Food: Rice and peas Sport: Soccer(football),Basketball, CrossCountry, Tracks, and cricket Color: Green and Blue Movie: The last samaria Headline NewsI have a new rating on monoploy Quite of the Day"Just give the G's and we'll be burning ahh"