creating a web page html: the language of the web

29
Creating a Web Page HTML: The Language of the WEB

Upload: regan-hay

Post on 15-Jan-2016

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Creating a Web Page HTML: The Language of the WEB

Creating a Web Page

HTML: The Language of the WEB

Page 2: Creating a Web Page HTML: The Language of the WEB

HTML• To create a web page you use a special

language that Browsers can read.

Hyper Text

Markup

Language

Page 3: Creating a Web Page HTML: The Language of the WEB

The Web Browser• is the software program on YOUR

computer

Page 4: Creating a Web Page HTML: The Language of the WEB

The Web Browser

• Can locate HTML documents on any server anywhere in the world.

Page 5: Creating a Web Page HTML: The Language of the WEB

HTML Documents

• Simple TEXT documents.

• Created with a simple text editor

Page 6: Creating a Web Page HTML: The Language of the WEB

Some Text Editors

• The WordPad in Windows– Start Accessories WordPad

• The NotePad in Windows– Start Accessories NotePad

• MS WORD in Windows

Page 7: Creating a Web Page HTML: The Language of the WEB

Start an HTML document

<HTML>

</HTML>

•These are <TAGS>•They tell the Browser that an HTML document is coming.

Page 8: Creating a Web Page HTML: The Language of the WEB

Header Stuff

<HTML>

<HEAD>

<TITLE> My Page

</TITLE>

</HEAD>

• Goes into the Blue line

• A place for a title

Page 9: Creating a Web Page HTML: The Language of the WEB

Next comes the <Body>

<BODY>

</BODY>

This is the main part of your document.

Page 10: Creating a Web Page HTML: The Language of the WEB

Modifiers

• <BODY BGCOLOR=“006600”>

Page 11: Creating a Web Page HTML: The Language of the WEB

HTML Codes entered in a TEXT editor

<HTML>

< HEAD >

< TITLE >

< /TITLE >

< /HEAD >

< BODY >

</ BODY >

</HTML>

<HTML> tags indicate code is written in HTML

< TITLE > tags identify the Title.

< HEAD > tags surround information about the web page

< BODY > tags surround the portion of the document that will appear in the browser window.

Page 12: Creating a Web Page HTML: The Language of the WEB

SPACES . .The paragraph tag

• < P > • < / P >

• Adds extra blank lines before text to separate it from any text that precedes it.

Page 13: Creating a Web Page HTML: The Language of the WEB

Section headings

<H1></H1>

• Makes the headings BIG and Black

and Bold

Page 14: Creating a Web Page HTML: The Language of the WEB

How Big???

This is <H1>This is <H2>This is <H3>This is <H4>This is <H5>

This is <H6>

Page 15: Creating a Web Page HTML: The Language of the WEB

Center It…Formats the heading< H1 ALIGN=CENTER >

My favorite Sport.

< /H1 >

•Also try < Center >

•Don’t forget to close the tag

</H1>

Page 16: Creating a Web Page HTML: The Language of the WEB

< H1 ALIGN = LEFT >

• Just use <P> </P>

• This is the Default

Page 17: Creating a Web Page HTML: The Language of the WEB

Creating Lists

HTML supports three kinds of lists:– Ordered lists

– Unordered lists

– Definition lists

Page 18: Creating a Web Page HTML: The Language of the WEB

Ordered Lists

a list in numeric order

My Favorite Movies1. Mouse Hunt

2. Mary Poppins

3. Something about Mary

Page 19: Creating a Web Page HTML: The Language of the WEB

Ordered Lists

<H3>My Favorite Movies</H3>

<OL>

<LI>Something About Mary

<LI>Mary Poppins

<LI>Mouse Hunt

</OL>

Page 21: Creating a Web Page HTML: The Language of the WEB

Unordered List bullet list

<H3>Famous Male Actors</H3>

<UL>

<LI>Roy Rogers

<LI>Gene Autry

<LI> Hopalong Cassity

</UL>

Page 22: Creating a Web Page HTML: The Language of the WEB

The Definition List

• A list of Terms followed by a definition line

Famous Movie Horses– Topper

• Hopilong Cassidy’s horse

– Trigger• Roy Roger’s Horse

– Champion• Gene Autry’s Horse

Page 23: Creating a Web Page HTML: The Language of the WEB

Definition List

<H3>Famous Movie Horses</H3><DL><DT>Topper

<DD>Hopalong Cassity’s Horse<DT>Trigger

<DD>Roy Roger’s Horse<DT>Champion

<DD>Gene Autry’s Horse</DL>

Page 24: Creating a Web Page HTML: The Language of the WEB

Character Tags

A <Tag> you apply to an individual character.

2 Kinds– Logical - how you use text

– Physical – how text looks

Page 25: Creating a Web Page HTML: The Language of the WEB

Logical Tags

<EM> Emphasized mode

• Indicates that characters should be emphasized in some way..itallics

<STRONG>

• Emphasizes text more strongly than <EM>

Page 26: Creating a Web Page HTML: The Language of the WEB

Physical Character Tags

• How characters look<B> bold

<I> Itallics

<BIG> big

<SMALL> small

<SUB> subscript

<SUP> superscript

Page 27: Creating a Web Page HTML: The Language of the WEB

Big BLACK Lines

• <HR> Horizontal Rule

• Adjust the WIDTH to ¾

<HR WIDTH=75%>

• Center the HR

<HR ALIGN=CENTER>

• Set the SIZE <HR SIZE=12>

Page 28: Creating a Web Page HTML: The Language of the WEB

More < HR > stuff

• Do it All in one HR TAG

<HR ALIGN=CENTER

SIZE=12

WIDTH=75%>

• Or<HR ALIGN=CENTER SIZE=12 WIDTH=75%>

Page 29: Creating a Web Page HTML: The Language of the WEB